[JAVA3D] a sample code about TriangleStripArray

2005-05-10 Thread Saeed Ansari
Hi all, Would someone send me a sample code for using TriangleStripArray ? I have problem to find what is the relation between first and third ( vertex count , StripVertexCount[] ) parameter of TriangleStripArray . Can you tell me what is the relation ? Regards, Saeed Yahoo!

Re: [JAVA3D] a sample code about TriangleStripArray

2005-05-10 Thread Hrvoje Smolic
vertex count is total number of vertexes (points) in array. StripVertexCount[] is number of strips,(imagine tracks one close to other to third...) | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | = 5 strips, and 30 vertex Saeed Ansari [EMAIL

Re: [JAVA3D] a sample code about TriangleStripArray

2005-05-10 Thread Saeed Ansari
Hi Hrvoje, I didn't understand from the picture you send. May be I understand from the shape below, if you tell me stripCounts and vertexCounts. I have problem tp understanding Strip. What is it exactly? |\ | \ Regards, SaeedHrvoje Smolic [EMAIL PROTECTED] wrote: vertex count is total number

[JAVA3D] my behavior triggers only once

2005-05-10 Thread yogesh badkas
hi all i hv written the behavior that triggers whenever the certain transformgroup changes but the problem is that it works fine for the first time the specified transform group changes i want it to trigger each time transform group changes my program is as follows

[JAVA3D] The order of the vertices

2005-05-10 Thread Saeed Ansari
Hi all, How should be the order the vertices in GeometryStripArrays ? Clockwise or counter-clockwise ? Regards, Saeed Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. === To

Re: [JAVA3D] my behavior triggers only once

2005-05-10 Thread Tobias D. Kammann
Hey there. You just have to put your wakeupOn-definition again to your processStimulus. .. perhaps there is another solution, but I do it like that and it's fine. public void processStimulus(Enumeration criteria) { WakeupCriterion genericEvt; System.out.println(calling process stimulus);

[JAVA3D] Problem with Coordinates

2005-05-10 Thread Saeed Ansari
Hi, I want to darw two squares, using TriangleStripArray, I use the constructor below : TriangleStripArray geometry = new TriangleStripArray(6, TriangleStripArray.COORDINATES, new int[] {3,3}); Point3d[] points = new Point3d[] { new Point3d(0.5, 0, 0),new Point3d(.5, .5, 0), new Point3d(0, 0,