C3D Toolkit
Kernel - 117950, Vision - 2.7.5.29
|
The parameters of extrusion or rotation. More...
#include <op_swept_parameter.h>
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=nullptr) |
Transform according to the matrix. More... | |
void | Move (const MbVector3D &to, MbRegTransform *iReg=nullptr) |
Move along a vector. More... | |
void | Rotate (const MbAxis3D &axis, double angle, MbRegTransform *iReg=nullptr) |
Rotate around an axis. More... | |
bool | DuplicateSurfaces (MbRegDuplicate *ireg=nullptr) |
Make copies of surfaces. More... | |
const MbSurface * | GetSurface1 () const |
Get the surface along the positive direction. | |
const MbSurface * | GetSurface2 () const |
Get the surface along the negative direction. | |
MbSurface * | SetSurface1 () |
Get the surface along the positive direction. | |
MbSurface * | SetSurface2 () |
Get the surface along the negative direction. | |
void | SetSurface1 (const MbSurface *s) |
Set the surface along the positive direction. | |
void | SetSurface2 (const MbSurface *s) |
Set the surface along the negative direction. | |
void | ExchangeSurfaces () |
Swap surfaces. | |
bool | IsRakeSet () const |
Is draft set. | |
bool | IsThicknessSet () const |
Is thickness set. | |
![]() | |
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. | |
void | SetMergingFaces (bool mf) |
Whether to merge similar faces. | |
bool | MergeEdges () const |
Whether to merge similar edges. | |
void | SetMergingEdges (bool me) |
Whether to merge similar edges. | |
const MbMergingFlags & | MergingFlags () const |
Get control flags of shell items merging. | |
void | SetMergingFlags (const MbMergingFlags &f) |
Set control flags of shell items merging. | |
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. | |
![]() | |
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 created shell. | |
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.
|
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.
|
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.
[in] | scalarValue1 | - Angle of rotation\depth of extrusion along the forward direction. |
[in] | scalarValue2 | - Angle of rotation\depth of extrusion along the backward direction. |
void SweptValuesAndSides::Transform | ( | const MbMatrix3D & | matr, |
MbRegTransform * | iReg = nullptr |
||
) |
Transform according to the matrix.
Transform according to the matrix of surface in the forward and backward direction.
[in] | matr | - A transformation matrix. |
[in] | iReg | - Registrator. |
void SweptValuesAndSides::Move | ( | const MbVector3D & | to, |
MbRegTransform * | iReg = nullptr |
||
) |
Move along a vector.
Move along the vector of the surface along the forward and backward direction.
[in] | to | - Translation vector. |
[in] | iReg | - Registrator. |
void SweptValuesAndSides::Rotate | ( | const MbAxis3D & | axis, |
double | angle, | ||
MbRegTransform * | iReg = nullptr |
||
) |
Rotate around an axis.
Rotate around the axis of the surface along the forward and backward direction.
[in] | axis | - The rotation axis. |
[in] | angle | - The rotation angle. |
[in] | iReg | - Registrator. |
bool SweptValuesAndSides::DuplicateSurfaces | ( | MbRegDuplicate * | ireg = nullptr | ) |
Make copies of surfaces.
If the surface is given in any direction, then replace the surface with its copy.
[in] | ireg | - Registrator of copies. |