3DCoat Core API
The 3DCoat API documentation.
|
Static Public Member Functions | |
static symm & | enable (bool _enable=true) |
Enable the symmetry. | |
static bool | enabled () |
static symm & | disable () |
disable the symmetry | |
static symm & | xyz (bool x, bool y, bool z) |
Enable the XYZ-mirror symmetry. | |
static bool | is_xyz () |
check if the XYZ symmetry enabled | |
static bool & | x () |
check x symmetry state | |
static bool & | y () |
check y symmetry state | |
static bool & | z () |
check z symmetry state | |
static symm & | axial (int n, bool extraMirror=false, bool stepSymmetry=false) |
Enable the axial symmetry. | |
static bool | is_axial () |
Check if the axial symmetry enabled | |
static int & | axialOrder () |
returns the axial symmetry order if axial or axial mirror symmetry enabled | |
static bool & | extraMirror () |
returns the state of extra mirror, this is valid only tor the axial symmetry | |
static bool & | stepSymmetry () |
returns the state of step symmetry | |
static symm & | axialMirror (int n, bool extraMirror=false, bool stepSymmetry=false) |
Enable the axial mirror symmetry. | |
static bool | isAxialMirror () |
Check if the axial mirror symmetry enabled. | |
static symm & | translation (int numX, float stepX, int numY, float stepY, int numZ, float stepZ) |
Enable the translation symmetry. | |
static bool | is_translation () |
Check if the translation symmetry enabled. | |
static int & | numX () |
returns the reference to the number of the x repeats if the translational symmetry used | |
static float & | stepX () |
returns the reference to the x-step if the translational symmetry used | |
static int & | numY () |
returns the reference to the number of the y repeats if the translational symmetry used | |
static float & | stepY () |
returns the reference to the y-step if the translational symmetry used | |
static int & | numZ () |
returns the reference to the number of the z repeats if the translational symmetry used | |
static float & | stepZ () |
returns the reference to the z-step if the translational symmetry used | |
static symm & | toGlobalSpace () |
set the symmetry to be in global space | |
static symm & | toLocalSpace () |
set the symmetry to be in local space | |
static symm & | toGeneral () |
set the symmetry to general case | |
static symm & | set_start (const vec3 &pos) |
set the central point for the symmetry | |
static vec3 & | start () |
get the start point reference | |
static symm & | set_end (const vec3 &pos) |
set the end point for the symmetry axis, calling this function enables the general case of the symmetry | |
static vec3 & | end () |
the end point reference | |
static symm & | showSymmetryPlane (bool show=true) |
Show or hide the symmetry planes. | |
static symm & | setCustomSymetryTransforms (list< mat4 > &symmetryTransforms) |
enable the custom symmetry, provide the symmetry transfoms | |
static symm & | setCustomSymetryTransforms (pybind11::list &symmetryTransforms) |
enable the custom symmetry, provide the symmetry transfoms | |
static bool | isCustomSymmetry () |
Check if the custom symmetry used. | |
static symm & | getCurrentTransforms (list< mat4 > &symmetryTransforms) |
Returns all transforms using the current symmetry state. | |
static std::vector< mat4 > | getCurrentTransforms () |
Returns all transforms using the current symmetry state. | |
static symm & | getCurrentPlanes (list< comms::cPlane > &planes) |
Returns all symmetry planes using the current symmetry state. | |
static std::vector< comms::cPlane > | getCurrentPlanes () |
Returns all symmetry planes using the current symmetry state. | |
static void | disableGlobally () |
Totally disable symmetry, don't forget to enable after all operations! | |
static void | 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 |
Enable the symmetry.
_enable | true to enable, false to disable |
|
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.
Returns all symmetry planes using the current symmetry state.
planes | the resulting list |
|
static |
Returns all transforms using the current symmetry state.
Returns all transforms using the current symmetry state.
symmetryTransforms | the resulting list |
|
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()) |
enable the custom symmetry, provide the symmetry transfoms
symmetryTransforms | the list of additional transforms that will be applied to the any user action |
|
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