subdivider.docu 1.21 KB
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1 2 3 4
//-----------------------------------------------------------------------------

/** \page subdivider_docu Sudivision Tools

Jan Möbius's avatar
Jan Möbius committed
5
\section OM_Subdivider_Overview Overview
6

Jan Möbius's avatar
Jan Möbius committed
7 8 9 10 11 12
The %OpenMesh library provides a few tools for uniform and adaptive
subdivision:

-# Uniform subdivision
  -# OpenMesh::Subdivider::Uniform::LoopT
  -# OpenMesh::Subdivider::Uniform::Sqrt3T
Jan Möbius's avatar
Jan Möbius committed
13 14
  -# OpenMesh::Subdivider::Uniform::ModifiedButterflyT
  -# OpenMesh::Subdivider::Uniform::InterpolatingSqrt3LGT
Jan Möbius's avatar
Jan Möbius committed
15
  -# OpenMesh::Subdivider::Uniform::CompositeT
16
  -# OpenMesh::Subdivider::Uniform::CatmullClarkT
Janis Born's avatar
Janis Born committed
17
  -# OpenMesh::Subdivider::Uniform::MidpointT
Jan Möbius's avatar
Jan Möbius committed
18 19
-# Adaptive subdivision
  -# OpenMesh::Subdivider::Adaptive::CompositeT
20 21
-# Simple subdivision
  -# OpenMesh::Subdivider::Uniform::LongestEdgeT
Jan Möbius's avatar
Jan Möbius committed
22

Jan Möbius's avatar
Jan Möbius committed
23
\section OM_Subdivider_Usage Usage
24 25 26 27 28 29 30 31 32 33 34 35 36 37
The subdividers directly work on an OpenMesh. The following example shows how to use them:

\code
  #include <OpenMesh/Tools/Subdivider/Uniform/CatmullClarkT.hh>

  // Initialize subdivider
  OpenMesh::Subdivider::Uniform::CatmullClarkT<PolyMesh> catmull;

  // Execute 3 subdivision steps
  catmull.attach(mesh_);
  catmull( 3 );
  catmull.detach();
\endcode

Jan Möbius's avatar
Jan Möbius committed
38 39
*/

Jan Möbius's avatar
Jan Möbius committed
40
//-----------------------------------------------------------------------------