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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstSharpenMarchingCubesMeshSettings arg0)
None __init__ (self, float minNewVertDev, float maxNewRank2VertDev, float maxNewRank3VertDev, float offset, float maxOldVertPosCorrection, int posSelIters, bool voxelClamp, int maxDeletedComponentFaces, ConstVector3i dims, ConstAffineXf3f gridToMeshXf, UndirectedEdgeBitSet outSharpEdges)
SharpenMarchingCubesMeshSettings assign (self, ConstSharpenMarchingCubesMeshSettings other)
Vector3i dims (self)
None dims (self, ConstVector3i arg1)
AffineXf3f gridToMeshXf (self)
None gridToMeshXf (self, ConstAffineXf3f arg1)
int maxDeletedComponentFaces (self)
None maxDeletedComponentFaces (self, int arg1)
float maxNewRank2VertDev (self)
None maxNewRank2VertDev (self, float arg1)
float maxNewRank3VertDev (self)
None maxNewRank3VertDev (self, float arg1)
float maxOldVertPosCorrection (self)
None maxOldVertPosCorrection (self, float arg1)
float minNewVertDev (self)
None minNewVertDev (self, float arg1)
float offset (self)
None offset (self, float arg1)
UndirectedEdgeBitSet outSharpEdges (self)
None outSharpEdges (self, UndirectedEdgeBitSet arg1)
int posSelIters (self)
None posSelIters (self, int arg1)
bool voxelClamp (self)
None voxelClamp (self, bool arg1)
Public Member Functions inherited from mrmeshpy.ConstSharpenMarchingCubesMeshSettings
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstSharpenMarchingCubesMeshSettings
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__() [1/4]

None mrmeshpy.SharpenMarchingCubesMeshSettings.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.SharpenMarchingCubesMeshSettings.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.SharpenMarchingCubesMeshSettings.__init__ ( self,
ConstSharpenMarchingCubesMeshSettings arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.SharpenMarchingCubesMeshSettings.__init__ ( self,
float minNewVertDev,
float maxNewRank2VertDev,
float maxNewRank3VertDev,
float offset,
float maxOldVertPosCorrection,
int posSelIters,
bool voxelClamp,
int maxDeletedComponentFaces,
ConstVector3i dims,
ConstAffineXf3f gridToMeshXf,
UndirectedEdgeBitSet outSharpEdges )
Implicit aggregate constructor.

Member Function Documentation

◆ assign()

SharpenMarchingCubesMeshSettings mrmeshpy.SharpenMarchingCubesMeshSettings.assign ( self,
ConstSharpenMarchingCubesMeshSettings other )

◆ dims() [1/2]

Vector3i mrmeshpy.SharpenMarchingCubesMeshSettings.dims ( self)
Marching Cubes volume dimensions

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ dims() [2/2]

None mrmeshpy.SharpenMarchingCubesMeshSettings.dims ( self,
ConstVector3i arg1 )
Marching Cubes volume dimensions

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ gridToMeshXf() [1/2]

AffineXf3f mrmeshpy.SharpenMarchingCubesMeshSettings.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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ gridToMeshXf() [2/2]

None mrmeshpy.SharpenMarchingCubesMeshSettings.gridToMeshXf ( self,
ConstAffineXf3f arg1 )
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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxDeletedComponentFaces() [1/2]

int mrmeshpy.SharpenMarchingCubesMeshSettings.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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxDeletedComponentFaces() [2/2]

None mrmeshpy.SharpenMarchingCubesMeshSettings.maxDeletedComponentFaces ( self,
int arg1 )
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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxNewRank2VertDev() [1/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxNewRank2VertDev() [2/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxNewRank3VertDev() [1/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxNewRank3VertDev() [2/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxOldVertPosCorrection() [1/2]

float mrmeshpy.SharpenMarchingCubesMeshSettings.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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ maxOldVertPosCorrection() [2/2]

None mrmeshpy.SharpenMarchingCubesMeshSettings.maxOldVertPosCorrection ( self,
float arg1 )
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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ minNewVertDev() [1/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ minNewVertDev() [2/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ offset() [1/2]

float mrmeshpy.SharpenMarchingCubesMeshSettings.offset ( self)
relative to reference mesh

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ offset() [2/2]

None mrmeshpy.SharpenMarchingCubesMeshSettings.offset ( self,
float arg1 )
relative to reference mesh

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ outSharpEdges() [1/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ outSharpEdges() [2/2]

None mrmeshpy.SharpenMarchingCubesMeshSettings.outSharpEdges ( self,
UndirectedEdgeBitSet arg1 )
if non-null then created sharp edges will be saved here

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ posSelIters() [1/2]

int mrmeshpy.SharpenMarchingCubesMeshSettings.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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ posSelIters() [2/2]

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

Reimplemented from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ voxelClamp() [1/2]

bool mrmeshpy.SharpenMarchingCubesMeshSettings.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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.

◆ voxelClamp() [2/2]

None mrmeshpy.SharpenMarchingCubesMeshSettings.voxelClamp ( self,
bool arg1 )
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 from mrmeshpy.ConstSharpenMarchingCubesMeshSettings.


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