VCG Library  0.1
Static Public Member Functions
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/trimesh/update/flag.h>

List of all members.

Static Public Member Functions

static void Clear (MeshType &m)
 Reset all the mesh flags (both vertexes and 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 FaceProjection (MeshType &m)
static void FaceBorderFromNone (MeshType &m)
static void VertexBorderFromFace (MeshType &m)
 Compute the PerVertex Border flag deriving it from the faces.

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).


Member Function Documentation

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::Clear ( MeshType &  m) [inline, static]

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

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceBorderFromFF ( MeshType &  m) [inline, static]

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 )
template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceBorderFromNone ( MeshType &  m) [inline, static]

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

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::FaceProjection ( MeshType &  m) [inline, static]

This function fill the flags with the info on what is the best projection direction for a given face. Used by the point-face distance function when do not exploiting pre-computed per-face data (the so called edge component)

template<class UpdateMeshType >
static void vcg::tri::UpdateFlags< UpdateMeshType >::VertexBorderFromFace ( MeshType &  m) [inline, static]

Compute the PerVertex Border flag deriving it from the faces.


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

Generated on Mon Sep 27 08:13:16 2004 for VCG Library by doxygen 1.3.7