Closed codehero closed 10 years ago
code is here https://gist.github.com/codehero/8274288
I reduced it to the cylinder (x-axis) substracted from the cube; it's something in the csg.js substract operation: http://sprunge.us/IQPG
This seems to work http://openjscad.org/#http://sprunge.us/XYeQ
Ok, try this http://openjscad.org/#http://sprunge.us/MVbU and enter "Diameter of fork bolt" = 8, but at 8.1 it gives this error with the missing part . . .
I found the problem, make sure the resolution is integer, not a fraction, do resolution: Math.floor(something * something)
OK cool, thanks for checking it out. Maybe the API should throw an exception if there is a fractional part to the resolution?
I just made sure the CSG.*({resolution: something}); is fetched as int.
My .jscad file shows missing triangles in the 3d previewer and STL output