![]() |
3DCoat Python API
The 3DCoat Python API documentation.
|
Static Public Member Functions | |
| symm | enable (bool _enable=True) |
| Enable the symmetry. | |
| bool | enabled () |
| symm | disable () |
| disable the symmetry | |
| symm | xyz (bool x, bool y, bool z) |
| Enable the XYZ-mirror symmetry. | |
| bool | is_xyz () |
| check if the XYZ symmetry enabled | |
| bool | x () |
| check x symmetry state | |
| bool | y () |
| check y symmetry state | |
| bool | z () |
| check z symmetry state | |
| symm | axial (int n, bool extraMirror=False, bool stepSymmetry=False) |
| Enable the axial symmetry. | |
| bool | is_axial () |
| Check if the axial symmetry enabled. | |
| int | axialOrder () |
| returns the axial symmetry order if axial or axial mirror symmetry enabled | |
| bool | extraMirror () |
| returns the state of extra mirror, this is valid only tor the axial symmetry | |
| bool | stepSymmetry () |
| returns the state of step symmetry | |
| symm | axialMirror (int n, bool extraMirror=False, bool stepSymmetry=False) |
| Enable the axial mirror symmetry. | |
| bool | isAxialMirror () |
| Check if the axial mirror symmetry enabled. | |
| symm | translation (int numX, float stepX, int numY, float stepY, int numZ, float stepZ) |
| Enable the translation symmetry. | |
| bool | is_translation () |
| Check if the translation symmetry enabled. | |
| int | numX () |
| returns the reference to the number of the x repeats if the translational symmetry used | |
| float | stepX () |
| returns the reference to the x-step if the translational symmetry used | |
| int | numY () |
| returns the reference to the number of the y repeats if the translational symmetry used | |
| float | stepY () |
| returns the reference to the y-step if the translational symmetry used | |
| int | numZ () |
| returns the reference to the number of the z repeats if the translational symmetry used | |
| float | stepZ () |
| returns the reference to the z-step if the translational symmetry used | |
| symm | toGlobalSpace () |
| set the symmetry to be in global space | |
| symm | toLocalSpace () |
| set the symmetry to be in local space | |
| symm | toGeneral () |
| set the symmetry to general case | |
| symm | set_start (vec3 pos) |
| set the central point for the symmetry | |
| vec3 | start () |
| get the start point reference | |
| symm | set_end (vec3 pos) |
| set the end point for the symmetry axis, calling this function enables the general case of the symmetry | |
| vec3 | end () |
| the end point reference | |
| symm | showSymmetryPlane (bool show=True) |
| Show or hide the symmetry planes. | |
| symm | setCustomSymetryTransforms (any symmetryTransforms) |
| enable the custom symmetry, provide the symmetry transfoms | |
| bool | isCustomSymmetry () |
| Check if the custom symmetry used. | |
| list | getCurrentTransforms () |
| Returns all transforms using the current symmetry state. | |
| list | getCurrentPlanes () |
| Returns all symmetry planes using the current symmetry state. | |
| disableGlobally () | |
| Totally disable symmetry, don't forget to enable after all operations! | |
| enableGlobally () | |
| Enable symmetry (preliminary disabled by disableGlobally) | |
|
static |
Enable the axial symmetry.
| n | the order of the axial symmetry |
| extraMirror | add the extra mirror orthogonal to the axis |
| stepSymmetry | enable the step symmetry |
|
static |
Enable the axial mirror symmetry.
| n | the order of the symmetry |
| extraMirror | dd the extra mirror orthogonal to the axis |
| stepSymmetry | enable the step symmetry |
|
static |
returns the axial symmetry order if axial or axial mirror symmetry enabled
|
static |
disable the symmetry
|
static |
Totally disable symmetry, don't forget to enable after all operations!
|
static |
Enable the symmetry.
| _enable | true to enable, false to disable |
|
static |
|
static |
Enable symmetry (preliminary disabled by disableGlobally)
|
static |
the end point reference
|
static |
returns the state of extra mirror, this is valid only tor the axial symmetry
|
static |
Returns all symmetry planes using the current symmetry state.
|
static |
Returns all transforms using the current symmetry state.
|
static |
Check if the axial symmetry enabled.
|
static |
Check if the translation symmetry enabled.
|
static |
check if the XYZ symmetry enabled
|
static |
Check if the axial mirror symmetry enabled.
|
static |
Check if the custom symmetry used.
|
static |
returns the reference to the number of the x repeats if the translational symmetry used
|
static |
returns the reference to the number of the y repeats if the translational symmetry used
|
static |
returns the reference to the number of the z repeats if the translational symmetry used
set the end point for the symmetry axis, calling this function enables the general case of the symmetry
| pos | the position |
set the central point for the symmetry
| pos | the position (in local or global space, see the localSpace() or globalSpace()) |
|
static |
enable the custom symmetry, provide the symmetry transfoms
| symmetryTransforms | the list of additional transforms (list of coat.mat4) that will be applied to the any user action |
|
static |
Show or hide the symmetry planes.
| show | set true to show |
|
static |
get the start point reference
|
static |
returns the state of step symmetry
|
static |
returns the reference to the x-step if the translational symmetry used
|
static |
returns the reference to the y-step if the translational symmetry used
|
static |
returns the reference to the z-step if the translational symmetry used
|
static |
set the symmetry to general case
|
static |
set the symmetry to be in global space
|
static |
set the symmetry to be in local space
|
static |
Enable the translation symmetry.
| numX | number of x-repeats |
| stepX | the step of the x-repeat |
| numY | number of y-repeats |
| stepY | the step of the y-repeat |
| numZ | number of z-repeats |
| stepZ | the step of the z-repeat |
|
static |
check x symmetry state
|
static |
Enable the XYZ-mirror symmetry.
| x | true to enable x-symmetry, false to disable |
| y | true to enable y-symmetry, false to disable |
| z | true to enable z-symmetry, false to disable |
|
static |
check y symmetry state
|
static |
check z symmetry state