Workspace 6.21.5
Public Types | Public Member Functions | List of all members
TriSplitter Class Reference

Helper class for splitting tri shell elements. More...

#include <Mesh/ModelEdit/trisplitter.h>

Public Types

typedef QVector< Node * > NodeVector
 

Public Member Functions

 TriSplitter (MeshModel &model)
 
 ~TriSplitter ()
 
void split (ShellElement &origElem, NodeVector &splitEdges)
 

Detailed Description

Member Typedef Documentation

◆ NodeVector

typedef QVector<Node*> NodeVector

Constructor & Destructor Documentation

◆ TriSplitter()

TriSplitter ( MeshModel model)
Parameters
modelNew elements will be added to this model.

◆ ~TriSplitter()

Member Function Documentation

◆ split()

void split ( ShellElement origElem,
TriSplitter::NodeVector splitEdges 
)
Parameters
origElemThe element to be split.
splitEdgesVector of node pointers. Each entry is the node for the matching edge of the element. If the edge needs splitting, the pointer will hold a new node. If the edge does not need splitting, the pointer will be null.

This function will add new elements that would replace origElem when its long edges are split, as determined by the contents of splitEdges. origElem will also be removed (as opposed to erased) if it is split. The attached shell element lists of all affected nodes are not updated by this call.