3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
coat.NutHeadBaseParams Class Reference
Inheritance diagram for coat.NutHeadBaseParams:
coat.NutAcornParams coat.NutClampLever coat.NutFlangeParams coat.NutHexaParams coat.NutLambParams coat.NutRadialParams coat.NutRimParams coat.NutSlitsParams

Public Member Functions

 __init__ (self)
 
 __init__ (self, NutType t, float d, float h)
 
NutHeadBaseParams diameter (self, float d)
 set the diameter.
 
float diameter (self)
 get the diameter.
 
NutHeadBaseParams height (self, float h)
 set the height.
 
float height (self)
 get the height.
 
NutHeadBaseParams type (self, int t)
 set the nut type.
 
int type (self)
 set the nut type.
 
NutHeadBaseParams copy (self, NutHeadBaseParams p=NutHeadBaseParams.nullptr)
 copies the object.
 

Constructor & Destructor Documentation

◆ __init__() [1/2]

◆ __init__() [2/2]

Member Function Documentation

◆ copy()

NutHeadBaseParams coat.NutHeadBaseParams.copy ( self,
NutHeadBaseParams p = NutHeadBaseParams.nullptr )

copies the object.

Parameters
ppointer to the object to copy. If the pointer equals to null then the object is duplicated
Returns
the pointer to a copy of an object.

Reimplemented in coat.NutAcornParams, coat.NutClampLever, coat.NutFlangeParams, coat.NutLambParams, coat.NutRadialParams, coat.NutRimParams, and coat.NutSlitsParams.

◆ diameter() [1/2]

float coat.NutHeadBaseParams.diameter ( self)

get the diameter.

Returns
diameter

◆ diameter() [2/2]

NutHeadBaseParams coat.NutHeadBaseParams.diameter ( self,
float d )

set the diameter.

Parameters
ddiameter
Returns
NutRadialParams reference

◆ height() [1/2]

float coat.NutHeadBaseParams.height ( self)

get the height.

Returns
height value

◆ height() [2/2]

NutHeadBaseParams coat.NutHeadBaseParams.height ( self,
float h )

set the height.

Parameters
hheight value.
Returns
NutHeadBaseParams reference

◆ type() [1/2]

int coat.NutHeadBaseParams.type ( self)

set the nut type.

Returns
type value.

◆ type() [2/2]

NutHeadBaseParams coat.NutHeadBaseParams.type ( self,
int t )

set the nut type.

Parameters
ttype value.
Returns
NutHeadBaseParams reference

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