MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / weights

Method weights

source/MRMesh/MRMeshOrPoints.cpp:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100std::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
111auto MeshOrPoints::projector() const -> std::function<ProjectionResult( const Vector3f & )>
112{

Callers 2

updatePointPairsFunction · 0.80
updateGroupPairsFunction · 0.80

Calls 1

dblAreaMethod · 0.80

Tested by

no test coverage detected