MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::features::primitives::ConeSegment Struct Reference
Inheritance diagram for meshlib::features::primitives::ConeSegment:

Public Member Functions

auto assign_from_another (_other:&meshlib::features::primitives::ConeSegment) -> &mut meshlib::features::primitives::ConeSegment
auto is_zero_radius () const -> bool
auto is_circle () const -> bool
auto length () const -> f32
auto center_point () const -> meshlib::Owned< meshlib::Sphere3f >
auto extend_to_infinity_1 (negative:bool) const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
auto extend_to_infinity_0 () const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
auto untruncate_cone () const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
auto axis () const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
auto base_point (negative:bool) const -> meshlib::Owned< meshlib::Sphere3f >
auto base_plane (negative:bool) const -> meshlib::Owned< meshlib::features::primitives::Plane >
auto base_circle (negative:bool) const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
auto reference_point () const -> &meshlib::Vector3f
auto reference_point_mut () -> &mut meshlib::Vector3f
void set_reference_point (value:meshlib::Vector3f)
auto dir () const -> &meshlib::Vector3f
auto dir_mut () -> &mut meshlib::Vector3f
void set_dir (value:meshlib::Vector3f)
auto positive_side_radius () const -> &f32
auto positive_side_radius_mut () -> &mut f32
void set_positive_side_radius (value:f32)
auto negative_side_radius () const -> &f32
auto negative_side_radius_mut () -> &mut f32
void set_negative_side_radius (value:f32)
auto positive_length () const -> &f32
auto positive_length_mut () -> &mut f32
void set_positive_length (value:f32)
auto negative_length () const -> &f32
auto negative_length_mut () -> &mut f32
void set_negative_length (value:f32)
auto hollow () const -> &bool
auto hollow_mut () -> &mut bool
void set_hollow (value:bool)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
static auto construct_from (referencePoint:meshlib::Vector3f, dir:meshlib::Vector3f, positiveSideRadius:f32, negativeSideRadius:f32, positiveLength:f32, negativeLength:f32, hollow:bool) -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
static auto construct_from_another (_other:&meshlib::features::primitives::ConeSegment) -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
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

Can have infinite length in one or two directions. The top and/or bottom can be flat or pointy. Doubles as a cylinder, line (finite or infinite), and a circle. Generated from class MR::Features::Primitives::ConeSegment.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::features::primitives::ConeSegment::assign_from_another ( _other:&meshlib::features::primitives::ConeSegment ) -> &mut meshlib::features::primitives::ConeSegment

Generated from method MR::Features::Primitives::ConeSegment::operator=.

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

◆ axis()

auto meshlib::features::primitives::ConeSegment::axis ( ) const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >

Returns a finite axis. For circles, you might want to immediately extendToInfinity() it. Generated from method MR::Features::Primitives::ConeSegment::axis.

Calls MR_Features_Primitives_ConeSegment_axis().

◆ base_circle()

auto meshlib::features::primitives::ConeSegment::base_circle ( negative:bool ) const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >

Returns one of the two base circles. Generated from method MR::Features::Primitives::ConeSegment::baseCircle.

Calls MR_Features_Primitives_ConeSegment_baseCircle().

◆ base_plane()

auto meshlib::features::primitives::ConeSegment::base_plane ( negative:bool ) const -> meshlib::Owned< meshlib::features::primitives::Plane >

Returns one of the two base planes. Generated from method MR::Features::Primitives::ConeSegment::basePlane.

Calls MR_Features_Primitives_ConeSegment_basePlane().

◆ base_point()

auto meshlib::features::primitives::ConeSegment::base_point ( negative:bool ) const -> meshlib::Owned< meshlib::Sphere3f >

Returns a center of one of the two base circles. Generated from method MR::Features::Primitives::ConeSegment::basePoint.

Calls MR_Features_Primitives_ConeSegment_basePoint().

◆ center_point()

auto meshlib::features::primitives::ConeSegment::center_point ( ) const -> meshlib::Owned< meshlib::Sphere3f >

Returns the center point (unlike referencePoint, which can actually be off-center). For half-infinite objects, returns the finite end. Generated from method MR::Features::Primitives::ConeSegment::centerPoint.

Calls MR_Features_Primitives_ConeSegment_centerPoint().

◆ construct_from()

