I�m working with Java3D 1_3_b1 OGL and jsdk 1_4. The structure is...
m_line = new LineStripArray (coordenadas.size(),
LineStripArray.COORDINATES|
LineStripArray.NORMALS,
strips);
//set capabilities
m_line.setCapability(LineStripArray.ALLOW_COORDINATE_READ);
m_line.setCapability(LineStripArray.ALLOW_COORDINATE_WRITE);
m_line.setCapability(LineStripArray.ALLOW_INTERSECT);
When the branch is in the scene I try execute this method:
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
/**
* Refresh the structure�s coordinates
*/
public void updateLineRepresentation(){
int strips[] = null;
if (m_line != null){
//cogemos el vector de coordenadas
//get the vector coordinates
Vector coordenadas = getVertexArray();
//pasamos las coordenadas a array
//put the coordinates into an array
Point3d[] coord = new Point3d[coordenadas.size()];
coordenadas.toArray(coord);
//assign the coordinates to the LineStripArray
m_line.setCoordinates(0, coord);
}
}
//-------------------------------------------------------------------------------------
The result is that the Java3D render stops (or crash) but the
application goes on.
With the java3D_1_2_1_04 the same method works. Can someone help me
with this? Thks.
---------------------------------------------------------
ArisNova S.L. - Ingenier�a de Sistemas
C/ Pianista Mart�nez Carrasco 6, Entresuelo A
46026 - Valencia - Spain
E-Mail : [EMAIL PROTECTED]
Telfs : 96.395.2033-96.395.2034 Fax : 96.395.2038
---------------------------------------------------------
===========================================================================
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".