MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.MeshToDistanceMapParams Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, Vector3f direction, Vector2i resolution, MeshPart mp, bool usePreciseBoundingBox=False)
 
None __init__ (self, Vector3f direction, Vector2f pixelSize, MeshPart mp, bool usePreciseBoundingBox=False)
 
None __init__ (self, Matrix3f rotation, Vector3f origin, Vector2i resolution, Vector2f size)
 
None __init__ (self, Matrix3f rotation, Vector3f origin, Vector2f pixelSize, Vector2i resolution)
 
None __init__ (self, Matrix3f rotation, Vector2i resolution, MeshPart mp, bool usePreciseBoundingBox=False)
 
None __init__ (self, AffineXf3f xf, Vector2i resolution, Vector2f size)
 
None __init__ (self, AffineXf3f xf, Vector2f pixelSize, Vector2i resolution)
 
None __init__ (self, MeshToDistanceMapParams arg0)
 
None setDistanceLimits (self, float min, float max)
 
AffineXf3f xf (self)
 
bool allowNegativeValues (self)
 
None allowNegativeValues (self, bool arg1)
 
Vector3f direction (self)
 
None direction (self, Vector3f arg1)
 
float maxValue (self)
 
None maxValue (self, float arg1)
 
float minValue (self)
 
None minValue (self, float arg1)
 
Vector3f orgPoint (self)
 
None orgPoint (self, Vector3f arg1)
 
Vector2i resolution (self)
 
None resolution (self, Vector2i arg1)
 
bool useDistanceLimits (self)
 
None useDistanceLimits (self, bool arg1)
 
Vector3f xRange (self)
 
None xRange (self, Vector3f arg1)
 
Vector3f yRange (self)
 
None yRange (self, Vector3f arg1)
 

Protected Member Functions

AffineXf3f _convert_to_AffineXf3f (self)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::MeshToDistanceMapParams

\\addtogroup DistanceMapGroup
\\{

Constructor & Destructor Documentation

◆ __init__() [1/9]

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

◆ __init__() [2/9]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
Vector3f direction,
Vector2i resolution,
MeshPart 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__() [3/9]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
Vector3f direction,
Vector2f pixelSize,
MeshPart mp,
bool usePreciseBoundingBox = False )

◆ __init__() [4/9]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
Matrix3f rotation,
Vector3f origin,
Vector2i resolution,
Vector2f 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__() [5/9]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
Matrix3f rotation,
Vector3f origin,
Vector2f pixelSize,
Vector2i resolution )

◆ __init__() [6/9]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
Matrix3f rotation,
Vector2i resolution,
MeshPart 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__() [7/9]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
AffineXf3f xf,
Vector2i resolution,
Vector2f 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__() [8/9]

None mrmeshpy.MeshToDistanceMapParams.__init__ ( self,
AffineXf3f xf,
Vector2f pixelSize,
Vector2i resolution )

◆ __init__() [9/9]

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

Member Function Documentation

◆ _convert_to_AffineXf3f()

AffineXf3f mrmeshpy.MeshToDistanceMapParams._convert_to_AffineXf3f ( self)
protected
converts in transformation

◆ _pybind11_conduit_v1_()

mrmeshpy.MeshToDistanceMapParams._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ allowNegativeValues() [1/2]

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

◆ allowNegativeValues() [2/2]

None mrmeshpy.MeshToDistanceMapParams.allowNegativeValues ( self,
bool arg1 )

◆ direction() [1/2]

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

◆ direction() [2/2]

None mrmeshpy.MeshToDistanceMapParams.direction ( self,
Vector3f arg1 )

◆ maxValue() [1/2]

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

◆ maxValue() [2/2]

None mrmeshpy.MeshToDistanceMapParams.maxValue ( self,
float arg1 )

◆ minValue() [1/2]

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

◆ minValue() [2/2]

None mrmeshpy.MeshToDistanceMapParams.minValue ( self,
float arg1 )

◆ orgPoint() [1/2]

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

◆ orgPoint() [2/2]

None mrmeshpy.MeshToDistanceMapParams.orgPoint ( self,
Vector3f arg1 )

◆ resolution() [1/2]

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

◆ resolution() [2/2]

None mrmeshpy.MeshToDistanceMapParams.resolution ( self,
Vector2i arg1 )

◆ 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

◆ useDistanceLimits() [2/2]

None mrmeshpy.MeshToDistanceMapParams.useDistanceLimits ( self,
bool arg1 )

◆ xf()

AffineXf3f mrmeshpy.MeshToDistanceMapParams.xf ( self)

◆ xRange() [1/2]

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

◆ xRange() [2/2]

None mrmeshpy.MeshToDistanceMapParams.xRange ( self,
Vector3f arg1 )

◆ yRange() [1/2]

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

◆ yRange() [2/2]

None mrmeshpy.MeshToDistanceMapParams.yRange ( self,
Vector3f arg1 )

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