diff --git a/OpenMesh/OMPropertyVisualizerT_impl.hh b/OpenMesh/OMPropertyVisualizerT_impl.hh index 870616b953deafc64e46f975edab454e90d22877..51e1e9ae4a1039d6840d75bca03374e7abc44732 100644 --- a/OpenMesh/OMPropertyVisualizerT_impl.hh +++ b/OpenMesh/OMPropertyVisualizerT_impl.hh @@ -139,7 +139,7 @@ inline void OMPropertyVisualizer::duplicateProperty_stage1() { template -QString OMPropertyVisualizer::getPropertyText(unsigned int index) +QString OMPropertyVisualizer::getPropertyText(unsigned int /*index*/) { return ""; } @@ -220,7 +220,7 @@ unsigned int OMPropertyVisualizer::getClosestPrimitiveId(unsigned int _fa } template -unsigned int OMPropertyVisualizer::getClosestFaceId(unsigned int _face, ACG::Vec3d& _hitPoint) +unsigned int OMPropertyVisualizer::getClosestFaceId(unsigned int _face, ACG::Vec3d& /*_hitPoint*/) { return _face; } @@ -405,25 +405,25 @@ void OMPropertyVisualizer::clearVertexProp() } template -void OMPropertyVisualizer::setFacePropertyFromText(unsigned int index, QString text) +void OMPropertyVisualizer::setFacePropertyFromText(unsigned int /*index*/, QString /*text*/) { emit log(LOGERR, "Setting face property not implemented"); } template -void OMPropertyVisualizer::setEdgePropertyFromText(unsigned int index, QString text) +void OMPropertyVisualizer::setEdgePropertyFromText(unsigned int /*index*/, QString /*text*/) { emit log(LOGERR, "Settingedge property not implemented"); } template -void OMPropertyVisualizer::setHalfedgePropertyFromText(unsigned int index, QString text) +void OMPropertyVisualizer::setHalfedgePropertyFromText(unsigned int /*index*/, QString /*text*/) { emit log(LOGERR, "Setting halfedge property not implemented"); } template -void OMPropertyVisualizer::setVertexPropertyFromText(unsigned int index, QString text) +void OMPropertyVisualizer::setVertexPropertyFromText(unsigned int /*index*/, QString /*text*/) { emit log(LOGERR, "Setting vertex property not implemented"); } diff --git a/OpenMesh/OMPropertyVisualizerVector2T_impl.hh b/OpenMesh/OMPropertyVisualizerVector2T_impl.hh index 134266443deef9fb48da3eca690b36d7344a7106..ebcb9c61bafe59e34ca76addd534431cc8a19a10 100644 --- a/OpenMesh/OMPropertyVisualizerVector2T_impl.hh +++ b/OpenMesh/OMPropertyVisualizerVector2T_impl.hh @@ -405,7 +405,7 @@ void OMPropertyVisualizerVector2::visualizeHalfedgePropAsStro typename MeshT::Point v1 = OMPropertyVisualizer::mesh->point(vh0) + 0.5 * (OMPropertyVisualizer::mesh->point(vh1) - OMPropertyVisualizer::mesh->point(vh0)); VectorType v = OMPropertyVisualizer::mesh->property(prop, *he_it); - ACG::Vec3d normal = OMPropertyVisualizer::mesh->normal(*he_it); + ACG::Vec3d normal = OMPropertyVisualizer::mesh->normal(OMPropertyVisualizer::mesh->face_handle(*he_it)); if (vectorWidget->normalize->isChecked() && v.sqrnorm() > 1e-12) v.normalize();