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) |
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"
None meshlib.mrmeshpy.NormalsToPoints.__init__ | ( | self | ) |
Implicit default constructor.
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
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)
None meshlib.mrmeshpy.NormalsToPoints.run | ( | self, | |
VertCoords | guide, | ||
FaceNormals | normals, | ||
VertCoords | points, | ||
float | maxInitialDistSq ) |