-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious CAG "area is not closed!" error #185
Comments
@fischman thanks |
FWIW I get the same failure on openjscad.org and locally on e16c68a |
@fischman Sadly, it looks to be a issue with the CSG.js library. I'm just starting to work with this library, and will log this as a bug against CSG.js. |
@fischman So, I took a look at this today. Internally, the CAG sides are converted into CSG walls, and then CSG.unionSub() is called to do the work. The resulting CSG is then converted back to CSG sides. Deep inside CSG.unionSub() there's a problem, as the returned CSG (and therefore the CAG) are not properly closed, i.e. polygons are not clean. This is going to take some time give that I'm now dealing with 3D math. |
This issue was moved to z3dev/hello-world#3 |
Ooops! The tools automatically closed this. Reopening. |
This issue was moved to jscad/csg.js#15 |
* refactor(color): created color module with initial code and tests * refactor(color): added index of functions * test(color): added test suites for rgbToHex, rgbToHsl, rgbToHsv * test(color): added test suites for hexToRgb, hslToRgb, hsvToRgb * test(color): additional tests for coverage improvement * fix(color): changed hexToRgb to convert opacity hex values if present added test suite for the same * fix(color): changed hslToRgb to accept an array of HSL values or HSLA values adjusted and added test suites for these cases * fix(color): changed hsvToRgb to accept an array of HSV values or HSVA values adjusted and added test suites for these cases * fix(color): removed support for color names in color() function adjusted test suites * test(color): added test suite for colorNameToRgb * refactor(color): changed rgbToHex, rgbToHsl, rgbToHsv to accept an array of RGB values adjusted and expanded test suites
The code below generates a DXF just fine if the final statement returns either of the two CAGs, but when both are returned the DXF generation dies with:
Uncaught Error: Area is not closed!
The text was updated successfully, but these errors were encountered: