Viewing a Model – Step 1
The following code loads the first Model object, looks for its first Union Of Primitive, and sets it in a global variable for display:
if (!transm.open(argv[1]) || !transm.getRoot().isValid()) {
printf("Error accessing %s\n", argv[1]);
transm.getRoot().getComponent( SE_DRM_CLS_MODEL_LIBRARY, &obj );
obj.getComponent( SE_DRM_CLS_MODEL, &obj );
seIterator iter( SE_DRM_CLS_UNION_OF_PRIMITIVE_GEOMETRY, true );
if ( !iter.next( &obj ) )