Hide menu
Loading...
Searching...
No Matches
cadex::Geom::Cylinder Class Reference

Defines a 3D Cylinder. More...

#include <cadex/Geom/Cylinder.hxx>

Public Member Functions

 Cylinder (const Geom::Axis1d &theAxis, double theRadius, double theHeight)
 Constructor.
 
void SetAxis (const Geom::Axis1d &theAxis)
 Sets the axis of Cylinder.
 
void SetRadius (double theRadius)
 Sets the radius of Cylinder to the specified value. The radius must be greater than zero.
 
void SetHeight (double theHeight)
 Sets the height of Cylinder along the axis to the specified values. The height must be greater than zero.
 
const Geom::Axis1dAxis () const
 
double Radius () const
 
double Height () const
 
const Geom::PointCenter () const
 
double Volume () const
 
double SurfaceArea () const
 
bool IsInfinite () const
 Returns true if at least one coordinate is infinite.
 
bool Contains (const Geom::Point &thePoint) const
 Returns true if the point lies inside the Cylinder.
 
void Multiply (double theValue)
 Scales Cylinder by scalar value.
 
Cylinder Multiplied (double theValue) const
 Returns the Cylinder scaled by scalar value.
 
void Transform (const Geom::Transformation &theTransformation)
 Transforms the Cylinder.
 
Cylinder Transformed (const Geom::Transformation &theTransformation) const
 Returns the transformed Cylinder.
 

Detailed Description

Defines a 3D Cylinder.

The Cylinder is defined via axis, outer radius and height.

Constructor & Destructor Documentation

◆ Cylinder()

cadex::Geom::Cylinder::Cylinder ( const Geom::Axis1d & theAxis,
double theRadius,
double theHeight )

Constructor.

Creates a Cylinder from axis, radius and height. The dimensions must be greater than zero.

Member Function Documentation

◆ Contains()

bool cadex::Geom::Cylinder::Contains ( const Geom::Point & thePoint) const

Returns true if the point lies inside the Cylinder.

◆ IsInfinite()

bool cadex::Geom::Cylinder::IsInfinite ( ) const

Returns true if at least one coordinate is infinite.

"Infinite" means that coordinate's absolute value is greater than \(10^{100}\).

◆ Multiplied()

Cylinder cadex::Geom::Cylinder::Multiplied ( double theValue) const

Returns the Cylinder scaled by scalar value.

◆ Multiply()

void cadex::Geom::Cylinder::Multiply ( double theValue)

Scales Cylinder by scalar value.

Multiplies radius abd height of the Cylinder by theValue.

◆ SetAxis()

void cadex::Geom::Cylinder::SetAxis ( const Geom::Axis1d & theAxis)

Sets the axis of Cylinder.

◆ SetHeight()

void cadex::Geom::Cylinder::SetHeight ( double theHeight)

Sets the height of Cylinder along the axis to the specified values. The height must be greater than zero.

◆ SetRadius()

void cadex::Geom::Cylinder::SetRadius ( double theRadius)

Sets the radius of Cylinder to the specified value. The radius must be greater than zero.

◆ Transform()

void cadex::Geom::Cylinder::Transform ( const Geom::Transformation & theTransformation)

Transforms the Cylinder.

Transforms the axis of the Cylinder and scales its dimensions according to the transform scaling factor.

◆ Transformed()

Cylinder cadex::Geom::Cylinder::Transformed ( const Geom::Transformation & theTransformation) const

Returns the transformed Cylinder.