getObjectInfo

Request several geometric information about the 3d object.

Signatures

  •   Paramate.Configurator.getObjectInfo(callback = undefined)

Details

The function requests information about the mesh as its volume and bounding box and updates it in the object.

Parameters

callback

Function to be called with the object info as argument.

Return value

An object containing information about the mesh:

 {
   volume: ...,    // number: the inner volume of the object
   boundingBox:
   {
     minX: ...,    // number: minimum extension of the model in X direction
     maxX: ...,    // number: maximum extension of the model in X direction
     minY: ...,    // number: minimum extension of the model in Y direction
     maxY: ...,    // number: maximum extension of the model in Y direction
     minZ: ...,    // number: minimum extension of the model in Z direction
     maxZ: ...     // number: maximum extension of the model in Z direction
   }
 }