Commit 34cbfab4 authored by Mike Kremer's avatar Mike Kremer
Browse files

Updated comments for garbage collection routine.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@133 66977474-1d4b-4f09-8fe9-267525286df2
parent e3991089
...@@ -68,19 +68,12 @@ StatusAttrib::~StatusAttrib() { ...@@ -68,19 +68,12 @@ StatusAttrib::~StatusAttrib() {
void StatusAttrib::garbage_collection(bool _preserveManifoldness) { void StatusAttrib::garbage_collection(bool _preserveManifoldness) {
/* /*
* Perform these steps from vertex to cell: * This is not a real garbage collection in its conventional
* =========================================== * sense. What happens in this routine are the following steps:
* 1. Delete entity with handle h from vector *
* 2. Delete all higher dimensional entities * 1. Delete all entities marked as deleted from bottom to top.
* containing a handle to the delete entity (set delete flag) * 2. Preserve manifoldness (optionally) by deleting all
* 3. Replace all handle indices h_i > h with (h_i - 1) in all * isolated entities in a top-down fashion afterwards.
* higher dimensional entities (steps 2 and 3 can be combined)
* 4. Delete property and status data of h
* ===========================================
* 5. Call update_adjacencies() (if required)
* ===========================================
* 6. Preserve manifoldness
* (optional, requires bottom-up adjacencies)
*/ */
for(VertexIter v_it = kernel_.vertices_begin(); v_it != kernel_.vertices_end();) { for(VertexIter v_it = kernel_.vertices_begin(); v_it != kernel_.vertices_end();) {
......
Markdown is supported
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