ug4
edge_util.cpp File Reference

Namespaces

 ug
 the ug namespace
 

Functions

int ug::CalculateNormal (vector3 &vNormOut, Grid &grid, Edge *e, Grid::AttachmentAccessor< Vertex, APosition > &aaPos, Grid::AttachmentAccessor< Face, ANormal > *paaNormFACE=NULL)
 Calculates the normal of the given edge. More...
 
int ug::CalculateNormalNoNormalize (vector3 &vNormOut, Grid &grid, Edge *e, Grid::VertexAttachmentAccessor< APosition > &aaPos, Grid::FaceAttachmentAccessor< ANormal > *paaNormFACE=NULL)
 Calculates the normal of the given edge. More...
 
bool ug::CollapseEdge (Grid &grid, Edge *e, Vertex *newVrt)
 Collapses the specified edge performs local grid restructuring. More...
 
bool ug::CreateEdgeSplitGeometry (Grid &destGrid, Grid &srcGrid, Edge *e, Vertex *newVertex, AVertex *paAssociatedVertices=NULL)
 given an edge and a vertex (the split-vertex) this method constructs the split-geometry. More...
 
bool ug::CutEdgesWithPlane (Selector &sel, const vector3 &p, const vector3 &n, APosition &aPos=aPosition)
 refines all edges in sel which cut the given plane. More...
 
bool ug::EdgeCollapseIsValid (Grid &grid, Edge *e)
 Checks if an edge-collapse would invalidate the current topology. More...
 
int ug::GetAssociatedFaces (Face **facesOut, Grid &grid, Edge *e, int maxNumFaces)
 writes associated faces of e to facesOut. More...
 
Edge * ug::GetConnectingEdge (Grid &grid, Face *f1, Face *f2)
 
int ug::GetEdgeIndex (Face *f, Edge *e)
 returns the index at which edge e is found in the given object More...
 
int ug::GetEdgeIndex (Volume *vol, Edge *e)
 returns the index at which edge e is found in the given object More...
 
bool ug::IsBoundaryEdge (Grid &grid, Edge *e, Grid::face_traits::callback funcIsSurfFace)
 returns true if the edge is connected to exactly one surface face. More...
 
bool ug::IsBoundaryEdge2D (Grid &grid, Edge *e)
 returns whether an edge lies on the boundary of a 2D grid. More...
 
bool ug::IsBoundaryEdge3D (Grid &grid, Edge *e)
 returns whether an edge lies on the boundary of a 3D grid. More...
 
bool ug::LiesOnBoundary (Grid &grid, Edge *e)
 returns true, if the edge lies on a 2d or 3d boundary More...
 
int ug::NumAssociatedFaces (Grid &grid, Edge *e)
 returns the number of associated faces of the given edge More...
 
Edge * ug::SwapEdge (Grid &grid, Edge *e)
 swaps e and thus reconnects its two adjacent triangles. More...