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

Public Member Functions

 __init__ (self, *args, **kwargs)
ConstVector3i dims (self)
ConstAffineXf3f gridToMeshXf (self)
int maxDeletedComponentFaces (self)
float maxNewRank2VertDev (self)
float maxNewRank3VertDev (self)
float maxOldVertPosCorrection (self)
float minNewVertDev (self)
float offset (self)
UndirectedEdgeBitSet outSharpEdges (self)
int posSelIters (self)
bool voxelClamp (self)

Static Protected Attributes

typing _offsetof_dims = 32
typing _offsetof_gridToMeshXf = 44
typing _offsetof_maxDeletedComponentFaces = 28
typing _offsetof_maxNewRank2VertDev = 4
typing _offsetof_maxNewRank3VertDev = 8
typing _offsetof_maxOldVertPosCorrection = 16
typing _offsetof_minNewVertDev = 0
typing _offsetof_offset = 12
typing _offsetof_outSharpEdges = 96
typing _offsetof_posSelIters = 20
typing _offsetof_voxelClamp = 24

Detailed Description

Generated from:  MR::SharpenMarchingCubesMeshSettings

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstSharpenMarchingCubesMeshSettings.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstSharpenMarchingCubesMeshSettings) -> None

2. __init__(self: meshlib.mrmeshpy.ConstSharpenMarchingCubesMeshSettings, arg0: meshlib.mrmeshpy.ConstSharpenMarchingCubesMeshSettings) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstSharpenMarchingCubesMeshSettings, minNewVertDev: float, maxNewRank2VertDev: float, maxNewRank3VertDev: float, offset: float, maxOldVertPosCorrection: float, posSelIters: int, voxelClamp: bool, maxDeletedComponentFaces: int, dims: meshlib.mrmeshpy.ConstVector3i, gridToMeshXf: meshlib.mrmeshpy.ConstAffineXf3f, outSharpEdges: meshlib.mrmeshpy.UndirectedEdgeBitSet) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstSharpenMarchingCubesMeshSettings, : meshlib.mrmeshpy.ConstSharpenMarchingCubesMeshSettings) -> None

Member Function Documentation

◆ dims()

ConstVector3i mrmeshpy.ConstSharpenMarchingCubesMeshSettings.dims ( self)
Marching Cubes volume dimensions

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ gridToMeshXf()

ConstAffineXf3f mrmeshpy.ConstSharpenMarchingCubesMeshSettings.gridToMeshXf ( self)
transform from integer Marching Cubes grid locations to the mesh reference frame:
the node with integer coordinates (i,j,k) is located in gridToMeshXf( Vector3f( i, j, k ) )

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ maxDeletedComponentFaces()

int mrmeshpy.ConstSharpenMarchingCubesMeshSettings.maxDeletedComponentFaces ( self)
if positive, then in the end every connected component with not more than this number of triangles
intersecting a component with at least as many triangles is deleted; such tiny fragments appear near sharp creases

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ maxNewRank2VertDev()

float mrmeshpy.ConstSharpenMarchingCubesMeshSettings.maxNewRank2VertDev ( self)
maximal surface deviation to introduce new rank 2 vertex (on intersection of 2 planes);
recommended set equal to ( 5 * voxel size )

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ maxNewRank3VertDev()

float mrmeshpy.ConstSharpenMarchingCubesMeshSettings.maxNewRank3VertDev ( self)
maximal surface deviation to introduce new rank 3 vertex (on intersection of 3 planes);
recommended set equal to ( 2 * voxel size )

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ maxOldVertPosCorrection()

float mrmeshpy.ConstSharpenMarchingCubesMeshSettings.maxOldVertPosCorrection ( self)
correct positions of the input vertices using reference mesh by not more than this distance;
big correction can be wrong and result from self-intersections in the reference mesh
recommended set equal to ( voxel size / 2 )

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ minNewVertDev()

float mrmeshpy.ConstSharpenMarchingCubesMeshSettings.minNewVertDev ( self)
minimal surface deviation to introduce new vertex in a voxel;
recommended set equal to ( voxel size / 25 )

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ offset()

float mrmeshpy.ConstSharpenMarchingCubesMeshSettings.offset ( self)

◆ outSharpEdges()

UndirectedEdgeBitSet mrmeshpy.ConstSharpenMarchingCubesMeshSettings.outSharpEdges ( self)
if non-null then created sharp edges will be saved here

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ posSelIters()

int mrmeshpy.ConstSharpenMarchingCubesMeshSettings.posSelIters ( self)
the number of iterations to best select positions for new vertices,
the probability of self-intersections and spikes are higher if posSelIters = 0

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

◆ voxelClamp()

bool mrmeshpy.ConstSharpenMarchingCubesMeshSettings.voxelClamp ( self)
if true, the displacement of a new vertex from the average point is shortened to keep the vertex
within its voxel's box (so the geometry of a voxel can never reach another one),
and the in-plane elevation check is skipped; requires dims and gridToMeshXf to be set

Reimplemented in mrmeshpy.SharpenMarchingCubesMeshSettings, and mrmeshpy.SharpenMarchingCubesMeshSettings.

Member Data Documentation

◆ _offsetof_dims

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_dims = 32
staticprotected

◆ _offsetof_gridToMeshXf

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_gridToMeshXf = 44
staticprotected

◆ _offsetof_maxDeletedComponentFaces

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_maxDeletedComponentFaces = 28
staticprotected

◆ _offsetof_maxNewRank2VertDev

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_maxNewRank2VertDev = 4
staticprotected

◆ _offsetof_maxNewRank3VertDev

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_maxNewRank3VertDev = 8
staticprotected

◆ _offsetof_maxOldVertPosCorrection

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_maxOldVertPosCorrection = 16
staticprotected

◆ _offsetof_minNewVertDev

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_minNewVertDev = 0
staticprotected

◆ _offsetof_offset

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_offset = 12
staticprotected

◆ _offsetof_outSharpEdges

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_outSharpEdges = 96
staticprotected

◆ _offsetof_posSelIters

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_posSelIters = 20
staticprotected

◆ _offsetof_voxelClamp

typing mrmeshpy.ConstSharpenMarchingCubesMeshSettings._offsetof_voxelClamp = 24
staticprotected

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