VCG Library
Static Public Member Functions | List of all members
vcg::tri::UpdateFlags< UpdateMeshType > Class Template Reference

Management, updating and computation of per-vertex and per-face flags (like border flags). More...

#include <vcg/complex/algorithms/update/flag.h>

Static Public Member Functions

static void Clear (MeshType &m)
 Reset all the mesh flags (vertexes edge faces) setting everithing to zero (the default value for flags)
 
static void FaceBorderFromFF (MeshType &m)
 Compute the border flags for the faces using the Face-Face Topology.
 
static void TetraBorderFromTT (MeshType &m)
 Compute the border flags for the tetras using the Tetra-Tetra Topology.
 
static void FaceBorderFromNone (MeshType &m)
 
static void VertexBorderFromFaceAdj (MeshType &m)
 Compute the PerVertex Border flag deriving it from the face-face adjacency.
 
static void VertexBorderFromFaceBorder (MeshType &m)
 Compute the PerVertex Border flag deriving it from the border flag of faces.
 
static void VertexBorderFromEdgeAdj (MeshType &m)
 Compute the PerVertex Border flag deriving it from the Edge-Edge adjacency (made for edgemeshes)
 
static void FaceEdgeSelSignedCrease (MeshType &m, float AngleRadNeg, float AngleRadPos, bool MarkBorderFlag=false)
 Marks feature edges according to two signed dihedral angles. Actually it uses the face_edge selection bit on faces, we select the edges where the signed dihedral angle between the normal of two incident faces , is outside the two given thresholds. In this way all the edges that are almost planar are marked as non selected (e.g. edges to be ignored) Note that it uses the signed dihedral angle convention (negative for concave edges and positive for convex ones);.
 
static void FaceEdgeSelBorder (MeshType &m)
 Selects feature edges according to Face adjacency.
 
static void FaceEdgeSelCrease (MeshType &m, float AngleRad)
 Marks feature edges according to a given angle Actually it uses the face_edge selection bit on faces, we select the edges where the dihedral angle between the normal of two incident faces is larger than , the given thresholds. In this way all the near planar edges are marked remains not selected (e.g. edges to be ignored)
 

Detailed Description

template<class UpdateMeshType>
class vcg::tri::UpdateFlags< UpdateMeshType >

Management, updating and computation of per-vertex and per-face flags (like border flags).

This class is used to compute or update some of the flags that can be stored in the mesh components. For now just Border flags (e.g. the flag that tells if a given edge of a face belong to a border of the mesh or not).

Definition at line 39 of file flag.h.

Member Function Documentation

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::Clear ( MeshType &  m)
inlinestatic

Reset all the mesh flags (vertexes edge faces) setting everithing to zero (the default value for flags)

Definition at line 60 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceBorderFromFF ( MeshType &  m)
inlinestatic

Compute the border flags for the faces using the Face-Face Topology.

Warning
Obviously it assumes that the topology has been correctly computed (see: UpdateTopology::FaceFace )

Definition at line 166 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceBorderFromNone ( MeshType &  m)
inlinestatic

Computes per-face border flags without requiring any kind of topology It has a O(fn log fn) complexity.

Definition at line 349 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceEdgeSelBorder ( MeshType &  m)
inlinestatic

Selects feature edges according to Face adjacency.

Definition at line 495 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceEdgeSelCrease ( MeshType &  m,
float  AngleRad 
)
inlinestatic

Marks feature edges according to a given angle Actually it uses the face_edge selection bit on faces, we select the edges where the dihedral angle between the normal of two incident faces is larger than , the given thresholds. In this way all the near planar edges are marked remains not selected (e.g. edges to be ignored)

Definition at line 517 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceEdgeSelSignedCrease ( MeshType &  m,
float  AngleRadNeg,
float  AngleRadPos,
bool  MarkBorderFlag = false 
)
inlinestatic

Marks feature edges according to two signed dihedral angles. Actually it uses the face_edge selection bit on faces, we select the edges where the signed dihedral angle between the normal of two incident faces , is outside the two given thresholds. In this way all the edges that are almost planar are marked as non selected (e.g. edges to be ignored) Note that it uses the signed dihedral angle convention (negative for concave edges and positive for convex ones);.

Optionally it can also mark as feature edges also the boundary edges.

Definition at line 468 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::TetraBorderFromTT ( MeshType &  m)
inlinestatic

Compute the border flags for the tetras using the Tetra-Tetra Topology.

Warning
Obviously it assumes that the topology has been correctly computed (see: UpdateTopology::FaceFace )

Definition at line 183 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::VertexBorderFromEdgeAdj ( MeshType &  m)
inlinestatic

Compute the PerVertex Border flag deriving it from the Edge-Edge adjacency (made for edgemeshes)

Definition at line 442 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::VertexBorderFromFaceAdj ( MeshType &  m)
inlinestatic

Compute the PerVertex Border flag deriving it from the face-face adjacency.

Definition at line 402 of file flag.h.

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::VertexBorderFromFaceBorder ( MeshType &  m)
inlinestatic

Compute the PerVertex Border flag deriving it from the border flag of faces.

Definition at line 424 of file flag.h.


The documentation for this class was generated from the following file: