MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.SignDetectionMode:

Public Member Functions

 __new__ (cls, value)
 __format__ (self, format_spec)
 __str__ (self)

Static Public Attributes

typing HoleWindingRule .ClassVar[SignDetectionMode]
typing OddCrossings .ClassVar[SignDetectionMode]
typing OpenVDB .ClassVar[SignDetectionMode]
typing ProjectionNormal .ClassVar[SignDetectionMode]
typing Unsigned .ClassVar[SignDetectionMode]
typing WindingRule .ClassVar[SignDetectionMode]

Protected Member Functions

 _missing_ (cls, value)
 _value_repr_ (self)

Static Protected Member Functions

 _generate_next_value_ (name, start, count, last_values)
 _new_member_ (type, *args, **kwargs)

Static Protected Attributes

typing _member_map_ .ClassVar[dict]
list _member_names_ = ['Unsigned', 'OpenVDB', 'ProjectionNormal', 'OddCrossings', 'HoleWindingRule']
typing _unhashable_values_ = list()
typing _use_args_ = True
typing _value2member_map_ .ClassVar[dict]
 _member_type_ = builtins.int

Detailed Description

Members:

  Unsigned : unsigned distance, useful for bidirectional `Shell` offset

  OpenVDB : sign detection from OpenVDB library, which is good and fast if input geometry is closed

  ProjectionNormal : the sign is determined based on pseudonormal in closest mesh point (unsafe in case of self-intersections)

  OddCrossings : a point is inside if the surface is crossed an odd number of times on the way from the point to infinity, triangle orientation is ignored
(as InsideMeshRule::OddCrossings in makeInsideMeshVolume); for meshes with holes, the result depends on the ray direction (+X);
signedDistanceToMesh casts a ray from every point, while the volume functions (e.g. meshToDistanceVolume) cast one ray per row of voxels, which is much faster;
this mode does NOT have CUDA acceleration at this moment

  WindingRule : old name of OddCrossings

  HoleWindingRule : computes robust winding number generalization with support of holes and self-intersections in mesh,
it is the slowest sign detection mode, but it CAN be accelerated with CUDA if this mode activated e.g. in OffsetParameters.fwn

Member Function Documentation

◆ __format__()

mrmeshpy.SignDetectionMode.__format__ ( self,
format_spec )
Convert to a string according to format_spec.

◆ __new__()

mrmeshpy.SignDetectionMode.__new__ ( cls,
value )

◆ __str__()

mrmeshpy.SignDetectionMode.__str__ ( self)

◆ _generate_next_value_()

mrmeshpy.SignDetectionMode._generate_next_value_ ( name,
start,
count,
last_values )
staticprotected
        Generate the next value when not given.

        name: the name of the member
        start: the initial start value or None
        count: the number of existing members
        last_values: the list of values assigned

◆ _missing_()

mrmeshpy.SignDetectionMode._missing_ ( cls,
value )
protected

◆ _new_member_()

mrmeshpy.SignDetectionMode._new_member_ ( type,
* args,
** kwargs )
staticprotected
Create and return a new object.  See help(type) for accurate signature.

◆ _value_repr_()

mrmeshpy.SignDetectionMode._value_repr_ ( self)
protected
Return repr(self).

Member Data Documentation

◆ _member_map_

typing mrmeshpy.SignDetectionMode._member_map_ .ClassVar[dict]
staticprotected

◆ _member_names_

list mrmeshpy.SignDetectionMode._member_names_ = ['Unsigned', 'OpenVDB', 'ProjectionNormal', 'OddCrossings', 'HoleWindingRule']
staticprotected

◆ _member_type_

mrmeshpy.SignDetectionMode._member_type_ = builtins.int
staticprotected

◆ _unhashable_values_

typing mrmeshpy.SignDetectionMode._unhashable_values_ = list()
staticprotected

◆ _use_args_

typing mrmeshpy.SignDetectionMode._use_args_ = True
staticprotected

◆ _value2member_map_

typing mrmeshpy.SignDetectionMode._value2member_map_ .ClassVar[dict]
staticprotected

◆ HoleWindingRule

typing mrmeshpy.SignDetectionMode.HoleWindingRule .ClassVar[SignDetectionMode]
static

◆ OddCrossings

typing mrmeshpy.SignDetectionMode.OddCrossings .ClassVar[SignDetectionMode]
static

◆ OpenVDB

typing mrmeshpy.SignDetectionMode.OpenVDB .ClassVar[SignDetectionMode]
static

◆ ProjectionNormal

typing mrmeshpy.SignDetectionMode.ProjectionNormal .ClassVar[SignDetectionMode]
static

◆ Unsigned

typing mrmeshpy.SignDetectionMode.Unsigned .ClassVar[SignDetectionMode]
static

◆ WindingRule

typing mrmeshpy.SignDetectionMode.WindingRule .ClassVar[SignDetectionMode]
static

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