C3D Toolkit
Kernel - 117958, Vision - 2.7.6.12
|
The shell extension parameters. More...
#include <op_shell_parameter.h>
Public Types | |
enum | ExtensionType { et_same = 0 , et_tangent , et_direction } |
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 } |
Methods of construction of the lateral edges. More... | |
Public Member Functions | |
ExtensionValues () | |
Default constructor. | |
ExtensionValues (const ExtensionValues &other) | |
Copy-constructor. | |
ExtensionValues (ExtensionType t, ExtensionWay w, LateralKind k, const MbCartPoint3D &p, const MbVector3D &dir, double d, bool pro, bool comb, const MbFaceShell *s, const MbItemIndex &fIndex) | |
Constructor. | |
virtual | ~ExtensionValues () |
Destructor. | |
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... | |
void | InitByShell (ExtensionType t, LateralKind k, const MbFace *f, const MbSolid *s) |
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 | SetShell (const MbFace *f, const MbSolid *s) |
Replacement of shell and its selected face. | |
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. | |
The shell extension parameters.
The parameters of extension shell by extending or face-filling.
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. |
void ExtensionValues::InitByShell | ( | ExtensionType | t, |
LateralKind | k, | ||
const MbFace * | f, | ||
const MbSolid * | s | ||
) |
Initialization function.
Initialization function of extension to the surface.
[in] | t | - Type of extension. |
[in] | k | - Method of construction of the lateral edges. |
[in] | f | - Face of the shell. |
[in] | s | - Solid for replacement of shell. |