Once the input 3D file has been prepared in the form of CDXFB files, their contents can be loaded into the application as follows:
where:
theModelPath
is a url to the top CDXFB directory (e.g. output/conrod.cdxfb
),theObjId
is a file in the CDXFB directory (e.g. scenegraph.cdxfb
)cadex.ModelData_Model
is essentially an object which encapsulates 3D model in memory. This class corresponds to a C++ counterpart cadex::ModelData_Model class described in details in the CAD Exchanger SDK User’s Guide. So you might want to read that guide if you have not done so yet.