MeshLib C# Docs
Loading...
Searching...
No Matches

this class allows to store distances from the plane in particular pixels validVerts keeps only pixels with mesh-intersecting rays from them Generated from class MR.DistanceMap. Base classes: Direct: (non-virtual) MR.RectIndexer This is the non-const half of the class. More...

Inheritance diagram for MR.DistanceMap:

Public Member Functions

unsafe DistanceMap ()
 Constructs an empty (default-constructed) instance.
unsafe DistanceMap (MR._ByValue_DistanceMap _other)
 Generated from constructor MR.DistanceMap.DistanceMap.
 DistanceMap (Const_DistanceMap _other)
 Generated from constructor MR.DistanceMap.DistanceMap.
 DistanceMap (DistanceMap _other)
 Generated from constructor MR.DistanceMap.DistanceMap.
unsafe DistanceMap (ulong resX, ulong resY)
 Preferable constructor with resolution arguments Access by the index (i) is equal to (y*resX + x) Generated from constructor MR.DistanceMap.DistanceMap.
unsafe DistanceMap (MR.Const_Matrix_Float m)
 make from 2d array Generated from constructor MR.DistanceMap.DistanceMap.
unsafe MR.DistanceMap assign (MR._ByValue_DistanceMap _other)
 Generated from method MR::DistanceMap::operator=.
