Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Missing triangles in 3D view #36

Closed
codehero opened this Issue · 7 comments

2 participants

@codehero

My .jscad file shows missing triangles in the 3d previewer and STL output

image

@Spiritdude
Owner

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

@Spiritdude
Owner

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 . . .

@Spiritdude
Owner

I found the problem, make sure the resolution is integer, not a fraction, do resolution: Math.floor(something * something)

@codehero

OK cool, thanks for checking it out. Maybe the API should throw an exception if there is a fractional part to the resolution?

@codehero codehero closed this
@Spiritdude
Owner

I just made sure the CSG.*({resolution: something}); is fetched as int.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.