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

Classes

class  EdgeType
class  TriType

Public Member Functions

None __init__ (self)
Vector2i dim (self)
None dim (self, ConstVector2i arg1)
BMap_FaceId_unsigned_long faceIds (self)
BMap_UndirectedEdgeId_unsigned_long uedgeIds (self)
BMap_VertId_unsigned_long vertIds (self)
Public Member Functions inherited from mrmeshpy.ConstGridSettings
 __init__ (self, *args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstGridSettings
typing _offsetof_dim = 0
typing _offsetof_faceIds = 88
typing _offsetof_uedgeIds = 48
typing _offsetof_vertIds = 8

Detailed Description

Generated from:  MR::GridSettings

settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ways

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.GridSettings.__init__ ( self)

Member Function Documentation

◆ dim() [1/2]

Vector2i mrmeshpy.GridSettings.dim ( self)
the number of cells in X and Y dimensions;
the number of vertices will be at most (X+1)*(Y+1)

Reimplemented from mrmeshpy.ConstGridSettings.

◆ dim() [2/2]

None mrmeshpy.GridSettings.dim ( self,
ConstVector2i arg1 )
the number of cells in X and Y dimensions;
the number of vertices will be at most (X+1)*(Y+1)

Reimplemented from mrmeshpy.ConstGridSettings.

◆ faceIds()

BMap_FaceId_unsigned_long mrmeshpy.GridSettings.faceIds ( self)
grid coordinates of lower-left vertex and triangle-type to faceId;
all 3 vertices and all 3 edges of valid face must be valid as well;
index is 2 * ( x + y * settings.dim.x ) + triType

Reimplemented from mrmeshpy.ConstGridSettings.

◆ uedgeIds()

BMap_UndirectedEdgeId_unsigned_long mrmeshpy.GridSettings.uedgeIds ( self)
grid coordinates of lower-left vertex and edge-type to edgeId with the origin in this vertex;
both vertices of valid edge must be valid as well;
index is 4 * ( x + y * ( settings.dim.x + 1 ) ) + edgeType

Reimplemented from mrmeshpy.ConstGridSettings.

◆ vertIds()

BMap_VertId_unsigned_long mrmeshpy.GridSettings.vertIds ( self)
grid coordinates to vertex Id; invalid vertex Id means that this vertex is missing in grid;
index is x + y * ( settings.dim.x + 1 )

Reimplemented from mrmeshpy.ConstGridSettings.


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