| 98 | } |
| 99 | |
| 100 | std::function<float(VertId)> MeshOrPoints::weights() const |
| 101 | { |
| 102 | return std::visit( overloaded{ |
| 103 | []( const MeshPart & mp ) -> std::function<float(VertId)> |
| 104 | { |
| 105 | return [&mesh = mp.mesh]( VertId v ) { return mesh.dblArea( v ); }; |
| 106 | }, |
| 107 | []( const PointCloudPart & ) { return std::function<float(VertId)>{}; } |
| 108 | }, var_ ); |
| 109 | } |
| 110 | |
| 111 | auto MeshOrPoints::projector() const -> std::function<ProjectionResult( const Vector3f & )> |
| 112 | { |
no test coverage detected