API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::getSection Method
OdModelerGeometry::getSection Method
Syntax
C++
virtual OdResult getSection(const OdGePlane& plane, OdDbRegionPtr & sectionRegion, OdDbEntityPtrArray* pSectionCurves = NULL) const = 0;
Parameters 
Description 
const OdGePlane& plane 
[in] Reference to the 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 ModelerGeometry object.  
OdDbEntityPtrArray* pSectionCurves = NULL 
[out] Pointer to an array of section curves.
 

The result of intersecting the ModelerGeometry object with a plane: eOk if successful or an appropriate error code in other case. Value eOk is also returned when the specified plane and the ModelerGeometry object do not intersect each other or if the intersection region is not a valid region, that is, it intersects at a point, along a bounding face of the ModelerGeometry object and so on.

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

 

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