3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
coat.symm Class Reference

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)
 

Member Function Documentation

◆ axial()

symm coat.symm.axial ( int n,
bool extraMirror = False,
bool stepSymmetry = False )
static

Enable the axial symmetry.

Parameters
nthe order of the axial symmetry
extraMirroradd the extra mirror orthogonal to the axis
stepSymmetryenable the step symmetry
Returns
reference

◆ axialMirror()

symm coat.symm.axialMirror ( int n,
bool extraMirror = False,
bool stepSymmetry = False )
static

Enable the axial mirror symmetry.

Parameters
nthe order of the symmetry
extraMirrordd the extra mirror orthogonal to the axis
stepSymmetryenable the step symmetry
Returns
the reference

◆ axialOrder()

int coat.symm.axialOrder ( )
static

returns the axial symmetry order if axial or axial mirror symmetry enabled

Returns
the reference to the order of the axial symmetry

◆ disable()

symm coat.symm.disable ( )
static

disable the symmetry

Returns
reference

◆ disableGlobally()

coat.symm.disableGlobally ( )
static

Totally disable symmetry, don't forget to enable after all operations!

◆ enable()

symm coat.symm.enable ( bool _enable = True)
static

Enable the symmetry.

Parameters
_enabletrue to enable, false to disable
Returns
reference for the chain-like operations

◆ enabled()

bool coat.symm.enabled ( )
static

◆ enableGlobally()

coat.symm.enableGlobally ( )
static

Enable symmetry (preliminary disabled by disableGlobally)

◆ end()

vec3 coat.symm.end ( )
static

the end point reference

Returns
the point reference

◆ extraMirror()

bool coat.symm.extraMirror ( )
static

returns the state of extra mirror, this is valid only tor the axial symmetry

Returns
the reference to the extra mirror state

◆ getCurrentPlanes()

list coat.symm.getCurrentPlanes ( )
static

Returns all symmetry planes using the current symmetry state.

Returns
the resulting list of planes (coat.plane)

◆ getCurrentTransforms()

list coat.symm.getCurrentTransforms ( )
static

Returns all transforms using the current symmetry state.

Returns
the resulting list of coat.mat4

◆ is_axial()

bool coat.symm.is_axial ( )
static

Check if the axial symmetry enabled.

Returns
true if the axial symmetry enabled

◆ is_translation()

bool coat.symm.is_translation ( )
static

Check if the translation symmetry enabled.

Returns
the state

◆ is_xyz()

bool coat.symm.is_xyz ( )
static

check if the XYZ symmetry enabled

Returns
true if this type of the symmetry active

◆ isAxialMirror()

bool coat.symm.isAxialMirror ( )
static

Check if the axial mirror symmetry enabled.

Returns
true if the axial mirror symmetry enabled

◆ isCustomSymmetry()

bool coat.symm.isCustomSymmetry ( )
static

Check if the custom symmetry used.

Returns
true if the custom symmetry enabled

◆ numX()

int coat.symm.numX ( )
static

returns the reference to the number of the x repeats if the translational symmetry used

Returns
the bool reference

◆ numY()

int coat.symm.numY ( )
static

returns the reference to the number of the y repeats if the translational symmetry used

Returns
the bool reference

◆ numZ()

int coat.symm.numZ ( )
static

returns the reference to the number of the z repeats if the translational symmetry used

Returns
the bool reference

◆ set_end()

symm coat.symm.set_end ( vec3 pos)
static

set the end point for the symmetry axis, calling this function enables the general case of the symmetry

Parameters
posthe position
Returns
the reference

◆ set_start()

symm coat.symm.set_start ( vec3 pos)
static

set the central point for the symmetry

Parameters
posthe position (in local or global space, see the localSpace() or globalSpace())
Returns
the reference

◆ setCustomSymetryTransforms()

symm coat.symm.setCustomSymetryTransforms ( any symmetryTransforms)
static

enable the custom symmetry, provide the symmetry transfoms

Parameters
symmetryTransformsthe list of additional transforms (list of coat.mat4) that will be applied to the any user action
Returns
the reference

◆ showSymmetryPlane()

symm coat.symm.showSymmetryPlane ( bool show = True)
static

Show or hide the symmetry planes.

Parameters
showset true to show
Returns
the reference

◆ start()

vec3 coat.symm.start ( )
static

get the start point reference

Returns
the point reference

◆ stepSymmetry()

bool coat.symm.stepSymmetry ( )
static

returns the state of step symmetry

Returns
the reference to the step symmetry state

◆ stepX()

float coat.symm.stepX ( )
static

returns the reference to the x-step if the translational symmetry used

Returns
the value reference

◆ stepY()

float coat.symm.stepY ( )
static

returns the reference to the y-step if the translational symmetry used

Returns
the value reference

◆ stepZ()

float coat.symm.stepZ ( )
static

returns the reference to the z-step if the translational symmetry used

Returns
the value reference

◆ toGeneral()

symm coat.symm.toGeneral ( )
static

set the symmetry to general case

Returns
the reference

◆ toGlobalSpace()

symm coat.symm.toGlobalSpace ( )
static

set the symmetry to be in global space

Returns
the reference

◆ toLocalSpace()

symm coat.symm.toLocalSpace ( )
static

set the symmetry to be in local space

Returns
the reference

◆ translation()

symm coat.symm.translation ( int numX,
float stepX,
int numY,
float stepY,
int numZ,
float stepZ )
static

Enable the translation symmetry.

Parameters
numXnumber of x-repeats
stepXthe step of the x-repeat
numYnumber of y-repeats
stepYthe step of the y-repeat
numZnumber of z-repeats
stepZthe step of the z-repeat
Returns
the reference

◆ x()

bool coat.symm.x ( )
static

check x symmetry state

Returns
reference to the x symmetry state

◆ xyz()

symm coat.symm.xyz ( bool x,
bool y,
bool z )
static

Enable the XYZ-mirror symmetry.

Parameters
xtrue to enable x-symmetry, false to disable
ytrue to enable y-symmetry, false to disable
ztrue to enable z-symmetry, false to disable
Returns
reference

◆ y()

bool coat.symm.y ( )
static

check y symmetry state

Returns
reference to the y symmetry state

◆ z()

bool coat.symm.z ( )
static

check z symmetry state

Returns
reference to the z symmetry state

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