I have 2D closed vector paths, specified in SVG paths-like syntax - i.e. these paths include straight lines and various Bezier curves. Is there anything like a small, nice & discrete library (preferably in C, Java or Ruby, but any language will do if this library is clean and easy to use) that allows to do boolean operations like union, intersection and subtraction with these paths?
What I've found so far includes:
So, the question is, is there are any other small, nice & easy libraries floating around to deal with boolean operations on SVG-like paths?
Perhaps I'm missing something, but wouldn't the classes in the java.awt.geom
package suit your needs? They deal with two-dimensional shapes; the Area
class deals specifically with boolean operations:
An
Area
object stores and manipulates a resolution-independent description of an enclosed area of 2-dimensional space.Area
objects can be transformed and can perform various Constructive Area Geometry (CAG) operations when combined with otherArea
objects. The CAG operations include area addition, subtraction, intersection, and exclusive or.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With