C3D Toolkit  Kernel - 117958, Vision -

The parameters of slot. More...

#include <op_shell_parameter.h>

+ Inheritance diagram for SlotValues:
+ Collaboration diagram for SlotValues:

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 ()
virtual MbeHoleType Type () const
 Type of notch.
virtual HoleValuesDuplicate (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 ()
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 MbSurfaceGetSurface () const
 Get the surface.
MbSurfaceSetSurface ()
 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 MbMergingFlagsGetMerging () 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)
- Protected Attributes inherited from HoleValues
 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.

Detailed Description

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.

Member Enumeration Documentation

◆ SlotType


Cylindrical in the bottom part.







Constructor & Destructor Documentation

◆ SlotValues()

SlotValues::SlotValues ( )

Default constructor.

Constructor of rectangular slot.

Member Data Documentation

◆ floorRadius

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.

The documentation for this class was generated from the following file: