17 #include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
18 #include <MDSTk\Math\mdsMatrix.h>
22 #include <Eigen/Geometry>
29 struct Traits :
public OpenMesh::DefaultTraits
48 template <
typename AScalar>
61 add_property(m_curvature,
"<vertexCurvature>");
62 property(m_curvature).set_persistent(
true);
64 add_property(m_curvature_mag,
"<vCurvatureMag>");
65 property(m_curvature_mag).set_persistent(
true);
67 add_property(m_vertexAttributes,
"<vertexAttributes>");
68 property(m_vertexAttributes).set_persistent(
true);
70 request_vertex_colors();
72 add_property(m_matrix,
"<vertexMatrix>");
73 property(m_matrix).set_persistent(
true);
75 add_property(
m_flag,
"<vertexFlag>");
76 property(
m_flag).set_persistent(
true);
84 Normal &
curvature(VertexHandle vertex) {
return property(m_curvature, vertex); }
144 OpenMesh::VPropHandleT<Normal> m_curvature;
149 OpenMesh::VPropHandleT<AttributeScalar> m_curvature_mag;
154 OpenMesh::VPropHandleT<VertexMatrix> m_matrix;
159 OpenMesh::VPropHandleT<VertexAttributeVector> m_vertexAttributes;