miho / JCSG

Java implementation of BSP based CSG (Constructive Solid Geometry)
Other
177 stars 52 forks source link

Union and Difference Coplanar Polygons #55

Open phamvanthanh opened 4 years ago

phamvanthanh commented 4 years ago

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

miho commented 4 years ago

No, only 3d solids are supported.

phamvanthanh commented 4 years ago

Can I implement those functionalities on my own?

miho commented 4 years ago

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!

madhephaestus commented 3 years ago

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