NDEVR
API Documentation
PerspectiveListNormalFlipper

A class that flips a surface generated normals from point clouds or lines given based around a path of a perspective. More...

Public Member Functions

 PerspectiveListNormalFlipper (const Model &reference)
 Constructs a PerspectiveListNormalFlipper from a reference model containing perspective path data.
uint04 findClosest (fltp08 target, fltp08 epsilon=0.001)
 Finds the index of the closest perspective point to a parametric target value.
bool shouldFlipNormal (uint04 idx, GeometrySurfacingParameters &parameters, const Ray< 3, fltp04 > &normal) final override
 Determines whether the normal at the given index should be flipped based on the perspective path.
void sortPoints ()
 Sorts the perspective points by their parametric distance along the path.

Detailed Description

A class that flips a surface generated normals from point clouds or lines given based around a path of a perspective.


Definition at line 45 of file NormalPerspectiveCalculation.h.

Constructor & Destructor Documentation

◆ PerspectiveListNormalFlipper()

PerspectiveListNormalFlipper::PerspectiveListNormalFlipper ( const Model & reference)

Constructs a PerspectiveListNormalFlipper from a reference model containing perspective path data.

Parameters
[in]referenceThe model containing the perspective path geometry.

Member Function Documentation

◆ findClosest()

uint04 PerspectiveListNormalFlipper::findClosest ( fltp08 target,
fltp08 epsilon = 0.001 )

Finds the index of the closest perspective point to a parametric target value.

Parameters
[in]targetThe parametric distance value to search for.
[in]epsilonThe tolerance for the search.
Returns
The index of the closest perspective point.

◆ shouldFlipNormal()

bool PerspectiveListNormalFlipper::shouldFlipNormal ( uint04 idx,
GeometrySurfacingParameters & parameters,
const Ray< 3, fltp04 > & normal )
finaloverride

Determines whether the normal at the given index should be flipped based on the perspective path.

Parameters
[in]idxThe index of the vertex.
[in]parametersThe current surfacing parameters.
[in]normalThe computed normal ray.
Returns
True if the normal should be flipped.

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