Represents a single point of a PolyLine.
All methods of this class are implemented by the system.
#include <polyshp.h>
Public Member Functions |
|
PolyPt () | |
Constructor. |
|
PolyPt (Point3 ip, DWORD f=0, int a=0, DWORD f2=0) | |
Constructor. |
|
MtlID | GetMatID () |
Gets the material ID on a per-segment basis
within the spline or polyline. |
|
void | SetMatID (MtlID id) |
Sets the material ID on a per-segment basis
within the spline or polyline. |
|
Public Attributes |
|
Point3 | p |
The location of the point. |
|
DWORD | flags |
See Predefined PolyPt
Flags. |
|
DWORD | flags2 |
See Predefined PolyPt
flags2. |
|
int | aux |
Auxiliary data attached to this point
(usually mesh vertex number for capping) |
PolyPt | ( | ) | [inline] |
MtlID GetMatID | ( | ) | [inline] |
Gets the material ID on a per-segment basis within the spline or polyline.
{return (int)((flags2>>POLYPT_MATID_SHIFT)&POLYPT_MATID_MASK);}
void SetMatID | ( | MtlID | id | ) | [inline] |
Sets the material ID on a per-segment basis within the spline or polyline.
id | The ID to set to. |
{flags2 &= 0xFFFF; flags2 |= (DWORD)(id<<POLYPT_MATID_SHIFT);}
The location of the point.
int aux |
Auxiliary data attached to this point (usually mesh vertex number for capping)