MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.GridSettings Class Reference

Classes

class  EdgeType
 
class  TriType
 

Public Member Functions

None __init__ (self)
 
Vector2i dim (self)
 
None dim (self, Vector2i arg1)
 
BMap_FaceId_unsigned_long_long faceIds (self)
 
BMap_UndirectedEdgeId_unsigned_long_long uedgeIds (self)
 
BMap_VertId_unsigned_long_long vertIds (self)
 

Static Protected Attributes

typing _offsetof_faceIds = 72
 
typing _offsetof_uedgeIds = 40
 
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)

◆ dim() [2/2]

None mrmeshpy.GridSettings.dim ( self,
Vector2i arg1 )

◆ faceIds()

BMap_FaceId_unsigned_long_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

◆ uedgeIds()

BMap_UndirectedEdgeId_unsigned_long_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

◆ vertIds()

BMap_VertId_unsigned_long_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 )

Member Data Documentation

◆ _offsetof_faceIds

typing mrmeshpy.GridSettings._offsetof_faceIds = 72
staticprotected

◆ _offsetof_uedgeIds

typing mrmeshpy.GridSettings._offsetof_uedgeIds = 40
staticprotected

◆ _offsetof_vertIds

typing mrmeshpy.GridSettings._offsetof_vertIds = 8
staticprotected

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