| 1910 | } |
| 1911 | |
| 1912 | Base::Vector3f MeshRefPointToFacets::GetNormal(PointIndex pos) const |
| 1913 | { |
| 1914 | const std::set<FacetIndex>& n = _map[pos]; |
| 1915 | Base::Vector3f normal; |
| 1916 | MeshGeomFacet f; |
| 1917 | for (FacetIndex it : n) { |
| 1918 | f = _rclMesh.GetFacet(it); |
| 1919 | normal += f.Area() * f.GetNormal(); |
| 1920 | } |
| 1921 | |
| 1922 | normal.Normalize(); |
| 1923 | return normal; |
| 1924 | } |
| 1925 | |
| 1926 | std::set<PointIndex> MeshRefPointToFacets::NeighbourPoints( |
| 1927 | const std::vector<PointIndex>& pt, |