Closed chertykov closed 7 years ago
That probably has to do with having the cylinder's top and bottom coplanar with the faces of the cube somehow. Have you tried h:3.5 with the cylinder?
I have tried h:3.5 - no difference.
Code with changes is working on http://joostn.github.io/OpenJsCad/processfile.html
function main() {
var cube = CSG.cube({
center:0,
radius : 3
});
var cylinder = CSG.cylinder({
radius:1,
start: [0, -3, 0],
end: [0, 3, 0],
});
var csg = cube.subtract(cylinder);
return csg;
/*
code below created many manifold errors on stl export
*/
/* return difference(
cube({size: 3, center: true}),
cylinder({r:1, h:3, center: true}).rotateX(90)
);
*/
}
Any traction on this issue?
I'm having the same problem with a much more complicated part. https://gist.github.com/hovissimo/ce5366a35834c3690488
Light blue lines show discontinuities: http://i.imgur.com/kDbFl6L.png
FWIW, this is worse with the AMF exporter.
Pull request #107 contains some changes to CSG.js and openjscad.js. I ran some tests and all issues with T-junctions were resolved after making those changes.
If you need this fixed then please make the changes manually.
This issue was moved to jscad/io#15
I have generated stl on web site from the following simplest code:
Then downloaded it and imported to Blender and checked for manifold.