MeshLib
 
Loading...
Searching...
No Matches
MR::PointPair Struct Reference

Stores a pair of points: one samples on the source and the closest to it on the target. More...

#include <MRICP.h>

+ Inheritance diagram for MR::PointPair:

Public Attributes

VertId srcVertId
 id of the source point
 
VertId tgtCloseVert
 
float normalsAngleCos = 1.f
 cosine between normals in source and target points
 
bool tgtOnBd = false
 true if if the closest point on target is located on the boundary (only for meshes)
 
- Public Attributes inherited from MR::ICPPairData
Vector3f srcPoint
 coordinates of the source point after transforming in world space
 
Vector3f srcNorm
 normal in source point after transforming in world space
 
Vector3f tgtPoint
 coordinates of the closest point on target after transforming in world space
 
Vector3f tgtNorm
 normal in the target point after transforming in world space
 
float distSq = 0.f
 squared distance between source and target points
 
float weight = 1.f
 weight of the pair (to prioritize over other pairs)
 

Friends

bool operator== (const PointPair &, const PointPair &)=default
 

Detailed Description

Stores a pair of points: one samples on the source and the closest to it on the target.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const PointPair & ,
const PointPair &  )
friend

Member Data Documentation

◆ normalsAngleCos

float MR::PointPair::normalsAngleCos = 1.f

cosine between normals in source and target points

◆ srcVertId

VertId MR::PointPair::srcVertId

id of the source point

◆ tgtCloseVert

VertId MR::PointPair::tgtCloseVert

for point clouds it is the closest vertex on target, for meshes it is the closest vertex of the triangle with the closest point on target

◆ tgtOnBd

bool MR::PointPair::tgtOnBd = false

true if if the closest point on target is located on the boundary (only for meshes)


The documentation for this struct was generated from the following file: