5 Axis CNC router spindle collision simulation

if you are not interested in having multiple spindles simulated altogether in the screen, then you can just ignore my definition because your is already working 100% ok :+1:

also, the thing of not allowing baking AND the thing of drawing a sphere around the object if the angles are wrong is very smart and useful

if having multiple spindles together is of any help, then this will respond to show/hide in Rhino (needs plugin Human or a different workaround), shows correct spindles in green and wrong ones in red, and does not allow baking if one wrong spindle is being visualized on screen (which means that if you hide it, then the correct ones will bake)

a fast visual explains it better :slight_smile:


5_axis_sim_005_multiple_surfaces_together.gh (644.9 KB)


this should work for the button that opens the GH file directly: How to create a button in Rhino that launches a specific Human UI/GH script - #2 by andheum


about collisions, you might use a one|many collision between each part of the spindle (but not including the tool: that is not in the game because it has to collide :slight_smile: ) and the geometry (or the layer of the geometries you are working on → a new Geometry Pipeline)

in cascade, another check is added before baking, so if a collision is detected, or a wrong spindle is detected, nothing will bake even if the bake button is pressed

something like this, with an Obstacle layer in Rhino:


5_axis_sim_005_multiple_surfaces_together_and_collisions.gh (651.1 KB)