|
C3D Toolkit
Kernel - 118060, Vision - 2.15.0.1825
|
The shell extension parameters. More...
#include <op_shell_parameter.h>
Collaboration diagram for ExtensionValues:Public Types | |
| enum | ExtensionType { et_same = 0 , et_tangent , et_direction , et_total } |
| Types of extension. More... | |
| enum | ExtensionWay { ew_distance = -2 , ew_vertex = -1 , ew_shell = 0 } |
| Ways of extension. More... | |
| enum | LateralKind { le_normal = 0 , le_prolong , le_total } |
| Methods of construction of the lateral edges. More... | |
| enum | ShellObstacleType { sot_ToShell = 0 , sot_ThroughShellLayer , sot_ToShellWithoutCut , sot_ToGabaritsOfShell , sot_Total } |
| Ways to extend to shell. More... | |
| enum | ExtensionOutput { eo_Original = 0 , eo_newFace = 1 , eo_newShell = 2 } |
| Options for representing the resulting body. More... | |
Public Member Functions | |
| ExtensionValues () | |
| Default constructor. | |
| ExtensionValues (const ExtensionValues &other) | |
| Copy-constructor. | |
| ExtensionValues (ExtensionType type, ExtensionWay way, LateralKind kind, ExtensionOutput out, const MbCartPoint3D &pt, const MbVector3D &dir, double dist, bool pro, bool comb, const MbFaceShell *addShell, const MbItemIndex &fIndex) | |
| Constructor by parameters. More... | |
| ExtensionValues (ExtensionType type, ExtensionWay way, LateralKind kind, const MbCartPoint3D &pt, const MbVector3D &dir, double dist, bool pro, bool comb, const MbFaceShell *addShell, const MbItemIndex &fIndex) | |
| Constructor by parameters. More... | |
| virtual | ~ExtensionValues () |
| Destructor. | |
| void | Init (const ExtensionValues &other, bool copyShell=true) |
| Initialization function. More... | |
| void | InitByDistance (ExtensionType t, LateralKind k, const MbVector3D &v, double d) |
| Initialization function. More... | |
| void | InitByVertex (ExtensionType t, LateralKind k, const MbCartPoint3D &v) |
| Initialization function. More... | |
| bool | InitByShell (ExtensionType t, LateralKind k, const MbFace *f, const MbSolid *s) |
| Initialization function. More... | |
| bool | InitByShell (ExtensionType t, LateralKind k, const MbFaceShell *sh, ShellObstacleType sot=sot_ToShell) |
| Initialization function. More... | |
| bool | InitByShell (ExtensionType t, LateralKind k, const MbSolid *s, ShellObstacleType sot=sot_ToShell) |
| Initialization function. More... | |
| void | Transform (const MbMatrix3D &matr, MbRegTransform *ireg=nullptr) |
| Transform an object according to the matrix. | |
| void | Move (const MbVector3D &to, MbRegTransform *ireg=nullptr) |
| Move an object along a vector. | |
| void | Rotate (const MbAxis3D &axis, double ang, MbRegTransform *ireg=nullptr) |
| Rotate an object at a given angle around an axis. | |
| const MbFaceShell * | GetShell () const |
| Get the shell. | |
| const MbItemIndex & | GetFaceIndex () const |
| The index of face in the shell. | |
| void | SetFaceIndex (const MbItemIndex &index) |
| The index of face in the shell. | |
| void | SetFaceIndex (size_t index) |
| The index of face in the shell. | |
| ShellObstacleType | GetObstacleType () const |
| Get obstacle shell processing mode. | |
| ExtensionOutput | GetOutput () const |
| Get options for representing the resulting body. | |
| bool | SetShell (const MbFace *f, const MbFaceShell *sh) |
| Replacement of shell (and its selected face). More... | |
| bool | SetShell (const MbFace *f, const MbSolid *s) |
| Replacement of shell (and its selected face). More... | |
| void | SetOutput (ExtensionOutput out) |
| Set representing the resulting body. | |
| void | operator= (const ExtensionValues &other) |
| Assignment operator. | |
| bool | IsSame (const ExtensionValues &other, double accuracy) const |
| Determine whether an object is equal? | |
Public Attributes | |
| ExtensionType | type |
| Type of extension. | |
| ExtensionWay | way |
| Way of extension. | |
| LateralKind | kind |
| Method of construction of the lateral edges. | |
| MbCartPoint3D | point |
| The point to extend.up to which. | |
| MbVector3D | direction |
| Direction of extension. | |
| double | distance |
| Distance. | |
| bool | prolong |
| Prolong along smoothly mating edges. | |
| bool | combine |
| Combine faces if it is possible. | |
| bool | simplify |
| Create equidistant with simplification. More... | |
The shell extension parameters.
The parameters of extension shell by extending or face-filling.
| ExtensionValues::ExtensionValues | ( | ExtensionType | type, |
| ExtensionWay | way, | ||
| LateralKind | kind, | ||
| ExtensionOutput | out, | ||
| const MbCartPoint3D & | pt, | ||
| const MbVector3D & | dir, | ||
| double | dist, | ||
| bool | pro, | ||
| bool | comb, | ||
| const MbFaceShell * | addShell, | ||
| const MbItemIndex & | fIndex | ||
| ) |
Constructor by parameters.
Constructor by parameters.
| [in] | type | - Type of extension. |
| [in] | way | - Way of extension. |
| [in] | kind | - Method of construction of the lateral edges. |
| [in] | out | - Options for representing the resulting body. |
| [in] | pt | - The point to construct up to. |
| [in] | dir | - Direction of extension. |
| [in] | dist | - Distance. |
| [in] | pro | - Prolong along smoothly mating edges. |
| [in] | comb | - Combine faces if it is possible. |
| [in] | addShell | - A shell to which the faces are extended. |
| [in] | fIndex | - The index of face in the shell. |
| ExtensionValues::ExtensionValues | ( | ExtensionType | type, |
| ExtensionWay | way, | ||
| LateralKind | kind, | ||
| const MbCartPoint3D & | pt, | ||
| const MbVector3D & | dir, | ||
| double | dist, | ||
| bool | pro, | ||
| bool | comb, | ||
| const MbFaceShell * | addShell, | ||
| const MbItemIndex & | fIndex | ||
| ) |
Constructor by parameters.
Constructor by parameters.
| [in] | type | - Type of extension. |
| [in] | way | - Way of extension. |
| [in] | kind | - Method of construction of the lateral edges. |
| [in] | pt | - The point to construct up to. |
| [in] | dir | - Direction of extension. |
| [in] | dist | - Distance. |
| [in] | pro | - Prolong along smoothly mating edges. |
| [in] | comb | - Combine faces if it is possible. |
| [in] | addShell | - A shell to which the faces are extended. |
| [in] | fIndex | - The index of face in the shell. |
| void ExtensionValues::Init | ( | const ExtensionValues & | other, |
| bool | copyShell = true |
||
| ) |
Initialization function.
Initialization function by parameters.
| [in] | other | - Type of extension. |
| [in] | copyShell | - Copy obstacle shell. |
| void ExtensionValues::InitByDistance | ( | ExtensionType | t, |
| LateralKind | k, | ||
| const MbVector3D & | v, | ||
| double | d | ||
| ) |
Initialization function.
Initialization function of extending to a distance.
| [in] | t | - Type of extension. |
| [in] | k | - Method of construction of the lateral edges. |
| [in] | v | - Direction of extension. |
| [in] | d | - Value of extension. |
| void ExtensionValues::InitByVertex | ( | ExtensionType | t, |
| LateralKind | k, | ||
| const MbCartPoint3D & | v | ||
| ) |
Initialization function.
Initialization function of extension to the vertex.
| [in] | t | - Type of extension. |
| [in] | k | - Method of construction of the lateral edges. |
| [in] | v | - The vertex to construct up to. |
| bool ExtensionValues::InitByShell | ( | ExtensionType | t, |
| LateralKind | k, | ||
| const MbFace * | f, | ||
| const MbSolid * | s | ||
| ) |
Initialization function.
Initialization function of extension to the face of a shell.
| [in] | t | - Type of extension. |
| [in] | k | - Method of construction of the lateral edges. |
| [in] | f | - Shell face as stopper of elongation. |
| [in] | s | - Target shell (to the face of which) the working shell will be extending by the edges. |
| bool ExtensionValues::InitByShell | ( | ExtensionType | t, |
| LateralKind | k, | ||
| const MbFaceShell * | sh, | ||
| ShellObstacleType | sot = sot_ToShell |
||
| ) |
Initialization function.
Initialization function of extension up to a shell or through a shell.
| [in] | t | - Type of extension. |
| [in] | k | - Method of construction of the lateral edges. |
| [in] | sh | - Target shell (to the face of which) the working shell will be extending by the edges. |
| [in] | sot | - Cutting mode using shell. |
| bool ExtensionValues::InitByShell | ( | ExtensionType | t, |
| LateralKind | k, | ||
| const MbSolid * | s, | ||
| ShellObstacleType | sot = sot_ToShell |
||
| ) |
Initialization function.
Initialization function of extension up to a shell or through a shell.
| [in] | t | - Type of extension. |
| [in] | k | - Method of construction of the lateral edges. |
| [in] | s | - Target shell (to the face of which) the working shell will be extending by the edges. |
| [in] | sot | - Cutting mode using shell. |
| bool ExtensionValues::SetShell | ( | const MbFace * | f, |
| const MbFaceShell * | sh | ||
| ) |
Replacement of shell (and its selected face).
Replacement of shell (and its selected face). The shell is copied.
| [in] | f | - Shell face as stopper of elongation. |
| [in] | sh | - Target shell (to the face of which) the working shell will be extending by the edges. |
Replacement of shell (and its selected face).
Replacement of shell (and its selected face). The shell is copied.
| [in] | f | - Shell face as stopper of elongation. |
| [in] | s | - Target shell (to the face of which) the working shell will be extending by the edges. |
| bool ExtensionValues::simplify |
Create equidistant with simplification.
A flag responsible for constructing an equidistant by shifting the curve along the normal to the segment connecting its ends at a given distance. In this case, the shifted equidistant is replaced by a segment if the latter does not intersect the gabarit of the original curve.