Skip to content

pytha.mirror_element

daniel-flassig edited this page May 7, 2020 · 6 revisions

Mirrors a single element or a table of elements.

Similar to the Part tools -> Mirror function in the PYTHA user interface.

pytha.mirror_element(element, origin, axis) 
Parameter Type Description
element element_handle or {...} A single element handle or a table of element handles
origin {x,y,z} Coordinates of the center of rotation
axis {x,y,z} Normal vector of the mirror plane

Additional information

If element contains element handles to groups, all members of these group will be mirrored as well.

To perform a mirror copy, copy first with zero displacement and then mirror the returned table of elements.

See also:

pytha, Part Tools Functions, element handles, move_element, copy_element, Groups

Clone this wiki locally