weldx.visualization.k3d_impl.SpatialDataVisualizer

class weldx.visualization.k3d_impl.SpatialDataVisualizer(data, name, reference_system, plot=None, color=0, visualization_method='auto', show_wireframe=False)

Visualizes spatial data.

Create a ‘SpatialDataVisualizer’ instance.

Parameters
  • data (numpy.ndarray or weldx.geometry.SpatialData) – The data that should be visualized

  • name (str) – Name of the data

  • reference_system (str) – Name of the data’s reference system

  • plot (k3d.Plot) – A k3d plotting widget.

  • color (int) – The RGB color of the coordinate system (affects trace and label) as a 24 bit integer value.

  • visualization_method (str) – The initial data visualization method. Options are ‘point’, ‘mesh’, ‘both’ and ‘auto’. If ‘auto’ is selected, a mesh will be drawn if triangle data is available and points if not.

  • show_wireframe (bool) – If ‘True’, meshes will be drawn as wireframes

Methods

set_visualization_method

Set the visualization method.

show_label

Set the visibility of the label.

show_wireframe

Set wireframe rendering.

update_model_matrix

Update the model matrices of the k3d objects.

Attributes

reference_system

Get the name of the reference coordinate system.

visualization_methods