Hi Khai,
on Monday Uma Sabada wrote an answer to a similar question. Another
thing I can tell you from my experience is that it is faster to use
geometry by reference with J3D 1.2 or to update the whole geometry array
with one function call.

Regards, Marco.

Khai Weyn wrote:
>
> Hi,
>
> I have a large number of triangles in a single TriangleArray (about 20,000 -
> 30,000).  I need to selectively remove and add triangles to the scene, as
> quickly as possible.  Only a small number of the triangles in the TriangleArray
> will be updated at a time (around 20 - 50).  At the moment, I am accomplishing
> deletion by doing setCoordinate(i,(0,0,0)).  This works, but it is very slow.
>
> Does anyone have any idea how I can speed it up drastically?
>
> I tried having a lots of BranchGroup nodes, each attached to a single triangle,
> but this was infeasible with the large number of triangles I am having.
>
> Any help would be greatly appreciated!
>
> ===========================================================================
> 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