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

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)

Detailed Description

Generated from:  MR::RectIndexer

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

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ areNeigbors() [1/2]

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

◆ areNeigbors() [2/2]

bool mrmeshpy.ConstRectIndexer.areNeigbors ( self,
ConstVector2i pos0,
ConstVector2i pos1 )

◆ dims()

ConstVector2i mrmeshpy.ConstRectIndexer.dims ( self)

◆ getNeighbor() [1/2]

PixelId mrmeshpy.ConstRectIndexer.getNeighbor ( self,
ConstPixelId v,
ConstVector2i pos,
OutEdge2 toNei )

◆ getNeighbor() [2/2]

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

◆ size()

int mrmeshpy.ConstRectIndexer.size ( self)

◆ toIndex()

int mrmeshpy.ConstRectIndexer.toIndex ( self,
ConstVector2i pos )

◆ toPixelId()

PixelId mrmeshpy.ConstRectIndexer.toPixelId ( self,
ConstVector2i pos )

◆ toPos() [1/2]

Vector2i mrmeshpy.ConstRectIndexer.toPos ( self,
ConstPixelId id )

◆ toPos() [2/2]

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

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