This content has been marked as final. Show 6 replies
Do you mean JVue API instead of Java API?
There is a jar file named "jvue.jar" that includes the com.cimmetry.vuebean.VueBean Java object that supports conversion of files. I'm attempting to use this object in Java application to convert files without the use of AutoVue's webservices. The conversions seem to work fine, but I haven't been able to specify the orientation of the output rendering.
You can use ConvertOptions2D.setTreeModifier(com.cimmetry.core.TreeModifier tm) to alter the 3D state (i.e. camera, model transform, etc...).
Could you perhaps show an example of how I might go about rotating, or repositioning the camera? I'm trying to use the setCameraPosition() method, but it doesn't appear to be affecting the output at all.
You need to set the camera position, target and up direction (not only position).
// Ensure that the camera is far away from the model
double d = getVueBean().getController().get3DController().getModelExtents().getRadius() * 3;
pos = new PAN_CtlPoint(d, d, d);
target = new PAN_CtlPoint(0, 0, 0);
upDir = new PAN_CtlPoint(0, 0, 1);
Edited by: Mohammed Bouchikhi on Sep 13, 2012 8:21 PM
Thanks for you help, that took care of the issue that we have. Cheers.