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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::EdgePoint) -> &mut meshlib::EdgePoint
auto in_vertex_1_mr_mesh_topology (topology:&meshlib::MeshTopology) const -> meshlib::VertId
auto in_vertex_1_mr_polyline_topology (topology:&meshlib::PolylineTopology) const -> meshlib::VertId
auto get_closest_vertex_mr_mesh_topology (topology:&meshlib::MeshTopology) const -> meshlib::VertId
auto get_closest_vertex_mr_polyline_topology (topology:&meshlib::PolylineTopology) const -> meshlib::VertId
auto in_vertex_0 () const -> bool
void move_to_closest_vertex ()
auto is_bd (topology:&meshlib::MeshTopology, region:Option<&meshlib::FaceBitSet >) const -> bool
auto valid () const -> bool
auto sym () const -> meshlib::Owned< meshlib::EdgePoint >
auto op_equal (rhs:&meshlib::EdgePoint) const -> bool
auto op_not_equal (rhs:&meshlib::EdgePoint) const -> bool
auto e () const -> &meshlib::EdgeId
auto e_mut () -> &mut meshlib::EdgeId
void set_e (value:meshlib::EdgeId)
auto a () const -> &meshlib::SegmPointf
auto a_mut () -> &mut meshlib::SegmPointf
void set_a (value:&meshlib::SegmPointf)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::EdgePoint >
static auto construct_from_another (_other:&meshlib::EdgePoint) -> meshlib::Owned< meshlib::EdgePoint >
static auto construct_mr_edge_id (e:meshlib::EdgeId, a:f32) -> meshlib::Owned< meshlib::EdgePoint >
static auto construct_mr_mesh_topology (topology:&meshlib::MeshTopology, v:meshlib::VertId) -> meshlib::Owned< meshlib::EdgePoint >
static auto construct_mr_polyline_topology (topology:&meshlib::PolylineTopology, v:meshlib::VertId) -> meshlib::Owned< meshlib::EdgePoint >
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

(Note that these are not member symbols.)

auto from_same_triangle_float_mr_edge_point_ref (topology:&meshlib::MeshTopology, a:&mut meshlib::EdgePoint, b:&mut meshlib::EdgePoint) -> bool
auto from_same_triangle_double_mr_edge_pointd_ref (topology:&meshlib::MeshTopology, a:&mut meshlib::EdgePointd, b:&mut meshlib::EdgePointd) -> bool
auto from_same_triangle_float_mr_edge_point_rvalue_ref (topology:&meshlib::MeshTopology, a:&mut meshlib::EdgePoint, b:&mut meshlib::EdgePoint) -> bool
auto from_same_triangle_double_mr_edge_pointd_rvalue_ref (topology:&meshlib::MeshTopology, a:&mut meshlib::EdgePointd, b:&mut meshlib::EdgePointd) -> bool

Detailed Description

encodes a point on an edge of mesh or of polyline Generated from class MR::EdgePoint.

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

Member Function Documentation

◆ a()

auto meshlib::EdgePoint::a ( ) const -> &meshlib::SegmPointf

< a in [0,1], a=0 => point is in org( e ), a=1 => point is in dest( e ) Returns a pointer to a member variable of class MR::EdgePoint named a.

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

◆ a_mut()

auto meshlib::EdgePoint::a_mut ( ) -> &mut meshlib::SegmPointf

< a in [0,1], a=0 => point is in org( e ), a=1 => point is in dest( e ) Returns a mutable pointer to a member variable of class MR::EdgePoint named a.

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

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::EdgePoint::EdgePoint.

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

◆ construct_mr_edge_id()

auto meshlib::EdgePoint::construct_mr_edge_id ( e:meshlib::EdgeId ,
a:f32  ) -> meshlib::Owned< meshlib::EdgePoint >
static

Generated from constructor MR::EdgePoint::EdgePoint.

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

◆ construct_mr_mesh_topology()

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

Generated from constructor MR::EdgePoint::EdgePoint.

Calls MR_EdgePoint_Construct_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_mr_polyline_topology()

auto meshlib::EdgePoint::construct_mr_polyline_topology ( topology:&meshlib::PolylineTopology ,
v:meshlib::VertId  ) -> meshlib::Owned< meshlib::EdgePoint >
static

Generated from constructor MR::EdgePoint::EdgePoint.

Calls MR_EdgePoint_Construct_MR_PolylineTopology(). 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.

◆ convert_to_bool()

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

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

Calls MR_EdgePoint_ConvertTo_bool().

◆ e()

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

Returns a pointer to a member variable of class MR::EdgePoint named e.

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

◆ e_mut()

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

Returns a mutable pointer to a member variable of class MR::EdgePoint named e.

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

◆ get_closest_vertex_mr_mesh_topology()

auto meshlib::EdgePoint::get_closest_vertex_mr_mesh_topology ( topology:&meshlib::MeshTopology ) const -> meshlib::VertId

