MeshLib
 
Loading...
Searching...
No Matches
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>

Public Attributes

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)
 
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)
 

Detailed Description

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

Member Data Documentation

◆ distSq

float PointPair::distSq = 0.f

squared distance between source and target points

◆ normalsAngleCos

float PointPair::normalsAngleCos = 1.f

cosine between normals in source and target points

◆ srcNorm

Vector3f PointPair::srcNorm

normal in source point after transforming in world space

◆ srcPoint

Vector3f PointPair::srcPoint

coordinates of the source point after transforming in world space

◆ srcVertId

VertId PointPair::srcVertId

id of the source point

◆ tgtCloseVert

VertId 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

◆ tgtNorm

Vector3f PointPair::tgtNorm

normal in the target point after transforming in world space

◆ tgtOnBd

bool PointPair::tgtOnBd = false

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

◆ tgtPoint

Vector3f PointPair::tgtPoint

coordinates of the closest point on target after transforming in world space

◆ weight

float PointPair::weight = 1.f

weight of the pair (to prioritize over other pairs)


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