Skip to content

Redundant visuals in KinematicElement #662

@christian-rauch

Description

@christian-rauch

The KinematicElement stores visuals in two ways.

It (1) stores a path to the resource and a shape pointer directly as members:

shapes::ShapeConstPtr shape = nullptr;
std::string shape_resource_path = "";

but is (2) also stores an array of VisualElement:
std::vector<VisualElement> visual;

This appears to be redundant and confusing because it is not documented, if they are used in different ways. Can the members (shape and shape_resource_path) be removed?

In my scenario, the members are empty and the VisualElement actually contains the mesh reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions