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

Public Member Functions

 __init__ (self)
 
washer innerDiameter (self, float _d)
 set the inner diameter.
 
float innerDiameter (self)
 get the inner diameter.
 
washer outerDiameter (self, float _d)
 set the outer diameter.
 
float outerDiameter (self)
 get the outer diameter.
 
washer conusDiameter (self, float _d)
 set the diameter of the conus washer.
 
float conusDiameter (self)
 get the diameter of the conus washer.
 
washer thickness (self, float _s)
 set the washer thickness.
 
float thickness (self)
 get the washer thickness.
 
washer height (self, float _h)
 set the washer height.
 
float height (self)
 get the washer height.
 
washer facet (self, bool _f)
 indicates the facet usage.
 
bool facet (self)
 get the facet flag.
 
washer type (self, any _t)
 set the washer type.
 
any type (self)
 get the washer 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.washer.__init__ ( self)

Reimplemented from coat.prim.

Member Function Documentation

◆ conusDiameter() [1/2]

float coat.washer.conusDiameter ( self)

get the diameter of the conus washer.

Returns
diameter

◆ conusDiameter() [2/2]

washer coat.washer.conusDiameter ( self,
float _d )

set the diameter of the conus washer.

Parameters
_ddiameter
Returns
washer reference

◆ facet() [1/2]

bool coat.washer.facet ( self)

get the facet flag.

Returns
facet flag value

◆ facet() [2/2]

washer coat.washer.facet ( self,
bool _f )

indicates the facet usage.

Parameters
_ffacet flag
Returns
washer reference

◆ height() [1/2]

float coat.washer.height ( self)

get the washer height.

Returns
height value

◆ height() [2/2]

washer coat.washer.height ( self,
float _h )

set the washer height.

Parameters
_hheight value
Returns
washer reference

◆ innerDiameter() [1/2]

float coat.washer.innerDiameter ( self)

get the inner diameter.

Returns
diameter

◆ innerDiameter() [2/2]

washer coat.washer.innerDiameter ( self,
float _d )

set the inner diameter.

Parameters
_ddiameter
Returns
washer reference

◆ outerDiameter() [1/2]

float coat.washer.outerDiameter ( self)

get the outer diameter.

Returns
diameter

◆ outerDiameter() [2/2]

washer coat.washer.outerDiameter ( self,
float _d )

set the outer diameter.

Parameters
_ddiameter
Returns
washer reference

◆ thickness() [1/2]

float coat.washer.thickness ( self)

get the washer thickness.

Returns
thickness value

◆ thickness() [2/2]

washer coat.washer.thickness ( self,
float _s )

set the washer thickness.

Parameters
_sthickness value
Returns
washer reference

◆ type() [1/2]

any coat.washer.type ( self)

get the washer type.

Returns
type value

◆ type() [2/2]

washer coat.washer.type ( self,
any _t )

set the washer type.

Parameters
_ttype value
Returns
washer reference

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