C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
The parameters of slot. More...
#include <op_shell_parameter.h>
Public Types | |
enum | SlotType { st_BallEnd = 0 , st_Rectangular = 1 , st_TShaped = 2 , st_DoveTail = 3 } |
Public Member Functions | |
SlotValues () | |
Default constructor. More... | |
virtual | ~SlotValues () |
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 | length |
Slot length. | |
double | width |
Slot width. | |
double | depth |
Slot depth. | |
double | bottomWidth |
Width of the bottom part of T-shaped slot must be greater than the width "width". | |
double | bottomDepth |
Depth of the bottom part of dovetail. | |
double | floorRadius |
Fillet radius of the slot bottom. More... | |
double | tailAngle |
Draft angle of walls of slot with type st_DoveTail (vertical deviation in radians). | |
SlotType | type |
Type of slot. | |
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 parameters of slot.
The parameters of figure slot.
View of slot from above is cut in half to circle, halves of which are spread apart by the length of slot and the edges are connected by segments.
enum SlotValues::SlotType |
|
inline |
Default constructor.
Constructor of rectangular slot.
double SlotValues::floorRadius |
Fillet radius of the slot bottom.
Fillet radius of slot bottom (2 * floorRadius <= width). If width == 2 * floorRadius, then slot has type st_BallEnd. floorRadius = 0 for slots with type st_TShaped and st_DoveTail.