MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Const_GridSettings Class Reference

settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ways Generated from class MR.GridSettings. This is the const half of the class. More...

+ Inheritance diagram for MR.Const_GridSettings:

Classes

struct  _Underlying
 

Public Types

enum  EdgeType : int { Horizontal = 0 , Vertical = 1 , DiagonalA = 2 , DiagonalB = 3 }
 
enum  TriType : int { Lower = 0 , Upper = 1 }
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_GridSettings ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_GridSettings (MR.Vector2i dim, MR._ByValue_BMap_MRVertId_MRUint64T vertIds, MR._ByValue_BMap_MRUndirectedEdgeId_MRUint64T uedgeIds, MR._ByValue_BMap_MRFaceId_MRUint64T faceIds)
 Constructs MR.GridSettings elementwise.
 
unsafe Const_GridSettings (MR._ByValue_GridSettings _other)
 Generated from constructor MR.GridSettings.GridSettings.
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe ref readonly MR.Vector2i dim [get]
 
unsafe MR.Const_BMap_MRVertId_MRUint64T vertIds [get]
 
unsafe MR.Const_BMap_MRUndirectedEdgeId_MRUint64T uedgeIds [get]
 
unsafe MR.Const_BMap_MRFaceId_MRUint64T faceIds [get]
 
- Properties inherited from MR.Misc.Object< Const_GridSettings >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_GridSettings >
bool _IsOwningVal
 

Detailed Description

settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ways Generated from class MR.GridSettings. This is the const half of the class.

Property Documentation

◆ dim

unsafe ref readonly MR.Vector2i MR.Const_GridSettings.dim
get

the number of cells in X and Y dimensions; the number of vertices will be at most (X+1)*(Y+1)

◆ faceIds

unsafe MR.Const_BMap_MRFaceId_MRUint64T MR.Const_GridSettings.faceIds
get

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

unsafe MR.Const_BMap_MRUndirectedEdgeId_MRUint64T MR.Const_GridSettings.uedgeIds
get

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

unsafe MR.Const_BMap_MRVertId_MRUint64T MR.Const_GridSettings.vertIds
get

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


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