API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::createBox Method
OdModelerGeometry::createBox Method
Syntax
C++
virtual void createBox(double xLen, double yLen, double zLen) = 0;
Parameters 
Description 
double xLen 
[in] Dimension along the WCS X-axis.  
double yLen 
[in] Dimension along the WCS Y-axis.  
double zLen 
[in] Dimension along the WCS Z-axis. 

Returns eOk if successful, or an appropriate error code if not.

Creates a WCS aligned solid box centered about the world origin. 

 

The following constraints apply: 

  • xLen >= 1e-6.
  • yLen >= 1e-6.
  • zLen >= 1e-6.

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