Hi Olivier,

The documentation is misleading.  The geometry primitives were never
intended to have their tesselation change on demand.  So, you could
either detach and create as you have suggested below, or you could
write your own Sphere class that had the ability to be re-tesselated.

Doug Twilleager
Sun Microsystems


>MIME-Version: 1.0
>Subject: [JAVA3D] Number of vertices/triangles in Geometry Primitives
>To: [EMAIL PROTECTED]
>
>Hi,
>
>I need to change the number of divisions of sphere primitive
>once they have been rendered. I tried to use the methods
>"setNumVertices" respectively "setNumTriangles", but it's not
>updating my sphere primitive on screen.
>
>However, if I invoke the "getNumVertices" or "getNumTriangles",
>each sphere primitve returns the correct value I set previously.
>
>So I guess it's a matter of "re-rendering" the scene again,
>but I thought the render would loop continuously...
>
>Otherwise, I guess I would have to detach my primitive, create
>a new one, and attach it back...
>
>Thanks in advance,
>Olivier
>
>* * * Olivier Christophe Heyard * * *
>*    Computer Science Department    *
>* University of Aberdeen / Scotland *
>*        [EMAIL PROTECTED]         *
>* * * * * * * * * * * * * * * * * * *
> My PGP (DH/DSS) Key is available on
>               request
>* * * * * * * * * * * * * * * * * * *
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to