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] A reference to an OdGePlane object to use as the section cutting plane.  
OdDbRegionPtr & sectionRegion 
[out] A reference to a new region created as the result of the intersection between the specified plane and the solid.
 

Returns the result of the intersecting the solid with a plane: eOk if successful or an appropriate error code in other case. Value 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 eNotImplementedYet status for other modelers.

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