API Reference > Classes > OdIfcFile Class > OdIfcFile Methods > OdIfcFile::getGeomExtents Method
OdIfcFile::getGeomExtents Method
Syntax
C++
OdResult getGeomExtents(OdGeExtents3d& extents) const;
Parameters 
Description 
OdGeExtents3d& extents 
[out] A placeholder for the current geometry extents object to be returned to a calling subroutine.  

eOk if the current extents were successfully returned; otherwise, the method returns an appropriate error code.

Retrieves the current geometrical extents of the model.

The method returns the model extents only if the model was created by calling the setGeomResource() method. The method accepts an instance of the OdGeExtents3d class, fills it with the data about the model's extents and returns it to a calling subroutine.

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