API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::getSection Method
OdDb3dSolid::getSection Method
Syntax
C++
virtual OdResult getSection(const OdGePlane& plane, OdDbRegionPtr & sectionRegion) const;
Parameters 
Description 
const OdGePlane& plane 
[in] Reference to an OdGePlane object to use as the section cutting plane.  
OdDbRegionPtr & sectionRegion 
[out] Reference to a new region created as the result of the intersection between the specified plane and the solid.
 

eOk if successful or an appropriate error code in other case. eOk is also returned when a plane and the solid do not intersect each other or if the intersection region is not a valid region: it intersects at a point, along a bounding face of the solid and so on.

Creates a DbRegion entity as a result of the intersection between the specified plane and the solid. 

 

This method is implemented only for Spatial modeler and returns the eNotImplementedYet status for other modelers.

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