wsmarshall / Luna_copy

Luna_copy copy of Luna
0 stars 0 forks source link

Add a white cylinder at the rotation center of the last link #3

Open madhephaestus opened 4 years ago

madhephaestus commented 4 years ago

You will need to use the moveDHValues function to move the cylinder to the right location. Do not adjust its position with constants, just use the function to move it.

wsmarshall commented 4 years ago

so I see the moveDHValues function takes in a CSG (presumably the white cylinder we just added), but do I just use the DHLink dh that's inside the generateCAD function? and where do I call the moveDHValues function? placing it right below creation of the white cylinder CSG triggers a Null Pointer Exception

madhephaestus commented 4 years ago

You need to declare the dh before using it. Move the declarations of the link objects above where you are working.

On Fri, Aug 21, 2020, 4:57 PM wsmarshall notifications@github.com wrote:

so I see the moveDHValues function takes in a CSG (presumably the white cylinder we just added), but do I just use the DHLink dh that's inside the generateCAD function? and where do I call the moveDHValues function? placing it right below creation of the white cylinder CSG triggers a Null Pointer Exception

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wsmarshall/Luna_copy/issues/3#issuecomment-678489423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJSKRT4HENMBL4B3RXIKXTSB3NSTANCNFSM4QHSW3NQ .

madhephaestus commented 4 years ago

You might also benifit from looking through a model that is done in the way we will do this one https://github.com/Hephaestus-Arm/HephaestusArm2/blob/master/cadGenHephaestusArm.groovy#L54