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) |
Generated from: MR::RectIndexer a class for converting 2D integer coordinates into 1D linear coordinates and backward
None meshlib.mrmeshpy.RectIndexer.__init__ | ( | self | ) |
None meshlib.mrmeshpy.RectIndexer.__init__ | ( | self, | |
Vector2i | dims ) |
None meshlib.mrmeshpy.RectIndexer.__init__ | ( | self, | |
RectIndexer | arg0 ) |
Implicit copy constructor.
Reimplemented in meshlib.mrmeshpy.DistanceMap, meshlib.mrmeshpy.DistanceMap, meshlib.mrmeshpy.DistanceMap, meshlib.mrmeshpy.DistanceMap, meshlib.mrmeshpy.Matrix_float, meshlib.mrmeshpy.Matrix_float, and meshlib.mrmeshpy.Matrix_float.
returns true if v1 is within at most 4 neighbors of v0
Vector2i meshlib.mrmeshpy.RectIndexer.dims | ( | self | ) |
returns id of v's neighbor specified by the edge
None meshlib.mrmeshpy.RectIndexer.resize | ( | self, | |
Vector2i | dims ) |
int meshlib.mrmeshpy.RectIndexer.size | ( | self | ) |
int meshlib.mrmeshpy.RectIndexer.toIndex | ( | self, | |
Vector2i | pos ) |
Vector2i meshlib.mrmeshpy.RectIndexer.toPos | ( | self, | |
int | id ) |