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 |
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>.
| 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.
| 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().
| 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().
| 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().
| 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().
| 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().
|
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.
|
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.
| 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.
| 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.
| 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().
| 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().
| 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.
| 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.
| auto meshlib::features::primitives::ConeSegment::is_circle | ( | ) | const -> bool |
Generated from method MR::Features::Primitives::ConeSegment::isCircle.
Calls MR_Features_Primitives_ConeSegment_isCircle().
| auto meshlib::features::primitives::ConeSegment::is_zero_radius | ( | ) | const -> bool |
Generated from method MR::Features::Primitives::ConeSegment::isZeroRadius.
Calls MR_Features_Primitives_ConeSegment_isZeroRadius().
| 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().
| 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.
| 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.
| 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.
| 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.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Features_Primitives_ConeSegment_DefaultConstruct().
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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().
| 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().
| 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().
| 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().
| 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().
| 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.
| 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().