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

Class PointInfo

source/MRMesh/MRIterativeSampling.cpp:17–29  ·  view source on GitHub ↗

an element of heap

Source from the content-addressed store, hash-verified

15
16// an element of heap
17struct PointInfo
18{
19 /// sum of squared distances to the closest neighbors and to nearby removed (not-sampled) points
20 float sumDistSq;
21
22 // points with minimal sum of distances are first removed from samples
23 bool operator <( const PointInfo & b ) const { return sumDistSq > b.sumDistSq; }
24
25 explicit PointInfo( NoInit ) noexcept {}
26
27 // invalid info, last in heap
28 PointInfo() : sumDistSq( FLT_MAX ) {}
29};
30
31} //anonymous namespace
32

Callers 1

pointIterativeSamplingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected