Static Public Member Functions | |
bool | __eq__ (*args, **kwargs) |
Generated from: MR::Features::Primitives::ConeSegment 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.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.__init__ | ( | self | ) |
Implicit default constructor.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.__init__ | ( | self, | |
Features.Primitives.ConeSegment | arg0 ) |
Implicit copy constructor.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.__init__ | ( | self, | |
Vector3f | referencePoint, | ||
Vector3f | dir, | ||
float | positiveSideRadius, | ||
float | negativeSideRadius, | ||
float | positiveLength, | ||
float | negativeLength, | ||
bool | hollow ) |
Implicit aggregate constructor.
|
static |
Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.Primitives.ConeSegment.axis | ( | self | ) |
Returns a finite axis. For circles, you might want to immediately `extendToInfinity()` it.
Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.Primitives.ConeSegment.baseCircle | ( | self, | |
bool | negative ) |
Returns one of the two base circles.
Features.Primitives.Plane meshlib.mrmeshpy.Features.Primitives.ConeSegment.basePlane | ( | self, | |
bool | negative ) |
Returns one of the two base planes.
Sphere3f meshlib.mrmeshpy.Features.Primitives.ConeSegment.basePoint | ( | self, | |
bool | negative ) |
Returns a center of one of the two base circles.
Sphere3f meshlib.mrmeshpy.Features.Primitives.ConeSegment.centerPoint | ( | self | ) |
Returns the center point (unlike `referencePoint`, which can actually be off-center). For half-infinite objects, returns the finite end.
Vector3f meshlib.mrmeshpy.Features.Primitives.ConeSegment.dir | ( | self | ) |
The axis direction. Must be normalized.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.dir | ( | self, | |
Vector3f | arg1 ) |
Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.Primitives.ConeSegment.extendToInfinity | ( | self | ) |
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.
Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.Primitives.ConeSegment.extendToInfinity | ( | self, | |
bool | negative ) |
Extends the object to infinity in one direction. The radius in the extended direction becomes equal to the radius in the opposite direction.
bool meshlib.mrmeshpy.Features.Primitives.ConeSegment.hollow | ( | self | ) |
If true, the cone has no caps and no volume, and all distances (to the conical surface, that is) are positive.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.hollow | ( | self, | |
bool | arg1 ) |
bool meshlib.mrmeshpy.Features.Primitives.ConeSegment.isCircle | ( | self | ) |
bool meshlib.mrmeshpy.Features.Primitives.ConeSegment.isZeroRadius | ( | self | ) |
float meshlib.mrmeshpy.Features.Primitives.ConeSegment.length | ( | self | ) |
Returns the length. Can be infinite.
float meshlib.mrmeshpy.Features.Primitives.ConeSegment.negativeLength | ( | self | ) |
Distance from the `center` to the cap in the direction opposite to `dir`.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.negativeLength | ( | self, | |
float | arg1 ) |
float meshlib.mrmeshpy.Features.Primitives.ConeSegment.negativeSideRadius | ( | self | ) |
Cap radius in the direction opposite to `dir`.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.negativeSideRadius | ( | self, | |
float | arg1 ) |
float meshlib.mrmeshpy.Features.Primitives.ConeSegment.positiveLength | ( | self | ) |
Distance from the `center` to the cap in the `dir` direction.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.positiveLength | ( | self, | |
float | arg1 ) |
float meshlib.mrmeshpy.Features.Primitives.ConeSegment.positiveSideRadius | ( | self | ) |
Cap radius in the `dir` direction.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.positiveSideRadius | ( | self, | |
float | arg1 ) |
Vector3f meshlib.mrmeshpy.Features.Primitives.ConeSegment.referencePoint | ( | self | ) |
Some point on the axis, but not necessarily the true center point. Use `centerPoint()` for that.
None meshlib.mrmeshpy.Features.Primitives.ConeSegment.referencePoint | ( | self, | |
Vector3f | arg1 ) |
Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.Primitives.ConeSegment.untruncateCone | ( | self | ) |
Untruncates a truncated cone. If it's not a cone at all, returns the object unchanged and triggers an assertion.