C3D Toolkit  Kernel - 109696, Vision - 2.4.0.76

The parameters of extrusion or rotation. More...

#include <op_swept_parameter.h>

+ Inheritance diagram for SweptValuesAndSides:
+ Collaboration diagram for SweptValuesAndSides:

Public Member Functions

 SweptValuesAndSides ()
 Default constructor. More...
 
 SweptValuesAndSides (double scalarValue1, double scalarValue2)
 Constructor by rotation angles and extrusion depths. More...
 
 SweptValuesAndSides (const SweptValuesAndSides &other)
 Copy-constructor of data on the same surfaces.
 
 SweptValuesAndSides (const SweptValuesAndSides &other, MbRegDuplicate *ireg)
 Constructor of complete copying of data.
 
virtual ~SweptValuesAndSides ()
 Destructor.
 
virtual bool IsSame (const SweptValues &other, double accuracy) const
 Determine whether an object is equal?
 
void operator= (const SweptValuesAndSides &other)
 Assignment operator of data copying on the same surfaces.
 
void Transform (const MbMatrix3D &matr, MbRegTransform *iReg=NULL)
 Transform according to the matrix. More...
 
void Move (const MbVector3D &to, MbRegTransform *iReg=NULL)
 Move along a vector. More...
 
void Rotate (const MbAxis3D &axis, double angle, MbRegTransform *iReg=NULL)
 Rotate around an axis. More...
 
bool DuplicateSurfaces (MbRegDuplicate *ireg=NULL)
 Make copies of surfaces. More...
 
MbSurfaceGetSurface1 () const
 Get the surface along the positive direction.
 
MbSurfaceGetSurface2 () const
 Get the surface along the negative direction.
 
void SetSurface1 (MbSurface *s)
 Set the surface along the positive direction.
 
void SetSurface2 (MbSurface *s)
 Set the surface along the negative direction.
 
void ExchangeSurfaces ()
 Swap surfaces.
 
- Public Member Functions inherited from SweptValues
 SweptValues ()
 Default constructor.
 
 SweptValues (double t1, double t2, bool c=true)
 Constructor by thicknesses and closedness.
 
 SweptValues (const SweptValues &other)
 Copy-constructor.
 
virtual ~SweptValues ()
 Destructor.
 
virtual bool IsExtrusionValues () const
 This is extrusion parameters?
 
virtual bool IsRevolutionValues () const
 This is rotation parameters?
 
virtual bool IsEvolutionValues () const
 This is "evolution" parameters?
 
virtual bool IsLoftedValues () const
 This is "lofted" parameters?
 
virtual bool IsRibValues () const
 This is "rib" parameters?
 
virtual bool IsSimilar (const MbSweptData &other) const
 Determine whether the objects are similar.
 
virtual bool SetEqual (const MbSweptData &other)
 Make objects equal.
 
void Init (const SweptValues &other)
 Function of copying data.
 
bool IsShellClosed () const
 Get the closedness state.
 
void SetShellClosed (bool cl)
 Set the closedness state.
 
bool CheckSelfInt () const
 Get the state of flag of checking self-intersection.
 
void SetCheckSelfInt (bool c)
 Set the state of flag of checking self-intersection.
 
bool MergeFaces () const
 Whether to merge similar faces (true).
 
void SetMergeFaces (bool mf)
 Whether to merge similar faces (true).
 
void operator= (const SweptValues &other)
 Assignment operator.
 

Public Attributes

MbSweptSide side1
 The parameters of extrusion/rotation along the forward direction.
 
MbSweptSide side2
 The parameters of extrusion/rotation along the backward direction.
 
- Public Attributes inherited from SweptValues
double thickness1
 Wall thickness (offset distance) along the forward direction. More...
 
double thickness2
 Wall thickness (offset distance) along the backward direction. More...
 
bool shellClosed
 Closedness of shell.
 

Detailed Description

The parameters of extrusion or rotation.

The parameters of extrusion or rotation of curves with options along the directions.
In the extrusion operations the forward direction is the direction collinear with the vector of extrusion and back - the opposite direction. In the rotation operation the forward direction is determined by the axis of rotation using the right hand rule.

Constructor & Destructor Documentation

◆ SweptValuesAndSides() [1/2]

SweptValuesAndSides::SweptValuesAndSides ( )
inline

Default constructor.

Constructor of parameters for construction of closed shell without the thin wall. Method of construction in both directions - to a given depth equal to 0.0.

◆ SweptValuesAndSides() [2/2]

SweptValuesAndSides::SweptValuesAndSides ( double  scalarValue1,
double  scalarValue2 
)
inline

Constructor by rotation angles and extrusion depths.

Constructor of parameters for construction of closed shell without the thin wall. Method of construction in both directions - to a given depth.

Parameters
[in]scalarValue1- Angle of rotation of extrusion along the forward direction.
[in]scalarValue2- Angle of rotation of extrusion along the backward direction.

Member Function Documentation

◆ Transform()

void SweptValuesAndSides::Transform ( const MbMatrix3D matr,
MbRegTransform iReg = NULL 
)

Transform according to the matrix.

Transform according to the matrix of surface in the forward and backward direction.

Parameters
[in]matr- A transformation matrix.
[in]iReg- Registrator.

◆ Move()

void SweptValuesAndSides::Move ( const MbVector3D to,
MbRegTransform iReg = NULL 
)

Move along a vector.

Move along the vector of the surface along the forward and backward direction.

Parameters
[in]to- Translation vector.
[in]iReg- Registrator.

◆ Rotate()

void SweptValuesAndSides::Rotate ( const MbAxis3D axis,
double  angle,
MbRegTransform iReg = NULL 
)

Rotate around an axis.

Rotate around the axis of the surface along the forward and backward direction.

Parameters
[in]axis- The rotation axis.
[in]angle- The rotation angle.
[in]iReg- Registrator.

◆ DuplicateSurfaces()

bool SweptValuesAndSides::DuplicateSurfaces ( MbRegDuplicate ireg = NULL)

Make copies of surfaces.

If the surface is given in any direction, then replace the surface with its copy.

Parameters
[in]ireg- Registrator of copies.
Returns
True if at least one surface is had and copied.

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