update documentation of new property manager

This commit is contained in:
Max Lyon
2019-11-05 10:20:47 +01:00
parent b813fffe8b
commit 6e81f6c2db
4 changed files with 22 additions and 19 deletions

View File

@@ -1,11 +1,11 @@
#include <OpenMesh/Core/IO/MeshIO.hh>
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <OpenMesh/Core/Mesh/DefaultTriMesh.hh>
#include <OpenMesh/Core/Utils/PropertyManager.hh>
#include <iostream>
#include <vector>
using MyMesh = OpenMesh::TriMesh_ArrayKernelT<>;
using MyMesh = OpenMesh::TriMesh;
int main(int argc, char** argv)
{
@@ -27,7 +27,7 @@ int main(int argc, char** argv)
{
// Add a vertex property storing the computed centers of gravity
auto cog = OpenMesh::makeTemporaryProperty<OpenMesh::VertexHandle, MyMesh::Point>(mesh);
auto cog = OpenMesh::VProp<MyMesh::Point>(mesh);
// Smooth the mesh several times
for (int i = 0; i < iterations; ++i) {