19 d_elementArraySize(0),
30 d_elementArraySize(0),
41 d_elementArraySize(0),
75 if( (dif == 0) && (
d_faces[i] == face) ){
107 if( (dif == 0) && (
d_elements[i] == element) ){
115 d_numElements -= dif;
126 for( k = 0; k < numn; k++ ){
127 if( fnodes[k] == n2 || fnodes[k] == n3 || fnodes[k] == n4){
131 if( ( n4 == 0 && count == 2) || count == 3 ){
180 mesh->
replaceNode(
this, new_node, sep_elements, new_material );
187 new_node->
separate( mesh, list, new_material );
188 separate( mesh, list, new_material);
239 if( shared_elements->
size() != 1 ){
241 delete shared_elements;
246 boolean changed =
TRUE;
250 int size = node_faces.
size();
253 for( i = 0; i < size; i++ ) {
258 shared_elements->
reset();
259 int nums = shared_elements->
size();
262 for( j = 0; j < nums; j++ ) {
278 if( !shared_elements->
move_to( oelem ) ){
285 shared_elements->
next();
309 if( count_real > shared_elements->
size() ){
310 return shared_elements;
312 delete shared_elements;
boolean separate(Mesh *mesh, FaceList *list, int new_material)
This class encapsulate a node over a window manifold.
Face * sharedFace(Node *n2, Node *n3, Node *n4=0)
Node()
Default constructor.
Element * getElement2()
Get the pointer to the second element that this face is associated with.
void addNode(Node *node)
The following add/remove/get methods are utility methods to add, remove, or return instances of nodes...
Class Mesh is the main class that holds all information to describe the current state of the mesh...
void addNextLink(Node *link)
void replaceNode(Node *node, Node *new_node, ElementList *sep_elements, int new_material)
Node ** getNodes()
Returns the array of nodes.
void insert_first(Element *val)
boolean isCohesive() const
static T_VertexSet * face
boolean move_to(Face *val)
boolean move_to(Element *val)
ElementList * getSeparateElements(FaceList *list)
void removeFace(Face *face)
The Face class is an abstract base class that supplies implemented general methods, as well as a vew virtual interface methods to child classes.
void addElement(Element *elem)
Element * getElement1()
Get the pointer to the first element that this face is associated with.
void removeElement(Element *elem)
virtual int getNumNodes() const =0
Retrieves the number of nodes that make up the face.
void insert_first(Face *val)