MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.NormalsToPoints Class Reference

Classes

class  ISolver
 

Public Member Functions

None __init__ (self)
 
None prepare (self, MeshTopology topology, float guideWeight=1)
 
None run (self, VertCoords guide, FaceNormals normals, VertCoords points)
 
None run (self, VertCoords guide, FaceNormals normals, VertCoords points, float maxInitialDistSq)
 

Detailed Description

Generated from:  MR::NormalsToPoints

The purpose of this class is to update vertex positions given target triangle normals;
see the article "Static/Dynamic Filtering for Mesh Geometry"

Constructor & Destructor Documentation

◆ __init__()

None meshlib.mrmeshpy.NormalsToPoints.__init__ ( self)
Implicit default constructor.

Member Function Documentation

◆ prepare()

None meshlib.mrmeshpy.NormalsToPoints.prepare ( self,
MeshTopology topology,
float guideWeight = 1 )
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
\\param guideWeight how much resulting points must be attracted to initial points, must be > 0

◆ run() [1/2]

None meshlib.mrmeshpy.NormalsToPoints.run ( self,
VertCoords guide,
FaceNormals normals,
VertCoords points )
performs one iteration consisting of projection of all triangles on planes with given normals and finding best points from them
\\param guide target vertex positions to avoid under-determined system
\\param normals target face normals
\\param points initial approximation on input, updated approximation on output
\\param maxInitialDistSq the maximum squared distance between a point and its position in (guide)

◆ run() [2/2]

None meshlib.mrmeshpy.NormalsToPoints.run ( self,
VertCoords guide,
FaceNormals normals,
VertCoords points,
float maxInitialDistSq )

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