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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::MeshTriPoint) -> &mut meshlib::MeshTriPoint
auto in_vertex_1 (topology:&meshlib::MeshTopology) const -> meshlib::VertId
auto in_vertex_0 () const -> bool
auto on_edge (topology:&meshlib::MeshTopology) const -> meshlib::Owned< meshlib::EdgePoint >
auto is_bd (topology:&meshlib::MeshTopology, region:Option<&meshlib::FaceBitSet >) const -> bool
auto from_triangle (topology:&meshlib::MeshTopology, f:meshlib::FaceId) const -> bool
auto valid () const -> bool
auto lnext (topology:&meshlib::MeshTopology) const -> meshlib::Owned< meshlib::MeshTriPoint >
auto canonical (topology:&meshlib::MeshTopology) const -> meshlib::Owned< meshlib::MeshTriPoint >
auto get_weighted_verts (topology:&meshlib::MeshTopology) const -> meshlib::Owned< meshlib::std_array_MR_WeightedVertex_3 >
auto interpolate (topology:&meshlib::MeshTopology, field:&meshlib::VertScalars) const -> f32
auto op_equal (rhs:&meshlib::MeshTriPoint) const -> bool
auto op_not_equal (rhs:&meshlib::MeshTriPoint) const -> bool
auto e () const -> &meshlib::EdgeId
auto e_mut () -> &mut meshlib::EdgeId
void set_e (value:meshlib::EdgeId)
auto bary () const -> &meshlib::TriPointf
auto bary_mut () -> &mut meshlib::TriPointf
void set_bary (value:&meshlib::TriPointf)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshTriPoint >
static auto construct_from_another (_other:&meshlib::MeshTriPoint) -> meshlib::Owned< meshlib::MeshTriPoint >
static auto construct_1_mr_no_init (_1:&meshlib::NoInit) -> meshlib::Owned< meshlib::MeshTriPoint >
static auto construct_2_mr_edge_id (e:meshlib::EdgeId, bary:&meshlib::TriPointf) -> meshlib::Owned< meshlib::MeshTriPoint >
static auto construct_1_mr_edge_point (ep:&meshlib::EdgePoint) -> meshlib::Owned< meshlib::MeshTriPoint >
static auto construct_2_mr_mesh_topology (topology:&meshlib::MeshTopology, v:meshlib::VertId) -> meshlib::Owned< meshlib::MeshTriPoint >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

encodes a point inside a triangular mesh face using barycentric coordinates

Notations used below:
v0 - the value in org( e )
v1 - the value in dest( e )
v2 - the value in dest( next( e ) ) Generated from class MR::MeshTriPoint.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::MeshTriPoint::assign_from_another ( _other:&meshlib::MeshTriPoint ) -> &mut meshlib::MeshTriPoint

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

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

◆ bary()

auto meshlib::MeshTriPoint::bary ( ) const -> &meshlib::TriPointf

barycentric coordinates

a in [0,1], a=0 => point is on next( e ) edge, a=1 => point is in dest( e ) b in [0,1], b=0 => point is on e edge, b=1 => point is in dest( next( e ) ) a+b in [0,1], a+b=0 => point is in org( e ), a+b=1 => point is on prev( e.sym() ) edge Returns a pointer to a member variable of class MR::MeshTriPoint named bary.

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

◆ bary_mut()

auto meshlib::MeshTriPoint::bary_mut ( ) -> &mut meshlib::TriPointf

barycentric coordinates

a in [0,1], a=0 => point is on next( e ) edge, a=1 => point is in dest( e ) b in [0,1], b=0 => point is on e edge, b=1 => point is in dest( next( e ) ) a+b in [0,1], a+b=0 => point is in org( e ), a+b=1 => point is on prev( e.sym() ) edge Returns a mutable pointer to a member variable of class MR::MeshTriPoint named bary.

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

◆ canonical()

auto meshlib::MeshTriPoint::canonical ( topology:&meshlib::MeshTopology ) const -> meshlib::Owned< meshlib::MeshTriPoint >

represents the same point relative to the topology.edgeWithLeft( topology.left( e ) ) Generated from method MR::MeshTriPoint::canonical.

Calls MR_MeshTriPoint_canonical().

◆ construct_1_mr_edge_point()

auto meshlib::MeshTriPoint::construct_1_mr_edge_point ( ep:&meshlib::EdgePoint ) -> meshlib::Owned< meshlib::MeshTriPoint >
static

Generated from constructor MR::MeshTriPoint::MeshTriPoint.

Calls MR_MeshTriPoint_Construct_1_MR_EdgePoint(). The reference to the parameter ep might be preserved in the constructed object.

◆ construct_1_mr_no_init()

auto meshlib::MeshTriPoint::construct_1_mr_no_init ( _1:&meshlib::NoInit ) -> meshlib::Owned< meshlib::MeshTriPoint >
static

Generated from constructor MR::MeshTriPoint::MeshTriPoint.

Calls MR_MeshTriPoint_Construct_1_MR_NoInit(). The reference to the parameter _1 might be preserved in the constructed object.

◆ construct_2_mr_edge_id()

auto meshlib::MeshTriPoint::construct_2_mr_edge_id ( e:meshlib::EdgeId ,
bary:&meshlib::TriPointf  ) -> meshlib::Owned< meshlib::MeshTriPoint >
static

Generated from constructor MR::MeshTriPoint::MeshTriPoint.

Calls MR_MeshTriPoint_Construct_2_MR_EdgeId(). The reference to the parameter e might be preserved in the constructed object. The reference to the parameter bary might be preserved in the constructed object.

◆ construct_2_mr_mesh_topology()

