MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.NormalsToPoints Class Reference
Inheritance diagram for mrmeshpy.NormalsToPoints:

Classes

class  ConstISolver
class  ISolver

Public Member Functions

None __init__ (self)
None prepare (self, ConstMeshTopology topology, float guideWeight=1, ConstVertBitSet region=None)
None run (self, ConstVertCoords guide, ConstFaceNormals normals, VertCoords points)
None run (self, ConstVertCoords guide, ConstFaceNormals normals, VertCoords points, float maxInitialDistSq)
Public Member Functions inherited from mrmeshpy.ConstNormalsToPoints
 __init__ (self, *args, **kwargs)

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 mrmeshpy.NormalsToPoints.__init__ ( self)

Member Function Documentation

◆ prepare()

None mrmeshpy.NormalsToPoints.prepare ( self,
ConstMeshTopology topology,
float guideWeight = 1,
ConstVertBitSet region = None )
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
\\param region if given, then only these vertices are moved by run(), and all other vertices are fixed

◆ run() [1/2]

None mrmeshpy.NormalsToPoints.run ( self,
ConstVertCoords guide,
ConstFaceNormals 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
\\p maxInitialDistSq the maximum squared distance between a point and its position in (guide)

◆ run() [2/2]

None mrmeshpy.NormalsToPoints.run ( self,
ConstVertCoords guide,
ConstFaceNormals normals,
VertCoords points,
float maxInitialDistSq )

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