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

Public Member Functions

 __init__ (self, *args, **kwargs)
AffineXf3f xf (self)
bool allowNegativeValues (self)
ConstVector3f direction (self)
float maxValue (self)
float minValue (self)
ConstVector3f orgPoint (self)
ConstVector2i resolution (self)
bool useDistanceLimits (self)
ConstVector3f xRange (self)
ConstVector3f yRange (self)

Static Protected Attributes

typing _offsetof_allowNegativeValues = 49
typing _offsetof_direction = 24
typing _offsetof_maxValue = 56
typing _offsetof_minValue = 52
typing _offsetof_orgPoint = 36
typing _offsetof_resolution = 60
typing _offsetof_useDistanceLimits = 48
typing _offsetof_xRange = 0
typing _offsetof_yRange = 12

Detailed Description

Generated from:  MR::MeshToDistanceMapParams

Constructor & Destructor Documentation

◆ __init__()

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

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

default constructor. Manual params initialization is required:

2. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, direction: meshlib.mrmeshpy.ConstVector3f, resolution: meshlib.mrmeshpy.ConstVector2i, mp: meshlib.mrmeshpy.ConstMeshPart, usePreciseBoundingBox: bool = False) -> None

direction vector shows the projections vector to the distance map for points on model
yRange and xRange directions make orthonormal basis with direction
see Vector3<T>::perpendicular() for more details
All Output Distance map values will be positive
usePreciseBoundingBox false (fast): use general (cached) bounding box with applied rotation
usePreciseBoundingBox true (slow): compute bounding box from points with respect to rotation

3. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, direction: meshlib.mrmeshpy.ConstVector3f, pixelSize: meshlib.mrmeshpy.ConstVector2f, mp: meshlib.mrmeshpy.ConstMeshPart, usePreciseBoundingBox: bool = False) -> None

4. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, rotation: meshlib.mrmeshpy.ConstMatrix3f, origin: meshlib.mrmeshpy.ConstVector3f, resolution: meshlib.mrmeshpy.ConstVector2i, size: meshlib.mrmeshpy.ConstVector2f) -> None

input matrix should be orthonormal!
rotation.z - direction
rotation.x * (box X length) - xRange
rotation.y * (box Y length) - yRange
All Output Distance map values will be positive

5. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, rotation: meshlib.mrmeshpy.ConstMatrix3f, origin: meshlib.mrmeshpy.ConstVector3f, pixelSize: meshlib.mrmeshpy.ConstVector2f, resolution: meshlib.mrmeshpy.ConstVector2i) -> None

6. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, rotation: meshlib.mrmeshpy.ConstMatrix3f, resolution: meshlib.mrmeshpy.ConstVector2i, mp: meshlib.mrmeshpy.ConstMeshPart, usePreciseBoundingBox: bool = False) -> None

input matrix should be orthonormal!
rotation.z - direction
rotation.x * (box X length) - xRange
rotation.y * (box Y length) - yRange
All Output Distance map values will be positive
usePreciseBoundingBox false (fast): use general (cached) bounding box with applied rotation
usePreciseBoundingBox true (slow): compute bounding box from points with respect to rotation

7. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, xf: meshlib.mrmeshpy.ConstAffineXf3f, resolution: meshlib.mrmeshpy.ConstVector2i, size: meshlib.mrmeshpy.ConstVector2f) -> None

The most general constructor. Use it if you have to find special view, resolution,
distance map with visual the part of the model etc.
All params match is in the user responsibility
xf.b - origin point: pixel(0,0) with value 0.
xf.A.z - direction
xf.A.x - xRange
xf.A.y - yRange
All Output Distance map values could be positive and negative by default. Set allowNegativeValues to false if negative values are not required

8. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, xf: meshlib.mrmeshpy.ConstAffineXf3f, pixelSize: meshlib.mrmeshpy.ConstVector2f, resolution: meshlib.mrmeshpy.ConstVector2i) -> None

9. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, arg0: meshlib.mrmeshpy.ConstMeshToDistanceMapParams) -> None

Implicit copy constructor.

10. __init__(self: meshlib.mrmeshpy.ConstMeshToDistanceMapParams, : meshlib.mrmeshpy.ConstMeshToDistanceMapParams) -> None

Member Function Documentation

◆ allowNegativeValues()

bool mrmeshpy.ConstMeshToDistanceMapParams.allowNegativeValues ( self)
allows to find intersections in backward to direction vector with negative values

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ direction()

ConstVector3f mrmeshpy.ConstMeshToDistanceMapParams.direction ( self)
direction of intersection ray

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ maxValue()

float mrmeshpy.ConstMeshToDistanceMapParams.maxValue ( self)
Using of this parameter depends on useDistanceLimits

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ minValue()

float mrmeshpy.ConstMeshToDistanceMapParams.minValue ( self)
Using of this parameter depends on useDistanceLimits

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ orgPoint()

ConstVector3f mrmeshpy.ConstMeshToDistanceMapParams.orgPoint ( self)
location of (0,0) pixel with value 0.f

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ resolution()

ConstVector2i mrmeshpy.ConstMeshToDistanceMapParams.resolution ( self)
resolution of distance map

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ useDistanceLimits()

bool mrmeshpy.ConstMeshToDistanceMapParams.useDistanceLimits ( self)
out of limits intersections will be set to non-valid

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ xf()

AffineXf3f mrmeshpy.ConstMeshToDistanceMapParams.xf ( self)

◆ xRange()

ConstVector3f mrmeshpy.ConstMeshToDistanceMapParams.xRange ( self)
Cartesian range vector between distance map borders in X direction

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

◆ yRange()

ConstVector3f mrmeshpy.ConstMeshToDistanceMapParams.yRange ( self)
Cartesian range vector between distance map borders in Y direction

Reimplemented in mrmeshpy.MeshToDistanceMapParams, and mrmeshpy.MeshToDistanceMapParams.

Member Data Documentation

◆ _offsetof_allowNegativeValues

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_allowNegativeValues = 49
staticprotected

◆ _offsetof_direction

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_direction = 24
staticprotected

◆ _offsetof_maxValue

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_maxValue = 56
staticprotected

◆ _offsetof_minValue

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_minValue = 52
staticprotected

◆ _offsetof_orgPoint

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_orgPoint = 36
staticprotected

◆ _offsetof_resolution

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_resolution = 60
staticprotected

◆ _offsetof_useDistanceLimits

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_useDistanceLimits = 48
staticprotected

◆ _offsetof_xRange

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_xRange = 0
staticprotected

◆ _offsetof_yRange

typing mrmeshpy.ConstMeshToDistanceMapParams._offsetof_yRange = 12
staticprotected

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