discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: The given mesh is not closed

JB
Jordan Brown
Wed, Jul 20, 2022 2:07 AM

On 7/19/2022 4:30 PM, Bogdan Caramalac via Discuss wrote:

|piecePoints=[P2,P3,P4,P1,P1e,P4e];|

|// 0 1 2 3 4 5|

|bottomFace=[1,0,3,2];|

|outerFace=[0,3,4];|

|innerFace=[5,2,1];|

|angledFace=[0,4,5,1];|

|cathetusFace=[5,4,3,2];|

||

|pieceFaces=[ |

|bottomFace,|

|cathetusFace,|

|angledFace,|

|outerFace,|

|innerFace|

|];|

Enough to run, please.  I can figure out that there's a missing
polyhedron(piecePoints, pieceFaces), but I don't have the values for P2,
P3, P4, P1, P1e, and P4e.

On 7/19/2022 4:30 PM, Bogdan Caramalac via Discuss wrote: > > |piecePoints=[P2,P3,P4,P1,P1e,P4e];| > > |// 0 1 2 3 4 5| > > |bottomFace=[1,0,3,2];| > > |outerFace=[0,3,4];| > > |innerFace=[5,2,1];| > > |angledFace=[0,4,5,1];| > > |cathetusFace=[5,4,3,2];| > > || > > |pieceFaces=[ | > > |bottomFace,| > > |cathetusFace,| > > |angledFace,| > > |outerFace,| > > |innerFace| > > |];| > Enough to run, please.  I can figure out that there's a missing polyhedron(piecePoints, pieceFaces), but I don't have the values for P2, P3, P4, P1, P1e, and P4e.
F
fxeconomist@yahoo.com
Wed, Jul 20, 2022 10:49 AM

Sure, there is the polyhedron call there in the code.

Unfortunately the values are parameterically calculated.

I can generate as many as I want and I even have control of spacing there.

I never understood the clockwise-ness part of it. I’ve tried more varieties, and I managed to get the other diagonal to show up instead, but never a clean version.

The way it looks, it’s something like this:

https://ibb.co/0cwSMr7

If I reverse the angle, it looks like this:

https://ibb.co/tHrJKyR

In the code, the upper edge is given by the P1e and P4e points.

But the code can add there as many prisms as I need and even the screw holes are adjusted if I swap the width with the depth.

The screw holes going thru the plate are just cylinders (those that didn’t want to work with multmatrix and difference() ). Anyway, screw holes can just be drilled.

But I was not able to get rid of that diagonal. And I think that’s why it doesn’t want to render.

Sure, there is the polyhedron call there in the code. Unfortunately the values are parameterically calculated. I can generate as many as I want and I even have control of spacing there. I never understood the clockwise-ness part of it. I’ve tried more varieties, and I managed to get the other diagonal to show up instead, but never a clean version. The way it looks, it’s something like this: https://ibb.co/0cwSMr7 If I reverse the angle, it looks like this: https://ibb.co/tHrJKyR In the code, the upper edge is given by the P1e and P4e points. But the code can add there as many prisms as I need and even the screw holes are adjusted if I swap the width with the depth. The screw holes going thru the plate are just cylinders (those that didn’t want to work with multmatrix and difference() ). Anyway, screw holes can just be drilled. But I was not able to get rid of that diagonal. And I think that’s why it doesn’t want to render.
F
fxeconomist@yahoo.com
Wed, Jul 20, 2022 10:57 AM

The order of generation is like this.

https://ibb.co/gZMrKcK

That is the first prism it puts on. Then the algorithm repeats exactly for all the others.

The order of generation is like this. https://ibb.co/gZMrKcK That is the first prism it puts on. Then the algorithm repeats exactly for all the others.