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

Public Member Functions

 ConeSegment (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 ConeSegment ()
 ConeSegment (meshlib.Vector3f referencePoint, meshlib.Vector3f dir, float positiveSideRadius, float negativeSideRadius, float positiveLength, float negativeLength, boolean hollow)
 ConeSegment (meshlib.features.primitives.ConeSegment _other)
meshlib.features.primitives.ConeSegment assignFromAnother (meshlib.features.primitives.ConeSegment _other)
boolean isZeroRadius ()
boolean isCircle ()
float length ()
meshlib.Sphere3f centerPoint ()
meshlib.features.primitives.ConeSegment extendToInfinity (boolean negative)
meshlib.features.primitives.ConeSegment extendToInfinity ()
meshlib.features.primitives.ConeSegment untruncateCone ()
meshlib.features.primitives.ConeSegment axis ()
meshlib.Sphere3f basePoint (boolean negative)
meshlib.features.primitives.Plane basePlane (boolean negative)
meshlib.features.primitives.ConeSegment baseCircle (boolean negative)
meshlib.Vector3f referencePoint ()
void setReferencePoint (meshlib.Vector3f value)
meshlib.Vector3f dir ()
void setDir (meshlib.Vector3f value)
float positiveSideRadius ()
void setPositiveSideRadius (float value)
float negativeSideRadius ()
void setNegativeSideRadius (float value)
float positiveLength ()
void setPositiveLength (float value)
float negativeLength ()
void setNegativeLength (float value)
boolean hollow ()
void setHollow (boolean value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

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.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ ConeSegment() [1/4]

meshlib.features.primitives.ConeSegment.ConeSegment ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ ConeSegment() [2/4]

meshlib.features.primitives.ConeSegment.ConeSegment ( )

Constructs an empty (default-constructed) instance.

Calls MR_Features_Primitives_ConeSegment_DefaultConstruct().

◆ ConeSegment() [3/4]

meshlib.features.primitives.ConeSegment.ConeSegment ( meshlib.Vector3f referencePoint,
meshlib.Vector3f dir,
float positiveSideRadius,
float negativeSideRadius,
float positiveLength,
float negativeLength,
boolean hollow )

Constructs MR::Features::Primitives::ConeSegment elementwise. 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.

Calls MR_Features_Primitives_ConeSegment_ConstructFrom().

◆ ConeSegment() [4/4]

meshlib.features.primitives.ConeSegment.ConeSegment ( meshlib.features.primitives.ConeSegment _other)

Generated from constructor MR::Features::Primitives::ConeSegment::ConeSegment. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_Features_Primitives_ConeSegment_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.features.primitives.ConeSegment meshlib.features.primitives.ConeSegment.assignFromAnother ( meshlib.features.primitives.ConeSegment _other)

Generated from method MR::Features::Primitives::ConeSegment::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_Features_Primitives_ConeSegment_AssignFromAnother().

◆ axis()

meshlib.features.primitives.ConeSegment meshlib.features.primitives.ConeSegment.axis ( )

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

◆ baseCircle()

meshlib.features.primitives.ConeSegment meshlib.features.primitives.ConeSegment.baseCircle ( boolean negative)

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

Calls MR_Features_Primitives_ConeSegment_baseCircle().

◆ basePlane()

meshlib.features.primitives.Plane meshlib.features.primitives.ConeSegment.basePlane ( boolean negative)

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

Calls MR_Features_Primitives_ConeSegment_basePlane().

◆ basePoint()

meshlib.Sphere3f meshlib.features.primitives.ConeSegment.basePoint ( boolean negative)

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

Calls MR_Features_Primitives_ConeSegment_basePoint().

◆ centerPoint()

meshlib.Sphere3f meshlib.features.primitives.ConeSegment.centerPoint ( )

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

◆ dir()

meshlib.Vector3f meshlib.features.primitives.ConeSegment.dir ( )

The axis direction. Must be normalized. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named dir. The reference to this object might be preserved as the return value.

Calls MR_Features_Primitives_ConeSegment_Get_dir().

◆ extendToInfinity() [1/2]

meshlib.features.primitives.ConeSegment meshlib.features.primitives.ConeSegment.extendToInfinity ( )

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

◆ extendToInfinity() [2/2]

meshlib.features.primitives.ConeSegment meshlib.features.primitives.ConeSegment.extendToInfinity ( boolean negative)

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()

boolean meshlib.features.primitives.ConeSegment.hollow ( )

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. The reference to this object might be preserved as the return value.

Calls MR_Features_Primitives_ConeSegment_Get_hollow().

◆ isCircle()

boolean meshlib.features.primitives.ConeSegment.isCircle ( )

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

Calls MR_Features_Primitives_ConeSegment_isCircle().

◆ isZeroRadius()

boolean meshlib.features.primitives.ConeSegment.isZeroRadius ( )

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

Calls MR_Features_Primitives_ConeSegment_isZeroRadius().

◆ length()

float meshlib.features.primitives.ConeSegment.length ( )

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

Calls MR_Features_Primitives_ConeSegment_length().

◆ negativeLength()

float meshlib.features.primitives.ConeSegment.negativeLength ( )

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. The reference to this object might be preserved as the return value.

Calls MR_Features_Primitives_ConeSegment_Get_negativeLength().

◆ negativeSideRadius()

float meshlib.features.primitives.ConeSegment.negativeSideRadius ( )

Cap radius in the direction opposite to dir. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named negativeSideRadius. The reference to this object might be preserved as the return value.

Calls MR_Features_Primitives_ConeSegment_Get_negativeSideRadius().

◆ positiveLength()

float meshlib.features.primitives.ConeSegment.positiveLength ( )

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. The reference to this object might be preserved as the return value.

Calls MR_Features_Primitives_ConeSegment_Get_positiveLength().

◆ positiveSideRadius()

float meshlib.features.primitives.ConeSegment.positiveSideRadius ( )

Cap radius in the dir direction. Returns a pointer to a member variable of class MR::Features::Primitives::ConeSegment named positiveSideRadius. The reference to this object might be preserved as the return value.

Calls MR_Features_Primitives_ConeSegment_Get_positiveSideRadius().

◆ referencePoint()

meshlib.Vector3f meshlib.features.primitives.ConeSegment.referencePoint ( )

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. The reference to this object might be preserved as the return value.

Calls MR_Features_Primitives_ConeSegment_Get_referencePoint().

◆ setDir()

void meshlib.features.primitives.ConeSegment.setDir ( meshlib.Vector3f value)

The axis direction. Must be normalized. Modifies a member variable of class MR::Features::Primitives::ConeSegment named dir. The reference to the parameter value might be preserved in this object in element dir.

Calls MR_Features_Primitives_ConeSegment_Set_dir().

◆ setHollow()

void meshlib.features.primitives.ConeSegment.setHollow ( boolean value)

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

◆ setNegativeLength()

void meshlib.features.primitives.ConeSegment.setNegativeLength ( float value)

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

◆ setNegativeSideRadius()

void meshlib.features.primitives.ConeSegment.setNegativeSideRadius ( float value)

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

◆ setPositiveLength()

void meshlib.features.primitives.ConeSegment.setPositiveLength ( float value)

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

◆ setPositiveSideRadius()

void meshlib.features.primitives.ConeSegment.setPositiveSideRadius ( float value)

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

◆ setReferencePoint()

void meshlib.features.primitives.ConeSegment.setReferencePoint ( meshlib.Vector3f value)

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. The reference to the parameter value might be preserved in this object in element referencePoint.

Calls MR_Features_Primitives_ConeSegment_Set_referencePoint().

◆ untruncateCone()

meshlib.features.primitives.ConeSegment meshlib.features.primitives.ConeSegment.untruncateCone ( )

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 class was generated from the following file: