I can use the Java API and VueBean to generate thumbnails for various files (doc, dwg, CATPart), but the thumbnail always appears to be from a head-on (or top-down) perspective. For 2D files this is fine, but for 3D files like CATParts, I’m attempting to get an isometric view of the file. Using Web Services, this is accomplished by using the setCamera method, but I can’t find any equivalent methods in the API. Does the API support rotating the 3D object before exporting a thumbnail, or is this a web-services-only feature?
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.
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