Graphics

The graphics component provides an entity with a graphics mesh. For more details on all properties associated with the graphics component and how to use the graphics component with scripting, please see the API documentation.

Properties

The graphics component properties that are accessible through the inspector.

Geometry

The geometry type is the type of 3D geometry that is used to represent the graphics of the attached entity. It is one of the following values:

  • Quad: A flat single-sided square, with normal aligned with the entity’s local x-axis.
  • Sphere: A uv sphere of uniform radius, centered at the origin of the entity.
  • Box: A uniform cube centered at the origin of the entity and aligned with the entity’s local axes.
  • Cylinder: A cylinder of uniform radius, centered at the origin of the entity and revolved around the entity’s local y-axis.
  • Cone: A cone of uniform radius, centered at the origin of the entity and revolved around the entity’s local y-axis.
  • Mesh: A arbitrary triangle mesh.

When importing 3D assets and CAD files into ProtoTwin, the default geometry type used is Mesh. It represents any arbitrary triangle mesh.

Material

The graphics material applied to the mesh. You can click the add button to create a new material or the edit button to edit an existing material. Doing this replaces the inspector with a new pane, allowing you to customize the graphics properties and import textures. You can customize the base color, opacity, transmission, normal, roughness, metallicness, occlusion, emissive and displacement values and maps, UV coordinates, UV offsets and the shader. You must enter a unique name. You may also select a material to use from the built-in standard library.

Scale

The local-scale applied to the mesh. This property allows the graphics mesh to be non-uniformly scaled. This works with all possible geometry types. Note that unlike the transform scale, this property does not affect any descendants of the entity. It only affects the mesh of the attached entity.

Advanced

In the advanced properties, you can toggle the visibility of the graphics mesh and toggle whether or not the mesh geometry should cast shadows.