Smoother side on box

4 messages
Open this post in threaded view
|

Smoother side on box

 Hi, this is probably some newbie thing, but I'm trying to design an insert for a cars console.Its got a slightly weird shape - but the outsides top/bottom etc are roughly described by :height=52.48;boxPoints=[    [-135/2,0,0], // rear bottom left     // 0    [135/2,0,0],  // rear bottom right    // 1    [145/2,202,0],  // front bottom right  // 2    [-145/2,202,0], // front bottom left   // 3    [-137/2,-32.5,height], // rear top left    // 4    [137/2,-32.5,height], // rear top right    // 5         [171/2,202,height], // front top right   //6        [-171/2,202,height], // front top left  //7];boxFaces=[   [0,1,2,3],  // bottom  [4,5,1,0],  // front  [7,6,5,4],  // top  [5,6,2,1],  // right  [6,7,3,2],  // back  [7,4,0,3] // left]; polyhedron(boxPoints,boxFaces );When I try to render this - on the two sides I get 2 triangle, which means when I 3d printed it, I ended up with a bulge.I'm assuming this needs to be some sort of curve rather than a single face, but I've no idea how I'd go about coding for that..Any ideas ? Thanks in advance. _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

Re: Smoother side on box

 On the end where y = ~0 ("bottom"), the sides are vertical.  But on the end where y = ~200 ("top"), the sides are beveled outward.  I am assuming that this is what you want.  The 2 triangles are the simplest way for the engine to achieve this description.  I think one way to change this would to take that side and divide it into 10 sub-parts.  If that is the way you want to go, I think I could help you calculate the sup-points making up the sub-faces.  But I have actually never worked with making polyhedrons, and I'm not exactly sure how to layout the parts into the hole.  KevinOn Mon, Nov 12, 2018 at 7:33 AM Mike Aubury <[hidden email]> wrote:Hi, this is probably some newbie thing, but I'm trying to design an insert for a cars console.Its got a slightly weird shape - but the outsides top/bottom etc are roughly described by :height=52.48;boxPoints=[    [-135/2,0,0], // rear bottom left     // 0    [135/2,0,0],  // rear bottom right    // 1    [145/2,202,0],  // front bottom right  // 2    [-145/2,202,0], // front bottom left   // 3    [-137/2,-32.5,height], // rear top left    // 4    [137/2,-32.5,height], // rear top right    // 5         [171/2,202,height], // front top right   //6        [-171/2,202,height], // front top left  //7];boxFaces=[   [0,1,2,3],  // bottom  [4,5,1,0],  // front  [7,6,5,4],  // top  [5,6,2,1],  // right  [6,7,3,2],  // back  [7,4,0,3] // left]; polyhedron(boxPoints,boxFaces );When I try to render this - on the two sides I get 2 triangle, which means when I 3d printed it, I ended up with a bulge.I'm assuming this needs to be some sort of curve rather than a single face, but I've no idea how I'd go about coding for that..Any ideas ? Thanks in advance. _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org