unsafe new ref float getValue (ulong x, ulong 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 Generated from method MR.DistanceMap.getValue.
unsafe new ref float getValue (ulong i)
 Generated from method MR.DistanceMap.getValue.
unsafe new MR.Misc.? Ref< float > data ()
 Generated from method MR.DistanceMap.data.
unsafe void negate ()
 replaces every valid element in the map with its negative value Generated from method MR.DistanceMap.negate.
unsafe MR.Const_DistanceMap mergeMax (MR.Const_DistanceMap rhs)
 replaces values with cell-wise maximum values. Invalid values remain only if both corresponding cells are invalid Generated from method MR.DistanceMap.mergeMax.
unsafe MR.Const_DistanceMap mergeMin (MR.Const_DistanceMap rhs)
 replaces values with cell-wise minimum values. Invalid values remain only if both corresponding cells are invalid Generated from method MR.DistanceMap.mergeMin.
unsafe MR.Const_DistanceMap subAssign (MR.Const_DistanceMap rhs)
 replaces values with cell-wise subtracted values. Invalid values remain only if both corresponding cells are invalid Generated from method MR::DistanceMap::operator-=.
unsafe void set (ulong x, ulong y, float val)
 sets value in (X,Y) element (the coords must be valid, UB otherwise) Generated from method MR.DistanceMap.set.
unsafe void set (ulong i, float val)
 sets value in index element (the coord must be valid, UB otherwise) Generated from method MR.DistanceMap.set.
unsafe void set (MR.Std._ByValue_Vector_Float data)
 sets all values at one time Generated from method MR.DistanceMap.set.
unsafe void unset (ulong x, ulong y)
 invalidates value in (X,Y) element (the coords must be valid, UB otherwise) Generated from method MR.DistanceMap.unset.
unsafe void unset (ulong i)
 invalidates value in index element (the coord must be valid, UB otherwise) Generated from method MR.DistanceMap.unset.
unsafe void invalidateAll ()
 invalidates all elements Generated from method MR.DistanceMap.invalidateAll.
unsafe void clear ()
 clears data, sets resolutions to zero Generated from method MR.DistanceMap.clear.
unsafe void resize (in MR.Vector2i dims)
 Generated from method MR.DistanceMap.resize.
Public Member Functions inherited from MR.Const_DistanceMap
virtual void Dispose ()
unsafe Const_DistanceMap ()
 Constructs an empty (default-constructed) instance.
unsafe Const_DistanceMap (MR._ByValue_DistanceMap _other)
 Generated from constructor MR.DistanceMap.DistanceMap.
 Const_DistanceMap (Const_DistanceMap _other)
 Generated from constructor MR.DistanceMap.DistanceMap.
 Const_DistanceMap (DistanceMap _other)
 Generated from constructor MR.DistanceMap.DistanceMap.
unsafe Const_DistanceMap (ulong resX, ulong resY)
 Preferable constructor with resolution arguments Access by the index (i) is equal to (y*resX + x) Generated from constructor MR.DistanceMap.DistanceMap.
unsafe Const_DistanceMap (MR.Const_Matrix_Float m)
 make from 2d array Generated from constructor MR.DistanceMap.DistanceMap.
unsafe bool isValid (ulong x, ulong y)
 checks if X,Y element is valid (i.e. not NOT_VALID_VALUE; passing invalid coords to this is UB) Generated from method MR.DistanceMap.isValid.
unsafe bool isValid (ulong i)
 checks if index element is valid (i.e. not NOT_VALID_VALUE; passing an invalid coord to this is UB) Generated from method MR.DistanceMap.isValid.
unsafe bool isInBounds (ulong x, ulong y)
 Returns true if (X,Y) coordinates are in bounds. Generated from method MR.DistanceMap.isInBounds.
unsafe bool isInBounds (ulong i)
 Returns true if a flattened coordinate is in bounds. Generated from method MR.DistanceMap.isInBounds.
unsafe MR.Std.Optional_Float get (ulong x, ulong y)
 returns value in (X,Y) element, returns nullopt if not valid (see isValid()), UB if out of bounds. Generated from method MR.DistanceMap.get.
unsafe MR.Std.Optional_Float get (ulong i)
 returns value of index element, returns nullopt if not valid (see isValid()), UB if out of bounds. Generated from method MR.DistanceMap.get.
unsafe float getValue (ulong x, ulong y)
 Generated from method MR.DistanceMap.getValue.
unsafe float getValue (ulong i)
 Generated from method MR.DistanceMap.getValue.
unsafe? float data ()
 Generated from method MR.DistanceMap.data.
unsafe MR.Std.Optional_Float getInterpolated (float x, float y)
 finds interpolated value.
unsafe MR.Std.Optional_MRVector3f unproject (ulong x, ulong y, in MR.AffineXf3f toWorld)
 finds 3d coordinates of the Point on the model surface for the (x,y) pixel Use the same params with distance map creation (x,y) must be in bounds, the behavior is undefined otherwise. Generated from method MR.DistanceMap.unproject.
unsafe MR.Std.Optional_MRVector3f unprojectInterpolated (float x, float y, in MR.AffineXf3f toWorld)
 finds 3d coordinates of the Point on the model surface for the (x,y) interpolated value
unsafe MR.DistanceMap max (MR.Const_DistanceMap rhs)
 boolean operators returns new Distance Map with cell-wise maximum values. Invalid values remain only if both corresponding cells are invalid Generated from method MR.DistanceMap.max.
unsafe MR.DistanceMap min (MR.Const_DistanceMap rhs)
 returns new Distance Map with cell-wise minimum values. Invalid values remain only if both corresponding cells are invalid Generated from method MR.DistanceMap.min.
unsafe MR.DistanceMap getDerivativeMap ()
 returns new derivatives map without directions Generated from method MR.DistanceMap.getDerivativeMap.
unsafe MR.Std.Pair_MRDistanceMap_MRDistanceMap getXYDerivativeMaps ()
 returns new derivative maps with X and Y axes direction Generated from method MR.DistanceMap.getXYDerivativeMaps.
unsafe MR.Std.Vector_StdPairMRUint64TMRUint64T getLocalMaximums ()
 computes single derivative map from XY spaces combined. Returns local maximums then Generated from method MR.DistanceMap.getLocalMaximums.
unsafe ulong resX ()
 returns X resolution Generated from method MR.DistanceMap.resX.
unsafe ulong resY ()
 returns Y resolution Generated from method MR.DistanceMap.resY.
unsafe ulong numPoints ()
 returns the number of pixels Generated from method MR.DistanceMap.numPoints.
unsafe MR.Std.Pair_Float_Float getMinMaxValues ()
 finds minimum and maximum values returns min_float and max_float if all values are invalid Generated from method MR.DistanceMap.getMinMaxValues.
unsafe MR.Std.Pair_MRUint64T_MRUint64T getMinIndex ()
 finds minimum value X,Y returns [-1.-1] if all values are invalid Generated from method MR.DistanceMap.getMinIndex.
unsafe MR.Std.Pair_MRUint64T_MRUint64T getMaxIndex ()
 finds maximum value X,Y returns [-1.-1] if all values are invalid Generated from method MR.DistanceMap.getMaxIndex.
unsafe ulong heapBytes ()
 returns the amount of memory this object occupies on heap Generated from method MR.DistanceMap.heapBytes.
unsafe ref readonly MR.Vector2i dims ()
 Generated from method MR.DistanceMap.dims.
unsafe ulong size ()
 Generated from method MR.DistanceMap.size.
unsafe MR.PixelId toPixelId (in MR.Vector2i pos)
 Generated from method MR.DistanceMap.toPixelId.
unsafe ulong toIndex (in MR.Vector2i pos)
 Generated from method MR.DistanceMap.toIndex.

Static Public Member Functions

static unsafe implicit operator MR.RectIndexer (DistanceMap self)
static unsafe implicit operator DistanceMap (MR.Const_Matrix_Float m)
 make from 2d array Generated from constructor MR.DistanceMap.DistanceMap.
Static Public Member Functions inherited from MR.Const_DistanceMap
static unsafe implicit operator MR.Const_RectIndexer (Const_DistanceMap self)
static unsafe implicit operator Const_DistanceMap (MR.Const_Matrix_Float m)
 make from 2d array Generated from constructor MR.DistanceMap.DistanceMap.
static unsafe MR.DistanceMap operator- (MR.Const_DistanceMap _this, MR.Const_DistanceMap rhs)
 returns new Distance Map with cell-wise subtracted values. Invalid values remain only if both corresponding cells are invalid Generated from method MR::DistanceMap::operator-.

Additional Inherited Members

Protected Member Functions inherited from MR.Const_DistanceMap
virtual unsafe void Dispose (bool disposing)
Static Protected Attributes inherited from MR.Const_DistanceMap
static unsafe float * __ref_storage_NOTVALIDVALUE
Properties inherited from MR.Const_DistanceMap
static unsafe float NOTVALIDVALUE [get]
 a constant that is treated as 'no value' or 'invalid value'

Detailed Description

this class allows to store distances from the plane in particular pixels validVerts keeps only pixels with mesh-intersecting rays from them Generated from class MR.DistanceMap. Base classes: Direct: (non-virtual) MR.RectIndexer This is the non-const half of the class.

Constructor & Destructor Documentation

◆ DistanceMap() [1/6]

unsafe MR.DistanceMap.DistanceMap ( )
inline

Constructs an empty (default-constructed) instance.

◆ DistanceMap() [2/6]

unsafe MR.DistanceMap.DistanceMap ( MR._ByValue_DistanceMap _other)
inline

Generated from constructor MR.DistanceMap.DistanceMap.

◆ DistanceMap() [3/6]

MR.DistanceMap.DistanceMap ( Const_DistanceMap _other)
inline

Generated from constructor MR.DistanceMap.DistanceMap.

◆ DistanceMap() [4/6]

MR.DistanceMap.DistanceMap ( DistanceMap _other)
inline

Generated from constructor MR.DistanceMap.DistanceMap.

◆ DistanceMap() [5/6]

unsafe MR.DistanceMap.DistanceMap ( ulong resX,
ulong resY )
inline

Preferable constructor with resolution arguments Access by the index (i) is equal to (y*resX + x) Generated from constructor MR.DistanceMap.DistanceMap.

◆ DistanceMap() [6/6]

unsafe MR.DistanceMap.DistanceMap ( MR.Const_Matrix_Float m)
inline

make from 2d array Generated from constructor MR.DistanceMap.DistanceMap.

Member Function Documentation

◆ assign()

unsafe MR.DistanceMap MR.DistanceMap.assign ( MR._ByValue_DistanceMap _other)
inline

Generated from method MR::DistanceMap::operator=.

◆ clear()

unsafe void MR.DistanceMap.clear ( )
inline

clears data, sets resolutions to zero Generated from method MR.DistanceMap.clear.

◆ data()

unsafe new MR.Misc.? Ref< float > MR.DistanceMap.data ( )
inline

Generated from method MR.DistanceMap.data.

◆ getValue() [1/2]

unsafe new ref float MR.DistanceMap.getValue ( ulong i)
inline

Generated from method MR.DistanceMap.getValue.

◆ getValue() [2/2]

unsafe new ref float MR.DistanceMap.getValue ( ulong x,
ulong y )
inline

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 Generated from method MR.DistanceMap.getValue.

◆ invalidateAll()

unsafe void MR.DistanceMap.invalidateAll ( )
inline

invalidates all elements Generated from method MR.DistanceMap.invalidateAll.

◆ mergeMax()

unsafe MR.Const_DistanceMap MR.DistanceMap.mergeMax ( MR.Const_DistanceMap rhs)
inline

replaces values with cell-wise maximum values. Invalid values remain only if both corresponding cells are invalid Generated from method MR.DistanceMap.mergeMax.

◆ mergeMin()

unsafe MR.Const_DistanceMap MR.DistanceMap.mergeMin ( MR.Const_DistanceMap rhs)
inline

replaces values with cell-wise minimum values. Invalid values remain only if both corresponding cells are invalid Generated from method MR.DistanceMap.mergeMin.

◆ negate()

unsafe void MR.DistanceMap.negate ( )
inline

replaces every valid element in the map with its negative value Generated from method MR.DistanceMap.negate.

◆ operator DistanceMap()

unsafe implicit MR.DistanceMap.operator DistanceMap ( MR.Const_Matrix_Float m)
inlinestatic

make from 2d array Generated from constructor MR.DistanceMap.DistanceMap.

◆ operator MR.RectIndexer()

unsafe implicit MR.DistanceMap.operator MR.RectIndexer ( DistanceMap self)
inlinestatic

◆ resize()

unsafe void MR.DistanceMap.resize ( in MR.Vector2i dims)
inline

Generated from method MR.DistanceMap.resize.

◆ set() [1/3]

unsafe void MR.DistanceMap.set ( MR.Std._ByValue_Vector_Float data)
inline

sets all values at one time Generated from method MR.DistanceMap.set.

◆ set() [2/3]

unsafe void MR.DistanceMap.set ( ulong i,
float val )
inline

sets value in index element (the coord must be valid, UB otherwise) Generated from method MR.DistanceMap.set.

◆ set() [3/3]

unsafe void MR.DistanceMap.set ( ulong x,
ulong y,
float val )
inline

sets value in (X,Y) element (the coords must be valid, UB otherwise) Generated from method MR.DistanceMap.set.

◆ subAssign()

unsafe MR.Const_DistanceMap MR.DistanceMap.subAssign ( MR.Const_DistanceMap rhs)
inline

replaces values with cell-wise subtracted values. Invalid values remain only if both corresponding cells are invalid Generated from method MR::DistanceMap::operator-=.

◆ unset() [1/2]

unsafe void MR.DistanceMap.unset ( ulong i)
inline

invalidates value in index element (the coord must be valid, UB otherwise) Generated from method MR.DistanceMap.unset.

◆ unset() [2/2]

unsafe void MR.DistanceMap.unset ( ulong x,
ulong y )
inline

invalidates value in (X,Y) element (the coords must be valid, UB otherwise) Generated from method MR.DistanceMap.unset.


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