Commit 6a3e33f5 authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot
Browse files

Merge topic 'delaunay-triangulate-create-collection'

895cd6a7

 Delaunay: TriangulateFace creates a new mesh collection.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Haocheng LIU's avatarHaocheng Liu <haocheng.liu@kitware.com>
Merge-request: !534
parents 3203284e 895cd6a7
......@@ -102,17 +102,10 @@ OperatorResult TriangulateFace::operateInternal()
excise(p_sub, mesh);
}
// remove the original collection and grab the collection with the same id as
// the model
// construct a collection and associate it with the face's model
smtk::mesh::CollectionPtr collection =
this->session()->meshManager()->collection(face.model().entity());
if (!collection)
{
// If we can't find this collection, we can create it
collection = this->session()->meshManager()->makeCollection(
face.model().entity());
collection->associateToModel(face.model().entity());
}
this->session()->meshManager()->makeCollection();
collection->associateToModel(face.model().entity());
// populate the new collection
smtk::extension::delaunay::io::ImportDelaunayMesh importFromDelaunayMesh;
......
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