Hi,
I am creating a star shaped polyhedron (that is raised in the middle of the
star) that renders fine when its all alone. When I try to add another object
(like a cylinder with the object - creating a small ring at the tip of the
star), it will preview fine, but will not render both objects together. I
can comment out either one and the other renders fine. Here is the design,
any ideas? :
// Thickness of the star (mm).
star_height=15;
// Radius of the star's inner vertices.
inner_radius=20;
// Radius of the star's outer most edges.
outer_radius=45;
star();
star_holder();
module star_holder() {
difference() {
translate([0,outer_radius+1,0]) cylinder(r=4,h=1);
translate([0,outer_radius+1,0]) cylinder(r=2.5,h=1);
}
}
module star() {
polyhedron(points=[
[0, 0, star_height],
[ 0 * outer_radius, 1.0 * outer_radius],
[ 0.588 * inner_radius, 0.81 * inner_radius],
[ 0.951 * outer_radius, 0.31 * outer_radius],
[ 0.951 * inner_radius,-0.31 * inner_radius],
[ 0.588 * outer_radius,-0.81 * outer_radius],
[ 0 * inner_radius,-1.0 * inner_radius],
[-0.588 * outer_radius,-0.81 * outer_radius],
[-0.951 * inner_radius,-0.31 * inner_radius],
[-0.951 * outer_radius, 0.31 * outer_radius],
[-0.588 * inner_radius, 0.81 * inner_radius]
],
faces=[
[0,1,2],
[0,2,3],
[0,3,4],
[0,4,5],
[0,5,6],
[0,6,7],
[0,7,8],
[0,8,9],
[0,9,10],
[0,10,1],
[2,4,6,8,10],
[10,1,2],[2,3,4],[4,5,6],[6,7,8],[8,9,10],[2,4,6,8,10]
],convexity=10);
}
--
View this message in context: http://forum.openscad.org/Problem-Rendering-Polyhedron-with-another-object-tp10568.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Hi!
On 12/16/2014 11:59 PM, tlizambri wrote:
I am creating a star shaped polyhedron (that is raised in the middle of the
star) that renders fine when its all alone. When I try to add another object
(like a cylinder with the object - creating a small ring at the tip of the
star), it will preview fine, but will not render both objects together. I
can comment out either one and the other renders fine. Here is the design,
any ideas? :
The bottom face is flipped, if you turn on "View -> Thrown Together" it will
show in pinkish color. Reversing the order of the points for those faces should
fix the issue.
See also https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#polyhedron
ciao,
Torsten.
Why does the direction of the face matter? What's on the inside and outside
appears obvious to me.
--
View this message in context: http://forum.openscad.org/Problem-Rendering-Polyhedron-with-another-object-tp10568p10570.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
That worked. I guess I was looking at the bottom upside down.
Thanks!
--
View this message in context: http://forum.openscad.org/Problem-Rendering-Polyhedron-with-another-object-tp10568p10571.html
Sent from the OpenSCAD mailing list archive at Nabble.com.