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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstVector3f direction, ConstVector2i resolution, ConstMeshPart mp, bool usePreciseBoundingBox=False)
None __init__ (self, ConstVector3f direction, ConstVector2f pixelSize, ConstMeshPart mp, bool usePreciseBoundingBox=False)
None __init__ (self, ConstMatrix3f rotation, ConstVector3f origin, ConstVector2i resolution, ConstVector2f size)
None __init__ (self, ConstMatrix3f rotation, ConstVector3f origin, ConstVector2f pixelSize, ConstVector2i resolution)
None __init__ (self, ConstMatrix3f rotation, ConstVector2i resolution, ConstMeshPart mp, bool usePreciseBoundingBox=False)
None __init__ (self, ConstAffineXf3f xf, ConstVector2i resolution, ConstVector2f size)
None __init__ (self, ConstAffineXf3f xf, ConstVector2f pixelSize, ConstVector2i resolution)
None __init__ (self, ConstMeshToDistanceMapParams arg0)
MeshToDistanceMapParams assign (self, ConstMeshToDistanceMapParams other)
None setDistanceLimits (self, float min, float max)
bool allowNegativeValues (self)
None allowNegativeValues (self, bool arg1)
Vector3f direction (self)
None direction (self, ConstVector3f arg1)
float maxValue (self)
None maxValue (self, float arg1)
float minValue (self)
None minValue (self, float arg1)
Vector3f orgPoint (self)
None orgPoint (self, ConstVector3f arg1)
Vector2i resolution (self)
None resolution (self, ConstVector2i arg1)
bool useDistanceLimits (self)
None useDistanceLimits (self, bool arg1)
Vector3f xRange (self)
None xRange (self, ConstVector3f arg1)
Vector3f yRange (self)
None yRange (self, ConstVector3f arg1)
Public Member Functions inherited from mrmeshpy.ConstMeshToDistanceMapParams
 __init__ (self, *args, **kwargs)
AffineXf3f xf (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

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

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

◆ __init__() [2/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self)
default constructor. Manual params initialization is required:

◆ __init__() [3/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstVector3f direction,
ConstVector2i resolution,
ConstMeshPart mp,
bool usePreciseBoundingBox = False )
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

◆ __init__() [4/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstVector3f direction,
ConstVector2f pixelSize,
ConstMeshPart mp,
bool usePreciseBoundingBox = False )

◆ __init__() [5/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstMatrix3f rotation,
ConstVector3f origin,
ConstVector2i resolution,
ConstVector2f size )
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

◆ __init__() [6/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstMatrix3f rotation,
ConstVector3f origin,
ConstVector2f pixelSize,
ConstVector2i resolution )

◆ __init__() [7/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstMatrix3f rotation,
ConstVector2i resolution,
ConstMeshPart mp,
bool usePreciseBoundingBox = False )
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

◆ __init__() [8/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstAffineXf3f xf,
ConstVector2i resolution,
ConstVector2f size )
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

◆ __init__() [9/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstAffineXf3f xf,
ConstVector2f pixelSize,
ConstVector2i resolution )

◆ __init__() [10/10]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
ConstMeshToDistanceMapParams arg0 )
Implicit copy constructor.

Member Function Documentation

◆ allowNegativeValues() [1/2]

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

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ allowNegativeValues() [2/2]

None mrmeshpy.MeshToDistanceMapParams.allowNegativeValues ( self,
bool arg1 )
allows to find intersections in backward to direction vector with negative values

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ assign()

MeshToDistanceMapParams mrmeshpy.MeshToDistanceMapParams.assign ( self,
ConstMeshToDistanceMapParams other )

◆ direction() [1/2]

Vector3f mrmeshpy.MeshToDistanceMapParams.direction ( self)
direction of intersection ray

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ direction() [2/2]

None mrmeshpy.MeshToDistanceMapParams.direction ( self,
ConstVector3f arg1 )
direction of intersection ray

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ maxValue() [1/2]

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

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ maxValue() [2/2]

None mrmeshpy.MeshToDistanceMapParams.maxValue ( self,
float arg1 )
Using of this parameter depends on useDistanceLimits

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ minValue() [1/2]

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

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ minValue() [2/2]

None mrmeshpy.MeshToDistanceMapParams.minValue ( self,
float arg1 )
Using of this parameter depends on useDistanceLimits

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ orgPoint() [1/2]

Vector3f mrmeshpy.MeshToDistanceMapParams.orgPoint ( self)
location of (0,0) pixel with value 0.f

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ orgPoint() [2/2]

None mrmeshpy.MeshToDistanceMapParams.orgPoint ( self,
ConstVector3f arg1 )
location of (0,0) pixel with value 0.f

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ resolution() [1/2]

Vector2i mrmeshpy.MeshToDistanceMapParams.resolution ( self)
resolution of distance map

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ resolution() [2/2]

None mrmeshpy.MeshToDistanceMapParams.resolution ( self,
ConstVector2i arg1 )
resolution of distance map

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ setDistanceLimits()

None mrmeshpy.MeshToDistanceMapParams.setDistanceLimits ( self,
float min,
float max )
if distance is not in set range, pixel became invalid
default value: false. Any distance will be applied (include negative)

◆ useDistanceLimits() [1/2]

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

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ useDistanceLimits() [2/2]

None mrmeshpy.MeshToDistanceMapParams.useDistanceLimits ( self,
bool arg1 )
out of limits intersections will be set to non-valid

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ xRange() [1/2]

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

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ xRange() [2/2]

None mrmeshpy.MeshToDistanceMapParams.xRange ( self,
ConstVector3f arg1 )
Cartesian range vector between distance map borders in X direction

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ yRange() [1/2]

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

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.

◆ yRange() [2/2]

None mrmeshpy.MeshToDistanceMapParams.yRange ( self,
ConstVector3f arg1 )
Cartesian range vector between distance map borders in Y direction

Reimplemented from mrmeshpy.ConstMeshToDistanceMapParams.


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