>I am trying to find a way to create 'isometric' objects as polygons in
>Revolution. An example of the target grouped shape can be seen at
If you're taliking about drawing isometric 3D images, the trick is to
"project" your image. You need to write the 3D coordinates into a
field and then convert the 3D coordinates of the corner points into
2D coordinates. This is typically done by e.g. adding the z
coordinate to the x and y coordinates. For real perspective it's a
little more complicated, you have to divide by some value calculated
from the z extent, and your fleeing point needs to be the middle of
your coordinate system while doing the calculations ...
But luckily, you're only doing isometric, which can be done like the
following:
repeat for each line theLine of threeDPoints
put item 1 of theLine + item 3 of theLine & comma & item 2 of
theLine -item 3 of theLine &return after twoDPoints
end repeat
This will give you a slightly skewed view, though. You might want to
divide item 3 by 2 before adding/subtracting it.
To draw polygons or lines, you'll need to create additional lists
that contain information on which points (by line number) make up one
polygon. And then simply use the 2d points instead of the three-d
points to draw. (or rather, to build a value for "the points" of your
grc object. Of course, making all this overlap correctly will be a
little more complicated, but basically you'll just have to sort the
3d coordinates by their Z-extent without losing the connection to
their lines/polygons, and then draw the polys in that order.
Keep in mind that I didn't test-run this code and it's late at night
... I may be talking complete nonsense.
--
Cheers,
-- M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.weblayout.com/witness