Point objects (locations) are represented by the OdGePosition2d and OdGePosition3d classes and inherit the
functionality of the OdGePointEnt2d and OdGePointEnt3d classes respectively. This topic demonstrates the most
common operations with points as an object of the OdGePosition3d class. The functionality of 2D point objects
is similar.
For creation of a point object, you can use one of the OdGePosition3d constructors:
OdGePosition3d::OdGePosition3d() — Default constructor. Creates a point at (0,0,0).
OdGePosition3d::OdGePosition3d(const OdGePoint3d& point) — Creates a point object using OdGePoint3d object.
OdGePosition3d::OdGePosition3d(double x, double y, double z) — Creates a point object with specified coordinates.
OdGePosition3d::OdGePosition3d(const OdGePosition3d& source) — Creates a point object cloned from the source point object.
To set the parameters of the location, use the set() method. Use x-,y-,z-coordinates or an OdGePoint3d object as parameters: