CFx SDK Documentation  2023 SP0
Public Member Functions | Protected Attributes | List of all members
FacetModeler::Torus Class Reference

#include <FMMdlSurface.h>

Inheritance diagram for FacetModeler::Torus:
FacetModeler::Revolution FacetModeler::Surface FacetModeler::Entity

Public Member Functions

 Torus (const OdGeLine3d &axis, const OdGeVector3d &startDir, double majorRadius, double minorRadius, OdUInt32 majorApprox, OdUInt32 minorApprox)
 
Type type () const
 
double majorRadius () const
 
double minorRadius () const
 
OdUInt32 majorApproximation () const
 
OdUInt32 minorApproximation () const
 
void normal (const FacetModeler::Vertex &atV, const Face &atF, OdGeVector3d &normal) const
 
void transform (const OdGeMatrix3d &x)
 
int compare (const Surface *pOther, double e) const
 
Surfacecopy (Body &to) const
 
- Public Member Functions inherited from FacetModeler::Revolution
 Revolution (const OdGeLine3d &axis, const OdGeVector3d &startDir)
 
const OdGeLine3daxis () const
 
const OdGeVector3dstartDir () const
 
- Public Member Functions inherited from FacetModeler::Surface
 Surface ()
 
bool isEqivalent (const Surface *pTo, const OdGeTol &tol) const
 
Surfacenext () const
 
 ~Surface ()
 
- Public Member Functions inherited from FacetModeler::Entity
 Entity ()
 
 Entity (const Entity &ent)
 
Entityoperator= (const Entity &)
 
virtual ~Entity ()
 
OdUInt32 flags () const
 
void setFlags (OdUInt32 iFlags)
 
bool isFlagOn (OdUInt32 iFlag) const
 
void setIsFlagOn (OdUInt32 iFlag, bool bOn)
 
FacetModeler::AecTagType tag () const
 
void setTag (FacetModeler::AecTagType nTag)
 

Protected Attributes

double m_majorRadius
 
double m_minorRadius
 
OdUInt32 m_majorApprox
 
OdUInt32 m_minorApprox
 
- Protected Attributes inherited from FacetModeler::Revolution
OdGeLine3d m_axis
 
OdGeVector3d m_startDir
 

Additional Inherited Members

- Public Types inherited from FacetModeler::Surface
enum  Type {
  kUndefined = 0 , kCylinder = 1 , kCone = 2 , kSphere = 3 ,
  kTorus = 4
}
 
- Public Attributes inherited from FacetModeler::Surface
Surfacem_pNext
 
- Protected Member Functions inherited from FacetModeler::Surface
int surface_compare (const Surface *pOther, double eps) const
 
virtual Surfaceclone (Body &to) const
 
virtual bool _isEqivalent (const Surface &to, const OdGeTol &tol) const
 

Detailed Description

Definition at line 155 of file FMMdlSurface.h.

Constructor & Destructor Documentation

◆ Torus()

FacetModeler::Torus::Torus ( const OdGeLine3d axis,
const OdGeVector3d startDir,
double  majorRadius,
double  minorRadius,
OdUInt32  majorApprox,
OdUInt32  minorApprox 
)

Member Function Documentation

◆ compare()

int FacetModeler::Torus::compare ( const Surface pOther,
double  e 
) const
virtual

Reimplemented from FacetModeler::Revolution.

◆ copy()

Surface* FacetModeler::Torus::copy ( Body to) const
virtual

Reimplemented from FacetModeler::Surface.

◆ majorApproximation()

OdUInt32 FacetModeler::Torus::majorApproximation ( ) const

◆ majorRadius()

double FacetModeler::Torus::majorRadius ( ) const

◆ minorApproximation()

OdUInt32 FacetModeler::Torus::minorApproximation ( ) const

◆ minorRadius()

double FacetModeler::Torus::minorRadius ( ) const

◆ normal()

void FacetModeler::Torus::normal ( const FacetModeler::Vertex atV,
const Face atF,
OdGeVector3d normal 
) const
virtual

Reimplemented from FacetModeler::Surface.

◆ transform()

void FacetModeler::Torus::transform ( const OdGeMatrix3d x)
virtual

Reimplemented from FacetModeler::Revolution.

◆ type()

Type FacetModeler::Torus::type ( ) const
virtual

Reimplemented from FacetModeler::Surface.

Member Data Documentation

◆ m_majorApprox

OdUInt32 FacetModeler::Torus::m_majorApprox
protected

Definition at line 173 of file FMMdlSurface.h.

◆ m_majorRadius

double FacetModeler::Torus::m_majorRadius
protected

Definition at line 171 of file FMMdlSurface.h.

◆ m_minorApprox

OdUInt32 FacetModeler::Torus::m_minorApprox
protected

Definition at line 174 of file FMMdlSurface.h.

◆ m_minorRadius

double FacetModeler::Torus::m_minorRadius
protected

Definition at line 172 of file FMMdlSurface.h.


The documentation for this class was generated from the following file: