rapid_clay_formations_fab.utils¶
- rapid_clay_formations_fab.utils.wrap_list(list_, idx)[source]¶
Return value at index, wrapping if necessary.
- rapid_clay_formations_fab.utils.ensure_frame(frame_like)[source]¶
Convert geometry objects to
compas.geometry.Frame
.- Parameters:
frame_like – Frame like object, currently
compas.geometry.Frame
,compas.geometry.Plane
,compas.geometry.Point
,Rhino.Geometry.Plane
, orRhino.Geometry.Point3d
.- Returns:
Notes
If a point is given the point is used as the frames origin and the X and Y will be the X and Y unit vectors.
compas.geometry.Plane
is defined only by origin and normal, the X and Y axis will be chosen arbitrarely, seecompas.geometry.Frame.from_plane()
.- Return type: