Hi,
I have a obj file with my environement. An object is a plan, and I'd like to display Text2D on this plan. I get the Shape3D of this plan using its name (in lowercase :).
My pb is to display the Text2D. My solution was to create a Text2D and to change the Text2D vertex corrdinates to thoose of the plan, but it doesn't work. Has anyone a solution ? Thanks.
This is my code :
GeometryArray sourceGeom = (GeometryArray)textObject.getGeometry();
GeometryArray destGeom = (GeometryArray)plan.getGeometry();
Point3f coord = new Point3f();
for (int i = 0; i < destGeom.getVertexCount(); i++) {
destGeom.getCoordinate(i, coord);
sourceGeom.setCoordinate(i, coord);
}
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en fran�ais !
