If you rotate over a plan, the profile requires at least 2 Number3D's.
If you rotate over x for instance, ideally, z should be zero, x and y
should be the one holding values other than zero.
Flip doesn't inverse the shape in its geometrical definition, you
define this yourself either working in positive or negative plan, the
flip is there to eventually reverse the faces orientation. Which could
be done as well by a simple array.invert();
Fabrice
Sent from an iPhone without Flash
On May 31, 2010, at 1:02, "Marko Schütz Schmuck" <[email protected]
m> wrote:
Dear All,
I tried a LatheExtrusion around the x-axis and never got the result I
was expecting. Finally, I flipped the profile over 90 degrees and did
the LatheExtrusion around the y-axis and got what I was expecting. I
briefly checked LatheExtrusion.as, but haven't found the time to dig
into it.
var flipOver:Function = function (point : Number3D, index :
int, arr : Array):void {
var temp : Number = point.x;
point.x = point.y;
point.y = -temp;
}
_profile.map(flipOver, this);
_ring = new LatheExtrusion(_profile,
{material: goldMaterial,
axis: "y",
rotations: 1,
subdivision: 72,
recenter: true,
scale: 2,
offsetradius: 20});
Best regards,
Marko