| 70 | } |
| 71 | |
| 72 | VertScalars computeSpaceDistances( const Mesh& mesh, const PointOnFace & start, float range ) |
| 73 | { |
| 74 | MR_TIMER; |
| 75 | |
| 76 | VertScalars res( mesh.topology.vertSize(), FLT_MAX ); |
| 77 | EnumNeihbourVertices e; |
| 78 | e.run( mesh.topology, mesh.getClosestVertex( start ), [&]( VertId v ) |
| 79 | { |
| 80 | const auto dist = ( start.point - mesh.points[v] ).length(); |
| 81 | res[v] = dist; |
| 82 | return dist <= range; |
| 83 | } ); |
| 84 | |
| 85 | return res; |
| 86 | } |
| 87 | |
| 88 | VertBitSet findNeighborVerts( const Mesh& mesh, const PointOnFace& start, float rangeSq ) |
| 89 | { |
nothing calls this directly
no test coverage detected