API Reference > OdDb Classes > OdDbBlockReference Class > OdDbBlockReference Methods > OdDbBlockReference::geomExtentsBestFit Method
OdDbBlockReference::geomExtentsBestFit Method
Syntax
C++
OdResult geomExtentsBestFit(OdGeExtents3d& extents, const OdGeMatrix3d& parentXform = OdGeMatrix3d::kIdentity) const;
Parameters 
Description 
OdGeExtents3d& extents 
[out] WCS extents of the block reference.  
const OdGeMatrix3d& parentXform = OdGeMatrix3d::kIdentity 
[in] Transformation matrix for block reference's geometry. 

This method gets copies of all entities in the referenced block table record, applies parentXform to them and after this calculates extents on the resulting object collection. 

 

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