Tool.from_data¶
-
classmethod
Tool.
from_data
(data)[source]¶ Construct a Tool from its data representation.
Examples
>>> mesh = Mesh.from_stl(compas_fab.get('planning_scene/cone.stl')) >>> frame = Frame([0.14, 0, 0], [0, 1, 0], [0, 0, 1]) >>> data = {'visual': mesh.data, 'frame': frame.data} >>> tool = Tool.from_data(data)