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

Method addPoint

source/MRMesh/MRBestFit.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12{
13
14void PointAccumulator::addPoint( const Vector3d & pt )
15{
16 sumWeight_ += 1;
17 momentum1_ += pt;
18 momentum2_ += outerSquare( pt );
19}
20
21void PointAccumulator::addPoint( const Vector3d & pt, double weight )
22{

Callers 4

accumulatePointsFunction · 0.45
accumulateWeighedPointsFunction · 0.45
accumulateFaceCentersFunction · 0.45
accumulateLineCentersFunction · 0.45

Calls 1

outerSquareFunction · 0.70

Tested by

no test coverage detected