MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::GridSettings:

Public Member Functions

auto assign_from_another (_other:meshlib::Owned< meshlib::GridSettings >) -> &mut meshlib::GridSettings
auto dim () const -> &meshlib::Vector2i
auto dim_mut () -> &mut meshlib::Vector2i
void set_dim (value:meshlib::Vector2i)
auto vert_ids () const -> &meshlib::BMap_MR_VertId_size_t
auto vert_ids_mut () -> &mut meshlib::BMap_MR_VertId_size_t
void set_vert_ids (value:meshlib::Owned< meshlib::BMap_MR_VertId_size_t >)
auto uedge_ids () const -> &meshlib::BMap_MR_UndirectedEdgeId_size_t
auto uedge_ids_mut () -> &mut meshlib::BMap_MR_UndirectedEdgeId_size_t
void set_uedge_ids (value:meshlib::Owned< meshlib::BMap_MR_UndirectedEdgeId_size_t >)
auto face_ids () const -> &meshlib::BMap_MR_FaceId_size_t
auto face_ids_mut () -> &mut meshlib::BMap_MR_FaceId_size_t
void set_face_ids (value:meshlib::Owned< meshlib::BMap_MR_FaceId_size_t >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::GridSettings >
static auto construct_from (dim:meshlib::Vector2i, vertIds:meshlib::Owned< meshlib::BMap_MR_VertId_size_t >, uedgeIds:meshlib::Owned< meshlib::BMap_MR_UndirectedEdgeId_size_t >, faceIds:meshlib::Owned< meshlib::BMap_MR_FaceId_size_t >) -> meshlib::Owned< meshlib::GridSettings >
static auto construct_from_another (_other:meshlib::Owned< meshlib::GridSettings >) -> meshlib::Owned< meshlib::GridSettings >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

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.

Generated from class MR::GridSettings. Heap-allocated instances are held in Owned<GridSettings>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::GridSettings::assign_from_another ( _other:meshlib::Owned< meshlib::GridSettings > ) -> &mut meshlib::GridSettings

Generated from method MR::GridSettings::operator=.

Calls MR_GridSettings_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from()

auto meshlib::GridSettings::construct_from ( dim:meshlib::Vector2i ,
vertIds:meshlib::Owned< meshlib::BMap_MR_VertId_size_t > ,
uedgeIds:meshlib::Owned< meshlib::BMap_MR_UndirectedEdgeId_size_t > ,
faceIds:meshlib::Owned< meshlib::BMap_MR_FaceId_size_t >  ) -> meshlib::Owned< meshlib::GridSettings >
static

Constructs MR::GridSettings elementwise.

Calls MR_GridSettings_ConstructFrom(). The reference to the parameter dim might be preserved in the constructed object. The reference to the parameter vertIds might be preserved in the constructed object. The reference to the parameter uedgeIds might be preserved in the constructed object. The reference to the parameter faceIds might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::GridSettings::construct_from_another ( _other:meshlib::Owned< meshlib::GridSettings > ) -> meshlib::Owned< meshlib::GridSettings >
static

Generated from constructor MR::GridSettings::GridSettings.

Calls MR_GridSettings_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ dim()

auto meshlib::GridSettings::dim ( ) const -> &meshlib::Vector2i

the number of cells in X and Y dimensions; the number of vertices will be at most (X+1)*(Y+1) Returns a pointer to a member variable of class MR::GridSettings named dim.

Calls MR_GridSettings_Get_dim(). The reference to this object might be preserved as the return value.

◆ dim_mut()

auto meshlib::GridSettings::dim_mut ( ) -> &mut meshlib::Vector2i

the number of cells in X and Y dimensions; the number of vertices will be at most (X+1)*(Y+1) Returns a mutable pointer to a member variable of class MR::GridSettings named dim.

Calls MR_GridSettings_GetMutable_dim(). The reference to this object might be preserved as the return value.

◆ face_ids()

auto meshlib::GridSettings::face_ids ( ) const -> &meshlib::BMap_MR_FaceId_size_t

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 Returns a pointer to a member variable of class MR::GridSettings named faceIds.

Calls MR_GridSettings_Get_faceIds(). The reference to this object might be preserved as the return value.

◆ face_ids_mut()

auto meshlib::GridSettings::face_ids_mut ( ) -> &mut meshlib::BMap_MR_FaceId_size_t

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 Returns a mutable pointer to a member variable of class MR::GridSettings named faceIds.

Calls MR_GridSettings_GetMutable_faceIds(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::GridSettings::new ( ) -> meshlib::Owned< meshlib::GridSettings >
static

Constructs an empty (default-constructed) instance.

Calls MR_GridSettings_DefaultConstruct().

◆ set_dim()

void meshlib::GridSettings::set_dim ( value:meshlib::Vector2i )

the number of cells in X and Y dimensions; the number of vertices will be at most (X+1)*(Y+1) Modifies a member variable of class MR::GridSettings named dim.

Calls MR_GridSettings_Set_dim(). The reference to the parameter value might be preserved in this object in element dim.

◆ set_face_ids()

void meshlib::GridSettings::set_face_ids ( value:meshlib::Owned< meshlib::BMap_MR_FaceId_size_t > )

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 Modifies a member variable of class MR::GridSettings named faceIds.

Calls MR_GridSettings_Set_faceIds(). The reference to the parameter value might be preserved in this object in element faceIds.

◆ set_uedge_ids()

void meshlib::GridSettings::set_uedge_ids ( value:meshlib::Owned< meshlib::BMap_MR_UndirectedEdgeId_size_t > )

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 Modifies a member variable of class MR::GridSettings named uedgeIds.

Calls MR_GridSettings_Set_uedgeIds(). The reference to the parameter value might be preserved in this object in element uedgeIds.

◆ set_vert_ids()

void meshlib::GridSettings::set_vert_ids ( value:meshlib::Owned< meshlib::BMap_MR_VertId_size_t > )

grid coordinates to vertex Id; invalid vertex Id means that this vertex is missing in grid; index is x + y * ( settings.dim.x + 1 ) Modifies a member variable of class MR::GridSettings named vertIds.

Calls MR_GridSettings_Set_vertIds(). The reference to the parameter value might be preserved in this object in element vertIds.

◆ uedge_ids()

auto meshlib::GridSettings::uedge_ids ( ) const -> &meshlib::BMap_MR_UndirectedEdgeId_size_t

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 Returns a pointer to a member variable of class MR::GridSettings named uedgeIds.

Calls MR_GridSettings_Get_uedgeIds(). The reference to this object might be preserved as the return value.

◆ uedge_ids_mut()

auto meshlib::GridSettings::uedge_ids_mut ( ) -> &mut meshlib::BMap_MR_UndirectedEdgeId_size_t

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 Returns a mutable pointer to a member variable of class MR::GridSettings named uedgeIds.

Calls MR_GridSettings_GetMutable_uedgeIds(). The reference to this object might be preserved as the return value.

◆ vert_ids()

auto meshlib::GridSettings::vert_ids ( ) const -> &meshlib::BMap_MR_VertId_size_t

grid coordinates to vertex Id; invalid vertex Id means that this vertex is missing in grid; index is x + y * ( settings.dim.x + 1 ) Returns a pointer to a member variable of class MR::GridSettings named vertIds.

Calls MR_GridSettings_Get_vertIds(). The reference to this object might be preserved as the return value.

◆ vert_ids_mut()

auto meshlib::GridSettings::vert_ids_mut ( ) -> &mut meshlib::BMap_MR_VertId_size_t

grid coordinates to vertex Id; invalid vertex Id means that this vertex is missing in grid; index is x + y * ( settings.dim.x + 1 ) Returns a mutable pointer to a member variable of class MR::GridSettings named vertIds.

Calls MR_GridSettings_GetMutable_vertIds(). The reference to this object might be preserved as the return value.


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