Class PatchEdge
See Also: Class PatchMesh, Working with Patches.
class PatchEdge
Description:
This class describes a patch edge using the vertices at the edge ends, and the indices of the patches sharing the edge. All methods of this class are implemented by the system.
Data Members:
public:
int v1;
Index of the first vertex.
int vec12;
Vector from v1 to v2.
int vec21;
Vector from v2 to v1.
int v2;
Index of second vertex.
IntTab patches;
Index of the patches using this edge. If the edge is only used by one patch, patches[1] will be less than zero. Note: Previous to R4.0 two separate integer variables (patch1 and patch2) were used.
int aux1;
This is used to track topology changes during editing (Edit Patch).
int aux2;
This is used to track topology changes during editing (PatchMesh).
Methods:
Prototype:
PatchEdge();
Remarks:
Constructor. The data members are initialized as undefined.
Prototype:
PatchEdge(PatchEdge &from);
Remarks:
Constructor. The data members are initialized from the PatchEdge passed.
Prototype:
PatchEdge(int v1, int vec12, int vec21, int v2, int p1, int p2, int aux1=-1, int aux2=-1);
Remarks:
Constructor. The data members are initialized to the values passed.
Prototype:
IOResult Save(ISave* isave);
Remarks:
This is used internally to save the data to the .MAX file.
Prototype:
IOResult Load(ILoad* iload);
Remarks:
This is used internally to load the data from the .MAX file.
Prototype:
void Dump();
Remarks:
You may call this method to dump the patch edge structure via DebugPrint(). See Debugging.