returns one of two edge vertices, closest to this point Generated from method MR::EdgePoint::getClosestVertex.

Calls MR_EdgePoint_getClosestVertex_MR_MeshTopology().

◆ get_closest_vertex_mr_polyline_topology()

auto meshlib::EdgePoint::get_closest_vertex_mr_polyline_topology ( topology:&meshlib::PolylineTopology ) const -> meshlib::VertId

returns one of two edge vertices, closest to this point Generated from method MR::EdgePoint::getClosestVertex.

Calls MR_EdgePoint_getClosestVertex_MR_PolylineTopology().

◆ in_vertex_0()

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

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

Calls MR_EdgePoint_inVertex_0().

◆ in_vertex_1_mr_mesh_topology()

auto meshlib::EdgePoint::in_vertex_1_mr_mesh_topology ( topology:&meshlib::MeshTopology ) const -> meshlib::VertId

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

Calls MR_EdgePoint_inVertex_1_MR_MeshTopology().

◆ in_vertex_1_mr_polyline_topology()

auto meshlib::EdgePoint::in_vertex_1_mr_polyline_topology ( topology:&meshlib::PolylineTopology ) const -> meshlib::VertId

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

Calls MR_EdgePoint_inVertex_1_MR_PolylineTopology().

◆ is_bd()

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

returns true if the point is on the boundary of the region (or for whole mesh if region is nullptr) Generated from method MR::EdgePoint::isBd.

Calls MR_EdgePoint_isBd().

◆ move_to_closest_vertex()

void meshlib::EdgePoint::move_to_closest_vertex ( )

sets this to the closest end of the edge Generated from method MR::EdgePoint::moveToClosestVertex.

Calls MR_EdgePoint_moveToClosestVertex().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_EdgePoint_DefaultConstruct().

◆ op_equal()

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

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

Calls MR_equal_MR_EdgePoint().

◆ op_not_equal()

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

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

Calls MR_not_equal_MR_EdgePoint().

◆ set_a()

void meshlib::EdgePoint::set_a ( value:&meshlib::SegmPointf )

< a in [0,1], a=0 => point is in org( e ), a=1 => point is in dest( e ) Modifies a member variable of class MR::EdgePoint named a.

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

◆ set_e()

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

Modifies a member variable of class MR::EdgePoint named e.

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

◆ sym()

auto meshlib::EdgePoint::sym ( ) const -> meshlib::Owned< meshlib::EdgePoint >

represents the same point relative to sym edge in Generated from method MR::EdgePoint::sym.

Calls MR_EdgePoint_sym().

◆ valid()

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

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

Calls MR_EdgePoint_valid().

◆ from_same_triangle_double_mr_edge_pointd_ref()

auto from_same_triangle_double_mr_edge_pointd_ref ( topology:&meshlib::MeshTopology ,
a:&mut meshlib::EdgePointd ,
b:&mut meshlib::EdgePointd  ) -> bool
related

returns true if points a and b are located on a boundary of the same triangle;

if true a.e and b.e are updated to have that triangle on the left

Generated from function MR::fromSameTriangle<double>.

Calls MR_fromSameTriangle_double_MR_EdgePointd_ref().

◆ from_same_triangle_double_mr_edge_pointd_rvalue_ref()

auto from_same_triangle_double_mr_edge_pointd_rvalue_ref ( topology:&meshlib::MeshTopology ,
a:&mut meshlib::EdgePointd ,
b:&mut meshlib::EdgePointd  ) -> bool
related

returns true if points a and b are located on a boundary of the same triangle;

if true a.e and b.e are updated to have that triangle on the left

Generated from function MR::fromSameTriangle<double>.

Calls MR_fromSameTriangle_double_MR_EdgePointd_rvalue_ref().

◆ from_same_triangle_float_mr_edge_point_ref()

auto from_same_triangle_float_mr_edge_point_ref ( topology:&meshlib::MeshTopology ,
a:&mut meshlib::EdgePoint ,
b:&mut meshlib::EdgePoint  ) -> bool
related

returns true if points a and b are located on a boundary of the same triangle;

if true a.e and b.e are updated to have that triangle on the left

Generated from function MR::fromSameTriangle<float>.

Calls MR_fromSameTriangle_float_MR_EdgePoint_ref().

◆ from_same_triangle_float_mr_edge_point_rvalue_ref()

auto from_same_triangle_float_mr_edge_point_rvalue_ref ( topology:&meshlib::MeshTopology ,
a:&mut meshlib::EdgePoint ,
b:&mut meshlib::EdgePoint  ) -> bool
related

returns true if points a and b are located on a boundary of the same triangle;

if true a.e and b.e are updated to have that triangle on the left

Generated from function MR::fromSameTriangle<float>.

Calls MR_fromSameTriangle_float_MR_EdgePoint_rvalue_ref().


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