C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
The hole parameters. More...
#include <op_shell_parameter.h>
Public Types | |
enum | BorerType { bt_SimpleCylinder = 0 , bt_TwofoldCylinder = 1 , bt_ChamferCylinder = 2 , bt_ComplexCylinder = 3 , bt_SimpleCone = 4 , bt_ArcCylinder = 5 , bt_DoubleCylinder = 6 } |
Types of holes. More... | |
Public Member Functions | |
BorerValues () | |
Default constructor. More... | |
virtual | ~BorerValues () |
Destructor. | |
virtual MbeHoleType | Type () const |
Type of notch. | |
virtual HoleValues & | Duplicate (MbRegDuplicate *ireg=nullptr) const |
Create a copy of the object. | |
virtual void | Transform (const MbMatrix3D &matr, MbRegTransform *ireg=nullptr) |
Transform an object according to the matrix. | |
virtual bool | IsSame (const HoleValues &, double accuracy) const |
Determine whether an object is equal? | |
virtual void | operator= (const HoleValues &other) |
Assignment operator. | |
Public Member Functions inherited from HoleValues | |
virtual | ~HoleValues () |
Destructor. | |
virtual void | Move (const MbVector3D &, MbRegTransform *=nullptr) |
Move an object along a vector. | |
virtual void | Rotate (const MbAxis3D &, double ang, MbRegTransform *=nullptr) |
Rotate an object at a given angle around an axis. | |
void | Init (const HoleValues &) |
Copy function. | |
const MbSurface * | GetSurface () const |
Get the surface. | |
MbSurface * | SetSurface () |
Get the surface for editing. | |
void | SetSurface (MbSurface *s) |
Replace surface. | |
void | SetPhantom (bool s) |
Set the phantom flag. | |
bool | GetPhantom () const |
Get the phantom flag. | |
bool | MergeFaces () const |
Whether to merge similar faces (true). | |
bool | MergeEdges () const |
Whether to merge similar edges (true). | |
const MbMergingFlags & | GetMerging () const |
Get flags of merging. | |
void | SetMergingFaces (bool s) |
Whether to merge similar faces. | |
void | SetMergingEdges (bool s) |
Whether to merge similar edges. | |
void | SetMerging (const MbMergingFlags &f) |
Whether to merge similar items. | |
Public Attributes | |
double | capDiameter |
Diameter cap (for hole with type bt_TwofoldCylinder, bt_ChamferCylinder, bt_ComplexCylinder, bt_DoubleCylinder). | |
double | capDepth |
Depth for cap (for hole with type bt_TwofoldCylinder, bt_ChamferCylinder, bt_ComplexCylinder, bt_DoubleCylinder). | |
double | capAngle |
Chamfer angle for cap (for holes with type bt_ChamferCylinder, bt_ComplexCylinder), capAngle <= M_PI. | |
double | diameter |
Hole diameter for thread (for all the types of holes). | |
double | depth |
Hole depth for thread (for all the types of holes). | |
double | angle |
Angle of hole conicity for thread (for hole with type bt_SimpleCone), 0 < angle < M_PI. | |
double | spikeAngle |
Apex angle of the hole end (for all the types of holes), spikeAngle <= M_PI. | |
double | arcRadius |
Arc radius or Fillet radius (for hole with type bt_ArcCylinder and bt_DoubleCylinder). | |
bool | prolong |
Flag of drill extension along the opposite direction (for all the types of holes), default true (the extension exists). | |
bool | down |
Direction of hole axis: true - forward (opposite to the Z of the local system), false - backward. | |
BorerType | type |
Type of hole. | |
Public Attributes inherited from HoleValues | |
double | placeAngle |
Angle between axis and normal to the surface (0 <= placeAngle <= M_PI_2). | |
double | azimuthAngle |
Angle of rotation around the surface normal (-M_PI2 <= azimuthAngle <= M_PI2). | |
Additional Inherited Members | |
Protected Member Functions inherited from HoleValues | |
HoleValues () | |
Default constructor. More... | |
HoleValues (const HoleValues &other, MbRegDuplicate *iReg) | |
Copy-constructor. | |
Protected Attributes inherited from HoleValues | |
MbSurface * | surface |
Processing surface (if nullptr, then is considered planar). | |
bool | doPhantom |
Create the phantom of the operation. | |
MbMergingFlags | boolMergeFlags |
Control flags of shell items merging when performing a boolean operation with the previous body. | |
The hole parameters.
The parameters for construction of holes with different types.
Tip of hole is controlled by the spikeAngle parameter. If # spikeAngle = 0 - spherical tip of hole,
If # spikeAngle = M - planar tip of hole,
in other cases - conical tip of hole.
|
inline |
Default constructor.
Constructor of simple cylindrical hole.