Share Everywhere with VTFx files and Ceetron 3D Viewers

The Export component adds easy sharing of simulation results using the Ceetron VTFx format. With a few lines of code, you can export exactly what you have on the screen to a compact file that can be shown on almost any platform. You can upload the VTFx file to Ceetron Cloud and share and view it directly in the web browser on any device. You can analyze it further using Ceetron Analyzer Desktop or Ceetron Analyzer cloud. The Ceetron 3D Viewer is available on Windows, Linux, Mac, iPad and iPhone. The Ceetron 3D Plugin for Microsoft Office is our plugin to the Microsoft Office suite, which enables interactive 3D models with animation directly in PowerPoint and Word.

Note: Currently the Export component only works with the UnstructGrid component.

License Note: The Export Component requires a license with this feature enabled. Please see License system for more info.

Export to VTFx

Add the following code to export exactly what you have on the screen to a compact VTFx.

// Add properties from the view and the model
{
cee::exp::PropertyBuilderVTFx propBuilder(propColl.get(), resources.get());
propBuilder.addFromModel(*model);
propBuilder.addFromView(*view);
exporter.addProperties(*propColl);
exporter.addResources(*resources);
}
// Optionally, add a thumbnail image
{
PtrRef<cee::vis::Image> thumbNailImg = new cee::Image;
view->renderToImage(640, 480, thumbNailImg.get());
exporter.setSnapshotImage(thumbNailImg.get());
}
exporter.setVendorNameAndApplication("MyCompany", "MyApp");
exporter.saveCase(myFilename);

This file can then be viewed in the Free Ceetron 3D Viewer on Windows, Linux and MacOSX, as well as in the Ceetron 3D Viewer on iOS.