auto meshlib::features::primitives::ConeSegment::construct_from ( referencePoint:meshlib::Vector3f ,
dir:meshlib::Vector3f ,
positiveSideRadius:f32 ,
negativeSideRadius:f32 ,
positiveLength:f32 ,
negativeLength:f32 ,
hollow:bool  ) -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
static

Constructs MR::Features::Primitives::ConeSegment elementwise.

Calls MR_Features_Primitives_ConeSegment_ConstructFrom(). The reference to the parameter referencePoint might be preserved in the constructed object. The reference to the parameter dir might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::features::primitives::ConeSegment::construct_from_another ( _other:&meshlib::features::primitives::ConeSegment ) -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
static

Generated from constructor MR::Features::Primitives::ConeSegment::ConeSegment.

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

◆ dir()

auto meshlib::features::primitives::ConeSegment::dir ( ) const -> &meshlib::Vector3f

The axis direction. Must be normalized. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named dir.

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

◆ dir_mut()

auto meshlib::features::primitives::ConeSegment::dir_mut ( ) -> &mut meshlib::Vector3f

The axis direction. Must be normalized. Returns a mutable pointer to a member variable of class MR::Features::Primitives::ConeSegment named dir.

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

◆ extend_to_infinity_0()

auto meshlib::features::primitives::ConeSegment::extend_to_infinity_0 ( ) const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >

Extends the object to infinity in both directions. This is equivalent to .extendToInfinity(false).extendToInfinity(true), except that calling it with positiveSideRadius != negativeSideRadius is illegal and triggers an assertion. Generated from method MR::Features::Primitives::ConeSegment::extendToInfinity.

Calls MR_Features_Primitives_ConeSegment_extendToInfinity_0().

◆ extend_to_infinity_1()

auto meshlib::features::primitives::ConeSegment::extend_to_infinity_1 ( negative:bool ) const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >

Extends the object to infinity in one direction. The radius in the extended direction becomes equal to the radius in the opposite direction. Generated from method MR::Features::Primitives::ConeSegment::extendToInfinity.

Calls MR_Features_Primitives_ConeSegment_extendToInfinity_1().

◆ hollow()

auto meshlib::features::primitives::ConeSegment::hollow ( ) const -> &bool

If true, the cone has no caps and no volume, and all distances (to the conical surface, that is) are positive. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named hollow.

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

◆ hollow_mut()

auto meshlib::features::primitives::ConeSegment::hollow_mut ( ) -> &mut bool

If true, the cone has no caps and no volume, and all distances (to the conical surface, that is) are positive. Returns a mutable pointer to a member variable of class MR::Features::Primitives::ConeSegment named hollow.

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

◆ is_circle()

auto meshlib::features::primitives::ConeSegment::is_circle ( ) const -> bool

Generated from method MR::Features::Primitives::ConeSegment::isCircle.

Calls MR_Features_Primitives_ConeSegment_isCircle().

◆ is_zero_radius()

auto meshlib::features::primitives::ConeSegment::is_zero_radius ( ) const -> bool

Generated from method MR::Features::Primitives::ConeSegment::isZeroRadius.

Calls MR_Features_Primitives_ConeSegment_isZeroRadius().

◆ length()

auto meshlib::features::primitives::ConeSegment::length ( ) const -> f32

Returns the length. Can be infinite. Generated from method MR::Features::Primitives::ConeSegment::length.

Calls MR_Features_Primitives_ConeSegment_length().

◆ negative_length()

auto meshlib::features::primitives::ConeSegment::negative_length ( ) const -> &f32

Distance from the center to the cap in the direction opposite to dir. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named negativeLength.

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

◆ negative_length_mut()

auto meshlib::features::primitives::ConeSegment::negative_length_mut ( ) -> &mut f32

Distance from the center to the cap in the direction opposite to dir. Returns a mutable pointer to a member variable of class MR::Features::Primitives::ConeSegment named negativeLength.

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

◆ negative_side_radius()

auto meshlib::features::primitives::ConeSegment::negative_side_radius ( ) const -> &f32

Cap radius in the direction opposite to dir. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named negativeSideRadius.

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

◆ negative_side_radius_mut()

auto meshlib::features::primitives::ConeSegment::negative_side_radius_mut ( ) -> &mut f32

Cap radius in the direction opposite to dir. Returns a mutable pointer to a member variable of class MR::Features::Primitives::ConeSegment named negativeSideRadius.

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

◆ new()

