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

Public Member Functions

None __init__ (self)
 
None __init__ (self, Vector2i dims)
 
None __init__ (self, RectIndexer arg0)
 
bool areNeigbors (self, PixelId v0, PixelId v1)
 
bool areNeigbors (self, Vector2i pos0, Vector2i pos1)
 
Vector2i dims (self)
 
PixelId getNeighbor (self, PixelId v, OutEdge2 toNei)
 
PixelId getNeighbor (self, PixelId v, Vector2i pos, OutEdge2 toNei)
 
None resize (self, Vector2i dims)
 
int size (self)
 
int toIndex (self, Vector2i pos)
 
PixelId toPixelId (self, Vector2i pos)
 
Vector2i toPos (self, PixelId id)
 
Vector2i toPos (self, int id)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::RectIndexer

a class for converting 2D integer coordinates into 1D linear coordinates and backward

Constructor & Destructor Documentation

◆ __init__() [1/3]

◆ __init__() [2/3]

◆ __init__() [3/3]

None mrmeshpy.RectIndexer.__init__ ( self,
RectIndexer arg0 )

Member Function Documentation

◆ _pybind11_conduit_v1_()

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

◆ areNeigbors() [1/2]

bool mrmeshpy.RectIndexer.areNeigbors ( self,
PixelId v0,
PixelId v1 )
returns true if v1 is within at most 4 neighbors of v0

◆ areNeigbors() [2/2]

bool mrmeshpy.RectIndexer.areNeigbors ( self,
Vector2i pos0,
Vector2i pos1 )

◆ dims()

Vector2i mrmeshpy.RectIndexer.dims ( self)

◆ getNeighbor() [1/2]

PixelId mrmeshpy.RectIndexer.getNeighbor ( self,
PixelId v,
OutEdge2 toNei )
returns id of v's neighbor specified by the edge

◆ getNeighbor() [2/2]

PixelId mrmeshpy.RectIndexer.getNeighbor ( self,
PixelId v,
Vector2i pos,
OutEdge2 toNei )

◆ resize()

None mrmeshpy.RectIndexer.resize ( self,
Vector2i dims )

◆ size()

int mrmeshpy.RectIndexer.size ( self)

◆ toIndex()

int mrmeshpy.RectIndexer.toIndex ( self,
Vector2i pos )

◆ toPixelId()

PixelId mrmeshpy.RectIndexer.toPixelId ( self,
Vector2i pos )

◆ toPos() [1/2]

Vector2i mrmeshpy.RectIndexer.toPos ( self,
int id )

◆ toPos() [2/2]

Vector2i mrmeshpy.RectIndexer.toPos ( self,
PixelId id )

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