auto meshlib::MeshTriPoint::construct_2_mr_mesh_topology ( topology:&meshlib::MeshTopology ,
v:meshlib::VertId  ) -> meshlib::Owned< meshlib::MeshTriPoint >
static

Generated from constructor MR::MeshTriPoint::MeshTriPoint.

Calls MR_MeshTriPoint_Construct_2_MR_MeshTopology(). The reference to the parameter topology might be preserved in the constructed object. The reference to the parameter v might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MeshTriPoint::MeshTriPoint.

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

◆ convert_to_bool()

auto meshlib::MeshTriPoint::convert_to_bool ( ) const -> bool

Generated from conversion operator MR::MeshTriPoint::operator bool.

Calls MR_MeshTriPoint_ConvertTo_bool().

◆ e()

auto meshlib::MeshTriPoint::e ( ) const -> &meshlib::EdgeId

< left face of this edge is considered Returns a pointer to a member variable of class MR::MeshTriPoint named e.

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

◆ e_mut()

auto meshlib::MeshTriPoint::e_mut ( ) -> &mut meshlib::EdgeId

< left face of this edge is considered Returns a mutable pointer to a member variable of class MR::MeshTriPoint named e.

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

◆ from_triangle()

auto meshlib::MeshTriPoint::from_triangle ( topology:&meshlib::MeshTopology ,
f:meshlib::FaceId  ) const -> bool

returns true if the point is inside or on the boundary of given triangular face Generated from method MR::MeshTriPoint::fromTriangle.

Calls MR_MeshTriPoint_fromTriangle().

◆ get_weighted_verts()

auto meshlib::MeshTriPoint::get_weighted_verts ( topology:&meshlib::MeshTopology ) const -> meshlib::Owned< meshlib::std_array_MR_WeightedVertex_3 >

returns three weighted triangle's vertices with the sum of not-negative weights equal to 1, and the largest weight in the closest vertex Generated from method MR::MeshTriPoint::getWeightedVerts.

Calls MR_MeshTriPoint_getWeightedVerts().

◆ in_vertex_0()

auto meshlib::MeshTriPoint::in_vertex_0 ( ) const -> bool

returns true if the point is in a vertex Generated from method MR::MeshTriPoint::inVertex.

Calls MR_MeshTriPoint_inVertex_0().

◆ in_vertex_1()

auto meshlib::MeshTriPoint::in_vertex_1 ( topology:&meshlib::MeshTopology ) const -> meshlib::VertId

returns valid vertex id if the point is in vertex, otherwise returns invalid id Generated from method MR::MeshTriPoint::inVertex.

Calls MR_MeshTriPoint_inVertex_1().

◆ interpolate()

auto meshlib::MeshTriPoint::interpolate ( topology:&meshlib::MeshTopology ,
field:&meshlib::VertScalars  ) const -> f32

linearly interpolates the values given in vertices to find the field's value at this point Generated from method MR::MeshTriPoint::interpolate.

Calls MR_MeshTriPoint_interpolate().

◆ is_bd()

auto meshlib::MeshTriPoint::is_bd ( topology:&meshlib::MeshTopology ,
region:Option<&meshlib::FaceBitSet >  ) const -> bool

returns true if the point is in vertex or on edge, and that location is on the boundary of the region Generated from method MR::MeshTriPoint::isBd.

Calls MR_MeshTriPoint_isBd().

◆ lnext()

auto meshlib::MeshTriPoint::lnext ( topology:&meshlib::MeshTopology ) const -> meshlib::Owned< meshlib::MeshTriPoint >

represents the same point relative to next edge in the same triangle Generated from method MR::MeshTriPoint::lnext.

Calls MR_MeshTriPoint_lnext().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MeshTriPoint_DefaultConstruct().

◆ on_edge()

auto meshlib::MeshTriPoint::on_edge ( topology:&meshlib::MeshTopology ) const -> meshlib::Owned< meshlib::EdgePoint >

returns valid value if the point is on edge and topology.left(result.e) == topology.left(this->e), otherwise returns invalid MeshEdgePointT Generated from method MR::MeshTriPoint::onEdge.

Calls MR_MeshTriPoint_onEdge().

◆ op_equal()

auto meshlib::MeshTriPoint::op_equal ( rhs:&meshlib::MeshTriPoint ) const -> bool

returns true if two points are equal including equal not-unique representation Generated from method MR::MeshTriPoint::operator==.

Calls MR_equal_MR_MeshTriPoint().

◆ op_not_equal()

auto meshlib::MeshTriPoint::op_not_equal ( rhs:&meshlib::MeshTriPoint ) const -> bool

returns true if two points are equal including equal not-unique representation Generated from method MR::MeshTriPoint::operator!=.

Calls MR_not_equal_MR_MeshTriPoint().

◆ set_bary()

void meshlib::MeshTriPoint::set_bary ( value:&meshlib::TriPointf )

barycentric coordinates

a in [0,1], a=0 => point is on next( e ) edge, a=1 => point is in dest( e ) b in [0,1], b=0 => point is on e edge, b=1 => point is in dest( next( e ) ) a+b in [0,1], a+b=0 => point is in org( e ), a+b=1 => point is on prev( e.sym() ) edge Modifies a member variable of class MR::MeshTriPoint named bary.

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

◆ set_e()

void meshlib::MeshTriPoint::set_e ( value:meshlib::EdgeId )

< left face of this edge is considered Modifies a member variable of class MR::MeshTriPoint named e.

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

◆ valid()

auto meshlib::MeshTriPoint::valid ( ) const -> bool

consider this valid if the edge ID is valid Generated from method MR::MeshTriPoint::valid.

Calls MR_MeshTriPoint_valid().


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