indexed_triangle_set

marxs.visualization.x3d.indexed_triangle_set(xyz, index, display, *, scene)[source] [edit on github]

Plot a set of triangles.

Parameters:
xyznp.array

Euclidean coordinates of nodes

indexnp.array

index of nodes for each triangle

displaydict of None

Dictionary with display settings.

scenemarxs.visualization.x3d.Scene object

A scene that this object is added to. If None, a new scene will be created.

Returns:
scenemarxs.visualization.x3d.Scene object

Scene with object added.