API Reference > OdDb Classes > OdDbSubDMesh Class > OdDbSubDMesh Methods > OdDbSubDMesh::setBox Method
OdDbSubDMesh::setBox Method
Syntax
C++
OdResult setBox(double xLen, double yLen, double zLen, OdInt32 divX, OdInt32 divY, OdInt32 divZ, OdInt32 subDLevel);
Parameters 
Description 
double xLen 
[in] Box depth.  
double yLen 
[in] Box width.  
double zLen 
[in] Box height.  
OdInt32 divX 
[in] Specifies how many divisions will be made along the depth direction.  
OdInt32 divY 
[in] Specifies how many divisions will be made along the width direction.  
OdInt32 divZ 
[in] Specifies how many divisions will be made along the height direction.  
OdInt32 subDLevel 
[in] Level of smoothness.  

eOk if the operation completed successfully, or an appropriate error code otherwise.

Creates a mesh of a box. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.