auto meshlib::features::primitives::ConeSegment::new ( ) -> meshlib::Owned< meshlib::features::primitives::ConeSegment >
static

Constructs an empty (default-constructed) instance.

Calls MR_Features_Primitives_ConeSegment_DefaultConstruct().

◆ positive_length()

auto meshlib::features::primitives::ConeSegment::positive_length ( ) const -> &f32

Distance from the center to the cap in the dir direction. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named positiveLength.

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

◆ positive_length_mut()

auto meshlib::features::primitives::ConeSegment::positive_length_mut ( ) -> &mut f32

Distance from the center to the cap in the dir direction. Returns a mutable pointer to a member variable of class MR::Features::Primitives::ConeSegment named positiveLength.

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

◆ positive_side_radius()

auto meshlib::features::primitives::ConeSegment::positive_side_radius ( ) const -> &f32

Cap radius in the dir direction. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named positiveSideRadius.

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

◆ positive_side_radius_mut()

auto meshlib::features::primitives::ConeSegment::positive_side_radius_mut ( ) -> &mut f32

Cap radius in the dir direction. Returns a mutable pointer to a member variable of class MR::Features::Primitives::ConeSegment named positiveSideRadius.

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

◆ reference_point()

auto meshlib::features::primitives::ConeSegment::reference_point ( ) const -> &meshlib::Vector3f

Some point on the axis, but not necessarily the true center point. Use centerPoint() for that. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named referencePoint.

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

◆ reference_point_mut()

auto meshlib::features::primitives::ConeSegment::reference_point_mut ( ) -> &mut meshlib::Vector3f

Some point on the axis, but not necessarily the true center point. Use centerPoint() for that. Returns a mutable pointer to a member variable of class MR::Features::Primitives::ConeSegment named referencePoint.

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

◆ set_dir()

void meshlib::features::primitives::ConeSegment::set_dir ( value:meshlib::Vector3f )

The axis direction. Must be normalized. Modifies a member variable of class MR::Features::Primitives::ConeSegment named dir.

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

◆ set_hollow()

void meshlib::features::primitives::ConeSegment::set_hollow ( value:bool )

If true, the cone has no caps and no volume, and all distances (to the conical surface, that is) are positive. Modifies a member variable of class MR::Features::Primitives::ConeSegment named hollow.

Calls MR_Features_Primitives_ConeSegment_Set_hollow().

◆ set_negative_length()

void meshlib::features::primitives::ConeSegment::set_negative_length ( value:f32 )

Distance from the center to the cap in the direction opposite to dir. Modifies a member variable of class MR::Features::Primitives::ConeSegment named negativeLength.

Calls MR_Features_Primitives_ConeSegment_Set_negativeLength().

◆ set_negative_side_radius()

void meshlib::features::primitives::ConeSegment::set_negative_side_radius ( value:f32 )

Cap radius in the direction opposite to dir. Modifies a member variable of class MR::Features::Primitives::ConeSegment named negativeSideRadius.

Calls MR_Features_Primitives_ConeSegment_Set_negativeSideRadius().

◆ set_positive_length()

void meshlib::features::primitives::ConeSegment::set_positive_length ( value:f32 )

Distance from the center to the cap in the dir direction. Modifies a member variable of class MR::Features::Primitives::ConeSegment named positiveLength.

Calls MR_Features_Primitives_ConeSegment_Set_positiveLength().

◆ set_positive_side_radius()

void meshlib::features::primitives::ConeSegment::set_positive_side_radius ( value:f32 )

Cap radius in the dir direction. Modifies a member variable of class MR::Features::Primitives::ConeSegment named positiveSideRadius.

Calls MR_Features_Primitives_ConeSegment_Set_positiveSideRadius().

◆ set_reference_point()

void meshlib::features::primitives::ConeSegment::set_reference_point ( value:meshlib::Vector3f )

Some point on the axis, but not necessarily the true center point. Use centerPoint() for that. Modifies a member variable of class MR::Features::Primitives::ConeSegment named referencePoint.

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

◆ untruncate_cone()

auto meshlib::features::primitives::ConeSegment::untruncate_cone ( ) const -> meshlib::Owned< meshlib::features::primitives::ConeSegment >

Untruncates a truncated cone. If it's not a cone at all, returns the object unchanged and triggers an assertion. Generated from method MR::Features::Primitives::ConeSegment::untruncateCone.

Calls MR_Features_Primitives_ConeSegment_untruncateCone().


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