setVertexOffset

This call will update the vertex offset of the returned geometry. Some IFC files have the origin placed far far away from the actual geometry, in case 32 bit precision vertices are requested (what is default), the converted results from internal 64 bit representation could cause visual disturbances due to precision limitations in 32 bit that can be solved by moving the origin of the geometry closer to the actual geometry.

Syntax

//   Visual Studio for Windows
public:
void __declspec(dllexport) __stdcall setVertexOffset(
            __int64 model,
            double  x,
            double  y,
            double  z
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
void setVertexOffset(
            int64_t model,
            double  x,
            double  y,
            double  z
        );    

Property model

Size: 64 bit / 8 byte (value)
Handle of the model containing the IFC file, this handle is needed in many other calls and given when the model is created.

Property x

Size: 64 bit / 8 byte (value)
X value for offset of each vertex.

Property y

Size: 64 bit / 8 byte (value)
Y value for offset of each vertex.

Property z

Size: 64 bit / 8 byte (value)
Z value for offset of each vertex.

Examples

Here you can find code snippits that show how the API call setVertexOffset can be used.