Public Member Functions | Public Attributes

PatchEdge Class Reference

Search for all occurrences

Detailed Description

See also:
Class PatchMesh, Working with Patches.

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:
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).

#include <patch.h>

Inheritance diagram for PatchEdge:
Inheritance graph
[legend]

List of all members.

Public Member Functions

CoreExport  PatchEdge ()
CoreExport  PatchEdge (const PatchEdge &from)
CoreExport  PatchEdge (int v1, int vec12, int vec21, int v2, int p1, int p2, int aux1=-1, int aux2=-1)
CoreExport void  Dump ()
CoreExport IOResult  Save (ISave *isave)
CoreExport IOResult  Load (ILoad *iload)

Public Attributes

int  v1
int  vec12
int  vec21
int  v2
IntTab  patches
int  aux1
int  aux2

Constructor & Destructor Documentation

CoreExport PatchEdge ( )
Remarks:
Constructor. The data members are initialized as undefined.
CoreExport PatchEdge ( const PatchEdge from )
Remarks:
Copy Constructor. The data members are initialized from the PatchEdge passed.
CoreExport 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.

Member Function Documentation

CoreExport void Dump ( )
Remarks:
You may call this method to dump the patch edge structure via DebugPrint(). See Debugging.
CoreExport IOResult Save ( ISave isave )
Remarks:
This is used internally to save the data to the .MAX file.
CoreExport IOResult Load ( ILoad iload )
Remarks:
This is used internally to load the data from the .MAX file.

Member Data Documentation

int v1
int vec12
int vec21
int v2
int aux1
int aux2

PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge
PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge PatchEdge