Hello,
Use the instanceof Java language operator within an enumerated if/else
list.
geometryArray=(GeometryArray)shape3d.getGeometry();
if (geometryArray instanceof TriangleArray){
// calculate
}
else{
if (geometryArray instanceof QuadArray){
// calculate
}
else{
//etcetera
}
}
Billy wrote:
> Hi, I am having some trouble... I have extracted the geometryarray
> from a shape3d node. I would now like to alter the geometry and also
> calculate the surface area and volume of the geometry. To do this I
> need to determine what kind of geometryarray I am dealing with
> (triangle,indexedtriangle etc) so I know how to access and understand
> the contents... the only question is how?thanks Billy
Ross F.
--
Ross Andrew Finlayson
202/387-8208
http://www.tomco.net/~raf/
"C is the speed of light."
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/