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.
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:
If I reverse the angle, it looks like this:
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.
The order of generation is like this.
That is the first prism it puts on. Then the algorithm repeats exactly for all the others.