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

Classes

class  EdgeType
class  TriType

Public Member Functions

 __init__ (self, *args, **kwargs)
ConstVector2i dim (self)
ConstBMap_FaceId_unsigned_long faceIds (self)
ConstBMap_UndirectedEdgeId_unsigned_long uedgeIds (self)
ConstBMap_VertId_unsigned_long vertIds (self)

Static Protected Attributes

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__()

mrmeshpy.ConstGridSettings.__init__ ( self,
* args,
** kwargs )
__init__(self: meshlib.mrmeshpy.ConstGridSettings) -> None

Member Function Documentation

◆ dim()

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

Reimplemented in mrmeshpy.GridSettings, and mrmeshpy.GridSettings.

◆ faceIds()

ConstBMap_FaceId_unsigned_long mrmeshpy.ConstGridSettings.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 in mrmeshpy.GridSettings.

◆ uedgeIds()

ConstBMap_UndirectedEdgeId_unsigned_long mrmeshpy.ConstGridSettings.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 in mrmeshpy.GridSettings.

◆ vertIds()

ConstBMap_VertId_unsigned_long mrmeshpy.ConstGridSettings.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 in mrmeshpy.GridSettings.

Member Data Documentation

◆ _offsetof_dim

typing mrmeshpy.ConstGridSettings._offsetof_dim = 0
staticprotected

◆ _offsetof_faceIds

typing mrmeshpy.ConstGridSettings._offsetof_faceIds = 88
staticprotected

◆ _offsetof_uedgeIds

typing mrmeshpy.ConstGridSettings._offsetof_uedgeIds = 48
staticprotected

◆ _offsetof_vertIds

typing mrmeshpy.ConstGridSettings._offsetof_vertIds = 8
staticprotected

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