API Reference > OdIfc Namespace > Classes > OdIfcModelerGeometry Class > OdIfcModelerGeometry Methods > OdIfcModelerGeometry::block Method
OdIfcModelerGeometry::block Method
Syntax
C++
virtual OdResult block(const OdGePoint3d& ptOrigin, double xLength, double yLength, double zLength) = 0;
Parameters 
Description 
const OdGePoint3d& ptOrigin 
[in] A point that defines the block position.  
double xLength 
[in] A length of the block along the X-axis.  
double yLength 
[in] A length of the block along the Y-axis.  
double zLength 
[in] A length of the block along the Z-axis. 

Returns the operation result code: eOk if the block was successfully created; otherwise, the method returns an appropriate error code.

Creates a block body in the geometry modeler object. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.