Class MeshDefaultVisualizer
Default visualizer for shape_msgs/Mesh messages. Constructs a Unity Mesh from the message vertices and triangle indices and draws it at an optional origin.
Inheritance
Inherited Members
Namespace: Global Namespace
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class MeshDefaultVisualizer : DrawingVisualizer<MeshMsg>, IVisualFactory, IPriority
Methods
CreateGUI(MeshMsg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(MeshMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| MeshMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Returns
| Type | Description |
|---|---|
| Action | An action that draws the GUI. |
Overrides
Draw(Drawing3d, MeshMsg, MessageMetadata)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, MeshMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| MeshMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Overrides
Draw<C>(MeshMsg, Drawing3d, Color, GameObject)
Builds a Unity Mesh from the message vertices and triangle indices and draws it at the given origin.
Declaration
public static void Draw<C>(MeshMsg message, Drawing3d drawing, Color color, GameObject origin = null) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| MeshMsg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| Color | color | RGBA color. |
| GameObject | origin | Optional |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the vertex data. |