Commit 7b6feb5d authored by Jan Möbius's avatar Jan Möbius
Browse files

Example for locking vertices in decimater

git-svn-id: fdac6126-5c0c-442c-9429-916003d36597
parent f9d04d79
......@@ -27,6 +27,24 @@
\attention The decimater sets temporarily the status bit 'tagged' and
clears it after usage regardless of a previous state.
\section DecimaterLock Block vertices from beeing touched by the Decimater
You could mark vertices as locked, which should not be modified by the decimater.
// That might be already requested
// Get an iterator over all halfedges
Mesh::HalfedgeIter he_it, he_end=mesh_->halfedges_end();
// If halfedge is boundary, lock the corresponding vertices
for (he_it = mesh_->halfedges_begin(); he_it != he_end ; ++he_it)
if (mesh_->is_boundary(*he_it) ) {
\section DecimaterMod Decimating Modules
The vertex to be removed is determined by a decimation module, which has
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment