Skip to content

compas_robots.blender.scene ¤

This package provides functionality for visualizing robot models in Blender.

Classes¤

RobotModelObject ¤

RobotModelObject(**kwargs: Any)

Scene object for drawing robot models in Blender.

Parameters:

Functions¤

create_geometry ¤
create_geometry(
    geometry: Mesh, name: str | None = None, color: Color | None = None
) -> Object

Create the scene object representing the robot geometry.

Parameters:

  • geometry (Mesh) –

    Instance of a mesh data structure

  • name (str | None, default: None ) –

    The name of the mesh to draw.

  • color (Color | None, default: None ) –

    The color of the object.

Returns:

  • Object
draw ¤
draw() -> list[Object]

Draw the robot model.

Returns:

draw_attached_meshes ¤
draw_attached_meshes() -> list[Object]

Draw the meshes attached to the robot model, if any.

Returns:

draw_collision ¤
draw_collision() -> list[Object]

Draw the collision mesh of the robot model.

Returns:

draw_visual ¤
draw_visual() -> list[Object]

Draw the robot model.

Returns:

transform ¤
transform(native_mesh: Object, transformation: Transformation) -> None

Transform the mesh of a robot model.

Parameters:

  • native_mesh (Object) –

    A mesh scene object.

  • transformation (Transformation) –

    A transformation matrix.

Returns:

  • None