|
![](/i/fill.gif) |
> Hi,
> I want to build a prism from an extruded polygon. I have a set of points in 3D
> that represent the polygon boundary, they should all lie on the same plane. I
> would guess this problem is encountered frequently. Is there a pre-existing a
> macro that would find the average normal (to remove numerical noise) and
> generate the transform matrix.
>
> So, given a set of 3D points generate the polygon on the floor, extrude it, and
> transform so it sits in space correctly.
>
> I know how to do the math, just hoping someone has something pre-tested.
>
> Thanks
>
>
If all your points lies more or less on a reference plane, like the x-z
plane, you can just remove the Y component:
#declare Point2D=<Point3D.x, point3D.z>
Alain
Post a reply to this message
|
![](/i/fill.gif) |