Modify Dome Slicer to Slice cylinder?

If you analyze the code posted in the responses to your previous questions, you should have all the information you need to accomplish this.

I modified the code posted by @maje90 in the second thread above to get this.

Slicer_Lines_and_Arcs_Test_230526b.gh (119.9 KB)

As far as being a slicer this is still very basic, but I think it produces the output you’re looking for. This is from the geometry you provided (open brep).

This will also slice shapes that contain straight lines. Here’s what I get from recreating your geometry (closed brep this time).

Just an arbitrary shape with holes.

Note: These 2 components will show errors if you input a brep that produces contours containing straight line segments. This is to be expected and does not cause problems.

You could add some logic to sort the order of the curves to optimize the moves and insure they don’t cause any collisions with what’s been previously printed.

-Kevin

1 Like