Model.morphsymmetrycreateaxis#
- Model.morphsymmetrycreateaxis(name, sysptr, collectiondomain, enforce, multilat, type, ucyc, orient, mv)#
Creates symmetry dependent on system.
- Parameters:
name (hwString) – Name of symmetry.
sysptr (Entity) – The entity system.
collectiondomain (Collection) – The collection containing the domain entities.
enforce (int) –
0 - Approximate
1 - Enforced
multilat (int) –
0 - Unilateral
1 - Multilateral
type (int) – Type of symmetry.
ucyc (int) – Number of cycles for cyclical symmetry.
orient (int) –
0 - Default
1 - x-axis
2 - y-axis
3 - z-axis
mv (int) –
0 - Do not apply to morph volumes
1 - Apply to morph volumes
Example#
Create a symmetry dependent on the specified system for the domains on the collection selected interactively . The symmetry has the values given inenforce,multilat,type,ucyc,orient, andmv.#import hm import hm.entities as ent model = hm.Model() model.morphsymmetrycreateaxis( name="mirror", sysptr=ent.System(model, 2), collectiondomain=hm.CollectionByInteractiveSelection(model, ent.Domain), enforce=1, multilat=1, type=10, ucyc=3, orient=1, mv=0, )