VCG Library  0.1
Static Public Member Functions
vcg::tri::UpdateColor< UpdateMeshType > Class Template Reference

Generation of per-vertex and per-face colors according to various strategy. More...

#include <vcg/complex/trimesh/update/color.h>

List of all members.

Static Public Member Functions

static void VertexBorderFlag (UpdateMeshType &m, Color4b BorderColor=Color4b::Blue, Color4b InternalColor=Color4b::White, Color4b MixColor=Color4b::Cyan)
 Color the vertexes of the mesh that are on the border.
static void MultiFaceRandom (UpdateMeshType &m)

Detailed Description

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

Generation of per-vertex and per-face colors according to various strategy.

This class is used to compute per face or per vertex color with respect to for example Border (UpdateColor::VertexBorderFlag), Selection (UpdateColor::FaceSelected), Quality .


Member Function Documentation

template<class UpdateMeshType >
static void vcg::tri::UpdateColor< UpdateMeshType >::MultiFaceRandom ( UpdateMeshType &  m) [inline, static]

This function colores the face of a mesh randomly. The faux bit is used to color polygonal faces uniformly

template<class UpdateMeshType >
static void vcg::tri::UpdateColor< UpdateMeshType >::VertexBorderFlag ( UpdateMeshType &  m,
Color4b  BorderColor = Color4b::Blue,
Color4b  InternalColor = Color4b::White,
Color4b  MixColor = Color4b::Cyan 
) [inline, static]

Color the vertexes of the mesh that are on the border.

It uses the information in the Vertex flags, and not any topology. So it just require that you have correctly computed the flags;


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