Public Member Functions | |
| __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) |
Generated from: MR::RectIndexer a class for converting 2D integer coordinates into 1D linear coordinates and backward
| mrmeshpy.ConstRectIndexer.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstRectIndexer) -> None 2. __init__(self: meshlib.mrmeshpy.ConstRectIndexer, dims: meshlib.mrmeshpy.ConstVector2i) -> None 3. __init__(self: meshlib.mrmeshpy.ConstRectIndexer, arg0: meshlib.mrmeshpy.ConstRectIndexer) -> None Implicit copy constructor. 4. __init__(self: meshlib.mrmeshpy.ConstRectIndexer, : meshlib.mrmeshpy.ConstRectIndexer) -> None
| bool mrmeshpy.ConstRectIndexer.areNeigbors | ( | self, | |
| ConstPixelId | v0, | ||
| ConstPixelId | v1 ) |
returns true if v1 is within at most 4 neighbors of v0
| bool mrmeshpy.ConstRectIndexer.areNeigbors | ( | self, | |
| ConstVector2i | pos0, | ||
| ConstVector2i | pos1 ) |
| ConstVector2i mrmeshpy.ConstRectIndexer.dims | ( | self | ) |
| PixelId mrmeshpy.ConstRectIndexer.getNeighbor | ( | self, | |
| ConstPixelId | v, | ||
| ConstVector2i | pos, | ||
| OutEdge2 | toNei ) |
| PixelId mrmeshpy.ConstRectIndexer.getNeighbor | ( | self, | |
| ConstPixelId | v, | ||
| OutEdge2 | toNei ) |
returns id of v's neighbor specified by the edge
| int mrmeshpy.ConstRectIndexer.size | ( | self | ) |
| int mrmeshpy.ConstRectIndexer.toIndex | ( | self, | |
| ConstVector2i | pos ) |
| PixelId mrmeshpy.ConstRectIndexer.toPixelId | ( | self, | |
| ConstVector2i | pos ) |
| Vector2i mrmeshpy.ConstRectIndexer.toPos | ( | self, | |
| ConstPixelId | id ) |
| Vector2i mrmeshpy.ConstRectIndexer.toPos | ( | self, | |
| int | id ) |