MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.RectIndexer Class Reference
+ Inheritance diagram for meshlib.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)
 

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]

Member Function Documentation

◆ areNeigbors() [1/2]

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

◆ areNeigbors() [2/2]

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

◆ dims()

Vector2i meshlib.mrmeshpy.RectIndexer.dims ( self)

◆ getNeighbor() [1/2]

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

◆ getNeighbor() [2/2]

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

◆ resize()

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

◆ size()

int meshlib.mrmeshpy.RectIndexer.size ( self)

◆ toIndex()

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

◆ toPixelId()

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

◆ toPos() [1/2]

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

◆ toPos() [2/2]

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

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