Hi,
I have a program wich import a .obj file, read the name of each object to convert this string in a Text3d and then in a OrientedShape3D.
To put these labels in the barycenter of my objects, I search the right point with a BoundingSphere and the getCenter method.
All work fine except when I want to rezise my labels with a simple Transform3D.
 
                Transform3D t3dtxt = new Transform3D();
                t3dtxt.setScale(0.05f);
                TransformGroup scaletxt = new TransformGroup(t3dtxt);
                objRoot.addChild(scaletxt);

                scaletxt.addChild(orientshape3d);
 
My labels have then the right size, but are concentrated near the origin point.
In fact I have to multiplicate each x y and z values by 22 to retrieve my labels in the right place (Egad!).
Have you ever seen this kind of thing before?
 
Thanks for your help in advance.
 
 
 

Reply via email to