JCSG icon indicating copy to clipboard operation
JCSG copied to clipboard

Union and Difference Coplanar Polygons

Open phamvanthanh opened this issue 6 years ago • 4 comments

Hi Does the lib support these operations on 2D polygons?

phamvanthanh avatar Oct 08 '19 06:10 phamvanthanh

No, only 3d solids are supported.

miho avatar Oct 14 '19 11:10 miho

Can I implement those functionalities on my own?

phamvanthanh avatar Oct 22 '19 02:10 phamvanthanh

Sure. You are welcome to contribute. To be officially added to this library, you should discuss proposed API changes before you implement them. Just to make sure it fits well into the existing API.

Looking forward to your contributions!

miho avatar Oct 22 '19 09:10 miho

FYI, my fork has a Slice feature: https://github.com/NeuronRobotics/JCSG/blob/development/src/main/java/eu/mihosoft/vrl/v3d/Slice.java

that takes all of the 3d operations and allows you to generate correct polygon outlines of shapes.

I also have SVG import and Export to handle 2d polygons import and export: https://github.com/NeuronRobotics/JCSG/tree/development/src/main/java/eu/mihosoft/vrl/v3d/svg

madhephaestus avatar Mar 25 '21 21:03 madhephaestus