Visual.from_primitive

classmethod Visual.from_primitive(primitive, **kwargs)

Create visual link from a primitive shape.

Parameters
  • primitive (:compas:compas.ometry.Shape) – A primitive shape.

  • **kwargs (dict[str, Any], optional) – The keyword arguments (kwargs) collected in a dict. These allow using non-standard attributes absent in the URDF specification.

Returns

compas.datastructures.Mesh – A visual description object.