Tagged data can store (two, three)-dimensional points and (two, three)-dimensional vectors as its data.
Group codes 10 to 17, 110 to 112, 210, 1010 to 1013, 5002, and 5009 define data as a point or vector.
Points and vectors are instances of Ge classes. It is unimportant which Ge class the program will use
for getting and setting the data. Methods of the resbuf-object automatically cast the stored value to an
instance of the specified type, that is, if a resbuf-object stores a vector as a data type, then a point
can be specified as a data value; and the reverse, if a resbuf-object stores a point as a data type then a
vector can be specified as a data value. Methods of the resbuf-object automatically cast a three-dimensional
pointor vector to a two-dimensional point or vector and disregards the Z-coordinate. In the examples,
the pRbvariable stores a pointer to the resbuf-object.
2D Point Value
To get the two-dimensional point, use the getPoint2d() method that does not have arguments and returns
an instance of the OdGePoint2d type. For example:
To set the two-dimensional point, use the setPoint2d() method that requires an instance of the OdGePoint2d
type as an argument and does not return a value. For example:
To get the three-dimensional point, use the getPoint3d() method that does not have arguments and returns
an instance of the OdGePoint3d type. For example:
To set the three-dimensional point, use the setPoint3d() method that requires an instance of the OdGePoint3d
type as an argument and does not return a value. For example:
To get the two-dimensional vector, use the getVector2d() method that does not have arguments and returns
an instance of the OdGeVector2d type. For example:
To set the two-dimensional vector, use the setVector2d() method that requires an instance of the OdGeVector2d
type as an argument and does not return a value. For example:
To get the three-dimensional vector, use the getVector3d() method that does not have arguments and returns
an instance of the OdGeVector3d type. For example:
To set the three-dimensional vector, use the setVector3d() method that requires an instance of the OdGeVector3d
type as an argument and does not return a value. For example: