Am 14.12.2010 16:18, schrieb Spade:
> Hi I wonder if there is a way to get the coordinates as text from a complex
> object.
>
> Something that would look like #debug printobj(intersection(P1,P2,P3)).
>
> Regards Spade.
You can use
#declare MyObj = intersection { P1 P2 P3 }
#declare V1 = min_extent(MyObj);
#declare V2 = max_extent(MyObj);
#declare Center = (V1+V2)/2;
and then use the vstr() function to convert those vectors to string;
that would give you the dimensions and center of the object's /bounding
box/. Note however that this is not necessarily the smallest box in
which the object would fit.
Post a reply to this message
|