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

Public Member Functions

None __init__ (self)
None __init__ (self, int resX, int resY)
None __init__ (self, ConstMatrix_float m)
None __init__ (self, ConstDistanceMap arg0)
ConstDistanceMap __isub__ (self, ConstDistanceMap rhs)
DistanceMap assign (self, ConstDistanceMap other)
None clear (self)
float data (self)
float data (ConstDistanceMap self)
float getValue (self, int x, int y)
float getValue (self, int i)
float getValue (ConstDistanceMap self, int x, int y)
float getValue (ConstDistanceMap self, int i)
None invalidateAll (self)
ConstDistanceMap mergeMax (self, ConstDistanceMap rhs)
ConstDistanceMap mergeMin (self, ConstDistanceMap rhs)
None negate (self)
None set (self, int x, int y, float val)
None set (self, int i, float val)
None set (self, Const_std_vector_float data)
None unset (self, int x, int y)
None unset (self, int i)
Public Member Functions inherited from mrmeshpy.ConstDistanceMap
 __init__ (self, *args, **kwargs)
DistanceMap __sub__ (self, ConstDistanceMap rhs)
float get (self, int x, int y)
float get (self, int i)
DistanceMap getDerivativeMap (self)
float getInterpolated (self, float x, float y)
std_vector_std_pair_unsigned_long_unsigned_long getLocalMaximums (self)
tuple[int, int] getMaxIndex (self)
tuple[int, int] getMinIndex (self)
tuple[float, float] getMinMaxValues (self)
tuple[DistanceMap, DistanceMap] getXYDerivativeMaps (self)
int heapBytes (self)
bool isInBounds (self, int x, int y)
bool isInBounds (self, int i)
bool isValid (self, int x, int y)
bool isValid (self, int i)
DistanceMap max (self, ConstDistanceMap rhs)
DistanceMap min (self, ConstDistanceMap rhs)
int numPoints (self)
int resX (self)
int resY (self)
Vector3f unproject (self, int x, int y, ConstAffineXf3f toWorld)
Vector3f unprojectInterpolated (self, float x, float y, ConstAffineXf3f toWorld)
Public Member Functions inherited from mrmeshpy.ConstRectIndexer
 __init__ (self, *args, **kwargs)
bool areNeigbors (self, ConstPixelId v0, ConstPixelId v1)
bool areNeigbors (self, ConstVector2i pos0, ConstVector2i pos1)
ConstVector2i dims (self)
PixelId getNeighbor (self, ConstPixelId v, OutEdge2 toNei)
PixelId getNeighbor (self, ConstPixelId v, ConstVector2i pos, OutEdge2 toNei)
int size (self)
int toIndex (self, ConstVector2i pos)
PixelId toPixelId (self, ConstVector2i pos)
Vector2i toPos (self, ConstPixelId id)
Vector2i toPos (self, int id)
Public Member Functions inherited from mrmeshpy.RectIndexer
None __init__ (self)
None __init__ (self, ConstVector2i dims)
None __init__ (self, ConstRectIndexer arg0)
None resize (self, ConstVector2i dims)

Static Public Member Functions

None __init__ (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.RectIndexer
None __init__ (*args, **kwargs)

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstDistanceMap
typing NOT_VALID_VALUE = -3.4028234663852886e+38

Detailed Description

Generated from:  MR::DistanceMap
Aliases:  std_shared_ptr_DistanceMap

this class allows to store distances from the plane in particular pixels
validVerts keeps only pixels with mesh-intersecting rays from them

Constructor & Destructor Documentation

◆ __init__() [1/5]

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

◆ __init__() [2/5]

None mrmeshpy.DistanceMap.__init__ ( self)

◆ __init__() [3/5]

None mrmeshpy.DistanceMap.__init__ ( self,
int resX,
int resY )
Preferable constructor with resolution arguments
Access by the index (i) is equal to (y*resX + x)

◆ __init__() [4/5]

None mrmeshpy.DistanceMap.__init__ ( self,
ConstMatrix_float m )
make from 2d array

◆ __init__() [5/5]

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

Member Function Documentation

◆ __isub__()

ConstDistanceMap mrmeshpy.DistanceMap.__isub__ ( self,
ConstDistanceMap rhs )
replaces values with cell-wise subtracted values. Invalid values remain only if both corresponding cells are invalid

◆ assign()

DistanceMap mrmeshpy.DistanceMap.assign ( self,
ConstDistanceMap other )

Reimplemented from mrmeshpy.RectIndexer.

◆ clear()

None mrmeshpy.DistanceMap.clear ( self)
clears data, sets resolutions to zero

◆ data() [1/2]

float mrmeshpy.DistanceMap.data ( ConstDistanceMap self)

Reimplemented from mrmeshpy.ConstDistanceMap.

◆ data() [2/2]

float mrmeshpy.DistanceMap.data ( self)

Reimplemented from mrmeshpy.ConstDistanceMap.

◆ getValue() [1/4]

float mrmeshpy.DistanceMap.getValue ( ConstDistanceMap self,
int i )

Reimplemented from mrmeshpy.ConstDistanceMap.

◆ getValue() [2/4]

float mrmeshpy.DistanceMap.getValue ( ConstDistanceMap self,
int x,
int y )

Reimplemented from mrmeshpy.ConstDistanceMap.

◆ getValue() [3/4]

float mrmeshpy.DistanceMap.getValue ( self,
int i )

Reimplemented from mrmeshpy.ConstDistanceMap.

◆ getValue() [4/4]

float mrmeshpy.DistanceMap.getValue ( self,
int x,
int y )
returns value in (X,Y) element without check on valid
use this only if you sure that distance map has no invalid values or for serialization

Reimplemented from mrmeshpy.ConstDistanceMap.

◆ invalidateAll()

None mrmeshpy.DistanceMap.invalidateAll ( self)
invalidates all elements

◆ mergeMax()

ConstDistanceMap mrmeshpy.DistanceMap.mergeMax ( self,
ConstDistanceMap rhs )
replaces values with cell-wise maximum values. Invalid values remain only if both corresponding cells are invalid

◆ mergeMin()

ConstDistanceMap mrmeshpy.DistanceMap.mergeMin ( self,
ConstDistanceMap rhs )
replaces values with cell-wise minimum values. Invalid values remain only if both corresponding cells are invalid

◆ negate()

None mrmeshpy.DistanceMap.negate ( self)
replaces every valid element in the map with its negative value

◆ set() [1/3]

None mrmeshpy.DistanceMap.set ( self,
Const_std_vector_float data )
sets all values at one time

◆ set() [2/3]

None mrmeshpy.DistanceMap.set ( self,
int i,
float val )
sets value in index element (the coord must be valid, UB otherwise)

◆ set() [3/3]

None mrmeshpy.DistanceMap.set ( self,
int x,
int y,
float val )
sets value in (X,Y) element (the coords must be valid, UB otherwise)

◆ unset() [1/2]

None mrmeshpy.DistanceMap.unset ( self,
int i )
invalidates value in index element (the coord must be valid, UB otherwise)

◆ unset() [2/2]

None mrmeshpy.DistanceMap.unset ( self,
int x,
int y )
invalidates value in (X,Y) element (the coords must be valid, UB otherwise)

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