3 #include <ACG/Math/VectorT.hh> 4 #include <OpenVolumeMesh/Core/Entities.hh> 5 #include <OpenVolumeMesh/Core/GeometryKernel.hh> 14 return mesh_.vertex(vh);
18 auto edge = mesh_.edge(eh);
19 return 0.5 * (mesh_.vertex(edge.from_vertex()) + mesh_.vertex(edge.to_vertex()));
23 auto edge = mesh_.halfedge(heh);
24 return (1./3.) * (2 * mesh_.vertex(edge.from_vertex()) + mesh_.vertex(edge.to_vertex()));
30 for (
auto vh: mesh_.cell_vertices(ch)) {
31 sum += mesh_.vertex(vh);
39 return (*
this)(mesh_.halfface_handle(fh, 0));
47 for (
auto vh: mesh_.halfface_vertices(hfh)) {
48 sum += mesh_.vertex(vh);