API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::getPoint2d Method
OdDgResBuf::getPoint2d Method
Syntax
C++
const OdGePoint2d& getPoint2d() const;

Returns the data content of the ResBuf object as two-dimensional point instance.

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Point type. When the ResBuf object stores three-dimensional point or vector, this method converts it to the two-dimensional point truncating Z-coordinate.

Example of Entering and Displaying Tagged Data 

Getting and Setting Points and Vectors 

Determining the Data Type by Group Code 

OdResBuf::setPoint2d(), OdResBuf::restype(), OdDxfCode::_getType() methods

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