Closed z3dev closed 5 years ago
This is still incomplete but the logic is now using shape2 data structure for sides. The logic is easier to understand with the new data structures.
I have a few questions about shape2 outlineToPaths...
One request :)
This is something that the original doesn't do, but might be easy to add at this point.
Could we maintain the path directions, such that the exteriors are CW, but holes are CCW?
This will allow a transformation from shape2 to paths to shape2, and should make conversion to winding depending outputs like svg easier to do.
It will also allow path-wise transformations of shape2.
If this isn't easy to do now, then I can follow up on it later.
WORK IN PROGRESS
SHAPE2
outlineToPaths
toCompactBinary (Changes to be completed with rewrite of fromCompactBinary)
SHAPE3
expand
fixTJunctions
retessellate (requires FuzzyFactory3d, see below)
transform
toCompactBinary (Changes to be completed with rewrite of fromCompactBinary)
OPS CNC
getTransformationAndInverseTransformationToFlatLying
overCutInsideCorners
GEOMETRY FuzzyFactory3
getPolygon