Wavefront OBJ Reader

Wavefront OBJ
File Extension OBJ, MTL
Supported Versions Any
Platforms wy ly my an iy
Tessellation t_green Supported
B-rep c_grey N/A
PMI c_grey N/A

The file extensions of OBJ files that you can expect to be loaded by HOOPS Exchange are:

  • .OBJ
  • .MTL for material data

How to Import From OBJ

To load an OBJ file, use A3DAsmModelFileLoadFromFile(). The A3DParamsLoadData structure is used to customize the loading behavior:

A3DAsmModelFile* pModelFile = 0;

A3DRWParamsLoadData sReadParam;
A3D_INITIALIZE_DATA(A3DRWParamsLoadData, sReadParam);
sReadParam.m_sGeneral.m_bReadSolids = true;

// ... set other A3DRWParamsLoadData fields as necessary

A3DAsmModelFileLoadFromFile("path/to/file.obj", &sReadParam, &pModelFile);

See Simple Load and Export for more about loading model files.

B-rep

This concept is not supported by OBJ.

PMI

This concept is not supported by OBJ.

Assembly

This concept is not supported by OBJ.

Views

This concept is not supported by OBJ.