Mike Aubury
2018-11-12 12:32:32 UTC
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.
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.