Moka kernel
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gmv-merge.hh File Reference

Go to the source code of this file.

Functions

int mergeMarkedColinearEdges (int AMarkNumber, bool ADeleteDarts)
 
int mergeMarkedCoplanarFaces (int AMarkNumber, bool ADeleteDarts)
 
int mergeMarkedAlignedCells (int ADim, int AMarkNumber, bool ADeleteDarts)
 
unsigned int simplify3DObject (int AMark0, int AMark1, int AMark2=-1)
 
unsigned int simplify2DObject (int AMark0, int AMark1)
 
unsigned int simplify2DObject (unsigned int optosimplify=EDGE_REMOVAL|VERTEX_REMOVAL|EDGE_CONTRACTION|FACE_CONTRACTION)
 
unsigned int simplify2DObjectRemoval (unsigned int optosimplify)
 
unsigned int simplify2DObjectContraction (unsigned int optosimplify)
 
unsigned int simplify3DObject (unsigned int optosimplify=FACE_REMOVAL|EDGE_REMOVAL|VERTEX_REMOVAL|EDGE_CONTRACTION|FACE_CONTRACTION|VOLUME_CONTRACTION)
 
unsigned int simplify3DObjectRemoval (unsigned int optosimplify)
 
unsigned int simplify3DObjectContraction (unsigned int optosimplify)
 

Function Documentation

int mergeMarkedAlignedCells ( int  ADim,
int  AMarkNumber,
bool  ADeleteDarts 
)

Fusionne lorsque cela est possible les arêtes ou les faces alignées.

Parameters
ADimLa dimension (1 ou 2) des cellules à fusionner
AMarkNumberUn numéro de marque
ADeleteDartsUn booléen indiquant si la fusion doit se faire en supprimant des brins
Returns
Le nombre de fusions effectuées
int mergeMarkedColinearEdges ( int  AMarkNumber,
bool  ADeleteDarts 
)

Fusionne lorsque cela est possible (avec une arête qui leur est incidente) les arêtes dont un brin au moins est marqué, lorsqu'elles sont alignées.

Parameters
AMarkNumberUn numéro de marque
ADeleteDartsUn booléen indiquant si la fusion doit se faire en supprimant des brins
Returns
Le nombre de fusions effectuées
int mergeMarkedCoplanarFaces ( int  AMarkNumber,
bool  ADeleteDarts 
)

Fusionne lorsque cela est possible (avec une face qui leur est incidente) les faces dont un brin au moins est marqué, lorsqu'elles sont coplanaires.

Parameters
AMarkNumberUn numéro de marque
ADeleteDartsUn booléen indiquant si la fusion doit se faire en supprimant des brins
Returns
Le nombre de fusions effectuées
unsigned int simplify2DObject ( int  AMark0,
int  AMark1 
)

Simplify the 2G-map by removing each degree two edge, each dangling edge, and then each degree two vertex. There is no fictive edge shifting. AMarki is a mark used to mark darts deleted by i-removal. If AMarki==-1, corresponding darts are removed from the map. Otherwise, they are not removed but only marked.

Returns
the number of removed darts.
unsigned int simplify2DObject ( unsigned int  optosimplify = EDGE_REMOVAL|VERTEX_REMOVAL|EDGE_CONTRACTION|FACE_CONTRACTION)

Simplify the 2G-map. optosimplify contains a value giving which cells will be simplified: a or between NONE,EDGE_REMOVAL,VERTEX_REMOVAL, EDGE_CONTRACTION, FACE_CONTRACTION.

unsigned int simplify2DObjectContraction ( unsigned int  optosimplify)

Simplify the map using removal operations only.

unsigned int simplify2DObjectRemoval ( unsigned int  optosimplify)

Simplify the map using removal operations only.

unsigned int simplify3DObject ( int  AMark0,
int  AMark1,
int  AMark2 = -1 
)

Simplify the map by removing each degree two face, each dangling face, then each degree two edge, each dangling edge, and then each degree two vertex. There is no fictive face or edge shifting. AMarki is a mark used to mark darts deleted by i-removal. If AMarki==-1, corresponding darts are removed from the map. Otherwise, they are not removed but only marked.

Returns
the number of "removed" darts.
unsigned int simplify3DObject ( unsigned int  optosimplify = FACE_REMOVAL|EDGE_REMOVAL|VERTEX_REMOVAL|EDGE_CONTRACTION|FACE_CONTRACTION|VOLUME_CONTRACTION)

Simplify the 3G-map. Equivalent to simplify3DObject(-1,-1,-1) but optimized. optosimplify contains a value giving which cells will be simplified: a or between NONE,FACE_REMOVAL,EDGE_REMOVAL,VERTEX_REMOVAL, EDGE_CONTRACTION, FACE_CONTRACTION, VOLUME_CONTRACTION.

unsigned int simplify3DObjectContraction ( unsigned int  optosimplify)

Simplify the map using removal operations only.

unsigned int simplify3DObjectRemoval ( unsigned int  optosimplify)

Simplify the map using removal operations only.