# Intersection doesn't work.

4 messages
Open this post in threaded view
|

## Intersection doesn't work.

 The following OpenSCAD program doesn't work.  It should produce a tetrahedron (not regular). I set convexity to be larger than 1, but that doesn't seem to help. // Testing OpenSCAD version 2013.06 intersection() { multmatrix([[-1, 0, 0, 0], [0, -1, 0, 0], [0, 0, -1, 0], [0, 0, 0, 1]]) polyhedron(points = [[100, 0, 0], [-50, -86.6025, 0], [-50, 86.6025, 0]], triangles = [[0, 1, 2]], convexity = 5); multmatrix([[1, 0, 0, 0], [0, 0, -1, 0], [0, 1, 0, 0], [0, 0, 0, 1]]) polyhedron(points = [[100, 0, 0], [-50, -86.6025, 0], [-50, 86.6025, 0]], triangles = [[0, 1, 2]], convexity = 5); multmatrix([[0, 0, -1, 0], [0, 1, 0, 0], [1, 0, 0, 0], [0, 0, 0, 1]]) polyhedron(points = [[100, 0, 0], [-50, -86.6025, 0], [-50, 86.6025, 0]], triangles = [[0, 1, 2]], convexity = 5); multmatrix([[0.788675, -0.211325, 0.57735, 10], [-0.211325, 0.788675, 0.57735, 10], [-0.57735, -0.57735, 0.57735, 10], [0, 0, 0, 1]]) polyhedron(points = [[100, 0, 0], [-50, -86.6025, 0], [-50, 86.6025, 0]], triangles = [[0, 1, 2]], convexity = 5); } _______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscadhttp://openscad.org - https://flattr.com/thing/121566
Open this post in threaded view
|

## Re: Intersection doesn't work.

 Administrator On 2013-06-27, at 10:16 , Henry Baker wrote: > The following OpenSCAD program doesn't work.  It should produce a tetrahedron (not regular). > You can only intersect solids, and your polyhedrons are planar. You cannot use OpenSCAD to build a volume from intersecting planes. You could build 2D polygons, linear_extrude them and rotate them in place, then do the intersection and you might get what you're looking for.  -Marius _______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscadhttp://openscad.org - https://flattr.com/thing/121566