3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
coat.thread Class Reference
Inheritance diagram for coat.thread:
coat.prim coat.threadStud

Public Member Functions

 __init__ (self)
 
thread diameter (self, float d)
 set the diameter of the thread.
 
float diameter (self)
 get the diameter of the thread.
 
thread pitch (self, float p)
 set the pitch of the thread.
 
float pitch (self)
 set the pitch of the thread.
 
thread stub (self, float l)
 set the stub length of the thread.
 
float stub (self)
 get the stub length of the thread.
 
thread height (self, float h)
 set the height of the thread.
 
float height (self)
 get the height of the thread.
 
thread turns (self, int n)
 set the number of the thread turns.
 
int turns (self)
 get the number of the thread turns.
 
thread clockwise (self, bool cw)
 set the clockwise flag of the thread.
 
bool clockwise (self)
 get the clockwise of the thread.
 
thread close (self, bool b)
 set the closed thread.
 
bool close (self)
 set the closed thread.
 
thread profile (self, ThreadProfile prf)
 set the thread profile type.
 
ThreadProfile profile (self)
 get the thread profile type.
 
- Public Member Functions inherited from coat.prim
any class_name (self)
 get the primitive class name.
 
prim name (self, str s)
 set the primitive object name.
 
any name (self)
 get the primitive object name.
 
 add (self, Volume v)
 add the prim into scene
 
 subtract (self, Volume v)
 subtract the prim from scene
 
 intersect (self, Volume v)
 intersect the prim into scene
 
 merge (self, Volume v, BoolOpType op)
 merge the prim into scene
 
Mesh mesh (self)
 get the mesh prim
 
prim color (self, int CL)
 assign the color to the primitive (in voxels)
 
prim color (self, float r, float g, float b, float a)
 assign the color to the primitive (in voxels)
 
prim color (self, float r, float g, float b)
 assign the color to the primitive (in voxels)
 
prim color (self, str colorid)
 assign the color to the primitive (in voxels)
 
prim gloss (self, float value)
 assign the gloss for the voxel primitive, it will work only if the color already assigned
 
prim roughness (self, float value)
 assign the roughness for the voxel primitive, it will work only if the color already assigned
 
prim metal (self, float value)
 the metalliclty value for the voxel primitive, it will work only if the color already assigned
 
prim opacity (self, float value)
 assign the opacity of the color over the voxel primitive.
 
prim details (self, float det_level)
 set the detail level
 
float details (self)
 get the detail level
 
prim transform (self, mat4 t)
 set the transform matrix
 
mat4 transform (self)
 get the transform matrix
 
prim scale (self, float scale)
 set the scale
 
prim scale (self, vec3 v)
 set the scale
 
vec3 scale (self)
 get the scale
 
prim translate (self, vec3 _pos)
 Set the primitive translation.
 
vec3 translate (self)
 get the primitive translation
 
prim translate (self, float x, float y, float z)
 Set the primitive translation.
 
prim x (self, float x)
 shift the primitive along the x - axis
 
prim y (self, float y)
 shift the primitive along the y - axis
 
prim z (self, float z)
 shift the primitive along the z - axis
 
prim auto_divide (self, float average_div)
 set the auto devide
 
prim step_divide (self, float step)
 set the step devide
 
prim fillet (self, float radius)
 set the fillet
 
float fillet_relative (self)
 calculates a fillet relative value (0..1).
 

Additional Inherited Members

- Static Public Member Functions inherited from coat.prim
 debug_on (bool isOn=True)
 indicates whether to turn on or off the debug mode.
 
 debug_clear ()
 clear the debug info for primitive operations
 
 push_transform (mat4 t)
 set the global transform matrix to all primitives
 
 push_translate (vec3 d)
 Set the translation to all primitives.
 
 push_scale (float scale)
 Set the scale to all primitives.
 
 push_scale (vec3 s)
 Set the scale to all primitives.
 
 push_details (float details_modulator)
 set the detail level to all primitives
 
 reset_transform ()
 reset the global transform matrix
 

Constructor & Destructor Documentation

◆ __init__()

coat.thread.__init__ ( self)

Reimplemented from coat.prim.

Reimplemented in coat.threadStud.

Member Function Documentation

◆ clockwise() [1/2]

bool coat.thread.clockwise ( self)

get the clockwise of the thread.

Returns
clockwise flag

◆ clockwise() [2/2]

thread coat.thread.clockwise ( self,
bool cw )

set the clockwise flag of the thread.

Parameters
cwif value is true then thread direction is clockwise
Returns
thread reference

◆ close() [1/2]

bool coat.thread.close ( self)

set the closed thread.

Returns
closed flag

◆ close() [2/2]

thread coat.thread.close ( self,
bool b )

set the closed thread.

Parameters
bclosed value
Returns
thread reference

◆ diameter() [1/2]

float coat.thread.diameter ( self)

get the diameter of the thread.

Returns
thread diameter

Reimplemented in coat.threadStud, and coat.threadStud.

◆ diameter() [2/2]

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

set the diameter of the thread.

Parameters
ddiameter value
Returns
thread reference

Reimplemented in coat.threadStud, and coat.threadStud.

◆ height() [1/2]

float coat.thread.height ( self)

get the height of the thread.

Returns
height value

◆ height() [2/2]

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

set the height of the thread.

Parameters
hheight value
Returns
thread reference

◆ pitch() [1/2]

float coat.thread.pitch ( self)

set the pitch of the thread.

Returns
pitch value

◆ pitch() [2/2]

thread coat.thread.pitch ( self,
float p )

set the pitch of the thread.

Parameters
ppitch value
Returns
thread reference

◆ profile() [1/2]

ThreadProfile coat.thread.profile ( self)

get the thread profile type.

Returns
profile type

◆ profile() [2/2]

thread coat.thread.profile ( self,
ThreadProfile prf )

set the thread profile type.

Parameters
prfprofile type
Returns
thread reference

◆ stub() [1/2]

float coat.thread.stub ( self)

get the stub length of the thread.

Returns
stub length value

◆ stub() [2/2]

thread coat.thread.stub ( self,
float l )

set the stub length of the thread.

Parameters
lstub length value
Returns
thread reference

◆ turns() [1/2]

int coat.thread.turns ( self)

get the number of the thread turns.

Returns
turns count

◆ turns() [2/2]

thread coat.thread.turns ( self,
int n )

set the number of the thread turns.

Parameters
nturns count
Returns
thread reference

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