#include <MRFeatures.h>
Public Member Functions | |
bool | isZeroRadius () const |
bool | isCircle () const |
float | length () const |
MRMESH_API Sphere | centerPoint () const |
MRMESH_API ConeSegment | extendToInfinity (bool negative) const |
MRMESH_API ConeSegment | extendToInfinity () const |
MRMESH_API ConeSegment | untruncateCone () const |
MRMESH_API ConeSegment | axis () const |
MRMESH_API Sphere | basePoint (bool negative) const |
MRMESH_API Plane | basePlane (bool negative) const |
MRMESH_API ConeSegment | baseCircle (bool negative) const |
Public Attributes | |
Vector3f | referencePoint |
Vector3f | dir |
float | positiveSideRadius = 0 |
Cap radius in the dir direction. | |
float | negativeSideRadius = 0 |
Cap radius in the direction opposite to dir . | |
float | positiveLength = 0 |
Distance from the center to the cap in the dir direction. | |
float | negativeLength = 0 |
Distance from the center to the cap in the direction opposite to dir . | |
bool | hollow = false |
Friends | |
bool | operator== (const ConeSegment &, const ConeSegment &)=default |
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.
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
nodiscard |
|
friend |
Vector3f MR::Features::Primitives::ConeSegment::dir |
bool MR::Features::Primitives::ConeSegment::hollow = false |
float MR::Features::Primitives::ConeSegment::negativeLength = 0 |
Distance from the center
to the cap in the direction opposite to dir
.
float MR::Features::Primitives::ConeSegment::negativeSideRadius = 0 |
Cap radius in the direction opposite to dir
.
float MR::Features::Primitives::ConeSegment::positiveLength = 0 |
Distance from the center
to the cap in the dir
direction.
float MR::Features::Primitives::ConeSegment::positiveSideRadius = 0 |
Cap radius in the dir
direction.
Vector3f MR::Features::Primitives::ConeSegment::referencePoint |