You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When elements are rotated around a vector with 0 magnitude (for example [0,0,0] or in my case [0,-0,0]), the geometry gets inverted/destroyed.
Are there use cases where this behavior is desired? If not I suggest throwing an Error when the rotation axis has zero-length.
Took me a very long time to figure out where the problem actually was coming from because it randomly fell together with the desired rotation direction for my use case, so the elements got turned but were broken after...
import element_controller as ec
import cadwork as cw
import math
active_elements= ec.get_active_identifiable_element_ids()
ec.rotate_elements(active_elements, cw.point_3d(0,0,0), cw.point_3d(0,0,0), math.pi)