PositionConstraint.from_box
-
classmethod
PositionConstraint.
from_box
(link_name, box, weight=1.0)[source] Creates a
PositionConstraint
from acompas.geometry.Box
.Examples
>>> from compas.geometry import Frame >>> from compas.geometry import Box >>> box = Box(Frame.worldXY(), 4, 4, 4) >>> pc = PositionConstraint.from_box('link_0', box)