Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
Advanced solution

The action SoToU3DAction generates an intermediate U3D format file. Advanced PDF editors, for example Acrobat3D from Adobe, can load these files in order to produce more complex 3D PDF documents.

The SoToU3DAction and the SoToPDFAction operate in the same manner. For example:

Example : Generation of U3D output

SoSeparator* root = ... // scenegraph init
SoToU3DAction u3dAction;
bool result = u3dAction.openFile( "output.u3d" );
if ( !result )
... // error management
u3dAction.apply( root );
result = u3dAction.closeFile();
if ( !result )
... // error management