discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] difference of 2 polyhedrons returns 2 planar shape - is this a bug?

D
droftarts
Tue, Feb 7, 2017 12:02 PM

It's because the faces of your polyhedron are inside out. If you view in
'Thrown Together' mode, and view each polyhedron individually, you'll see
that they are mostly purple. This means the 'normal' of the face is pointing
the wrong way. From
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#polyhedron
:
"All faces must have points ordered in the same direction . OpenSCAD prefers
clockwise when looking at each face from outside inwards. The back is viewed
from the back, the bottom from the bottom, etc.."
So you just need to reorder each face in the 'faces' part of each
polyhedron, to get the faces so the purple is 'inwards', and the yellow is
outwards.

Ian

--
View this message in context: http://forum.openscad.org/difference-of-2-polyhedrons-returns-2-planar-shape-is-this-a-bug-tp20358p20359.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

It's because the faces of your polyhedron are inside out. If you view in 'Thrown Together' mode, and view each polyhedron individually, you'll see that they are mostly purple. This means the 'normal' of the face is pointing the wrong way. From https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#polyhedron : "All faces must have points ordered in the same direction . OpenSCAD prefers clockwise when looking at each face from outside inwards. The back is viewed from the back, the bottom from the bottom, etc.." So you just need to reorder each face in the 'faces' part of each polyhedron, to get the faces so the purple is 'inwards', and the yellow is outwards. Ian -- View this message in context: http://forum.openscad.org/difference-of-2-polyhedrons-returns-2-planar-shape-is-this-a-bug-tp20358p20359.html Sent from the OpenSCAD mailing list archive at Nabble.com.