[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! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

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 PROTECTED]

Sent by: Discussion list for Java 3D
API JAVA3D-INTEREST@JAVA.SUN.COM
10.05.2005 11:13



Please respond to
[EMAIL PROTECTED]





To
JAVA3D-INTEREST@JAVA.SUN.COM


cc



Subject
[JAVA3D] a sample code about
TriangleStripArray








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! Mail Mobile
Take
Yahoo! Mail with you! Check email on your mobile
phone. ===
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".

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 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 PROTECTED] Sent by: Discussion list for Java 3D API JAVA3D-INTEREST@JAVA.SUN.COM
10.05.2005 11:13




Please respond to[EMAIL PROTECTED]





To
JAVA3D-INTEREST@JAVA.SUN.COM


cc



Subject
[JAVA3D] a sample code about TriangleStripArray




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! Mail MobileTake Yahoo! Mail with you! Check email on your mobile phone. === 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".
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
===
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".

[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



__
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail

===
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.

ChangeSurfaceBehavior.java
Description: 2708863107-ChangeSurfaceBehavior.java


[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 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".

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);

  while(criteria.hasMoreElements())
  {
   genericEvt = (WakeupCriterion) criteria.nextElement();
   if(genericEvt instanceof WakeupOnTransformChange)
   {
 System.out.println(hey great work !! it worked);
 wakeupOn(changedTransform);

   }
  }

 }

===
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.


[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, 0), new Point3d(0, .5, 0), new Point3d(-.5, -.5, 0),new Point3d(-.5, 0, 0), };

1- DoI need to set 8 points or 6 points ?
2- How should be the order of the vertexes for each strip? ( clockwise or counter_clockwise )

Regards,
Saeed
Discover Yahoo!
Have fun online with music videos, cool games, IM & more. Check it out!
===
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".