MeshLib C# Docs
Loading...
Searching...
No Matches
MR.NormalsToPoints Class Reference

The purpose of this class is to update vertex positions given target triangle normals; see the article "Static/Dynamic Filtering for Mesh Geometry" Generated from class MR.NormalsToPoints. This is the non-const half of the class. More...

+ Inheritance diagram for MR.NormalsToPoints:

Public Member Functions

unsafe NormalsToPoints ()
 Constructs an empty (default-constructed) instance.
 
unsafe NormalsToPoints (MR._ByValue_NormalsToPoints _other)
 Generated from constructor MR.NormalsToPoints.NormalsToPoints.
 
unsafe MR.NormalsToPoints assign (MR._ByValue_NormalsToPoints _other)
 Generated from method MR.NormalsToPoints.operator=.
 
unsafe void prepare (MR.Const_MeshTopology topology, float? guideWeight=null)
 builds linear system and prepares a solver for it; please call it only once for mesh, and then run as many times as you like
 
unsafe void run (MR.Const_VertCoords guide, MR.Const_FaceNormals normals, MR.VertCoords points)
 performs one iteration consisting of projection of all triangles on planes with given normals and finding best points from them
 
unsafe void run (MR.Const_VertCoords guide, MR.Const_FaceNormals normals, MR.VertCoords points, float maxInitialDistSq)
 Generated from method MR.NormalsToPoints.run.
 

Detailed Description

The purpose of this class is to update vertex positions given target triangle normals; see the article "Static/Dynamic Filtering for Mesh Geometry" Generated from class MR.NormalsToPoints. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ NormalsToPoints() [1/2]

unsafe MR.NormalsToPoints.NormalsToPoints ( )
inline

Constructs an empty (default-constructed) instance.

◆ NormalsToPoints() [2/2]

unsafe MR.NormalsToPoints.NormalsToPoints ( MR._ByValue_NormalsToPoints _other)
inline

Generated from constructor MR.NormalsToPoints.NormalsToPoints.

Member Function Documentation

◆ assign()

unsafe MR.NormalsToPoints MR.NormalsToPoints.assign ( MR._ByValue_NormalsToPoints _other)
inline

Generated from method MR.NormalsToPoints.operator=.

◆ prepare()

unsafe void MR.NormalsToPoints.prepare ( MR.Const_MeshTopology topology,
float? guideWeight = null )
inline

builds linear system and prepares a solver for it; please call it only once for mesh, and then run as many times as you like

Parameters
guideWeighthow much resulting points must be attracted to initial points, must be > 0 Generated from method MR.NormalsToPoints.prepare. Parameter guideWeight defaults to 1.

◆ run() [1/2]

unsafe void MR.NormalsToPoints.run ( MR.Const_VertCoords guide,
MR.Const_FaceNormals normals,
MR.VertCoords points )
inline

performs one iteration consisting of projection of all triangles on planes with given normals and finding best points from them

Parameters
guidetarget vertex positions to avoid under-determined system
normalstarget face normals
pointsinitial approximation on input, updated approximation on output
maxInitialDistSqthe maximum squared distance between a point and its position in (guide) Generated from method MR.NormalsToPoints.run.

◆ run() [2/2]

unsafe void MR.NormalsToPoints.run ( MR.Const_VertCoords guide,
MR.Const_FaceNormals normals,
MR.VertCoords points,
float maxInitialDistSq )
inline

Generated from method MR.NormalsToPoints.run.


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