# TriangleMesh

Custom surface geometry given by a triangle mesh, as in the STL file format. Load a TriangleMesh directly from an STL file. The solid_index parameter can be used to select a single solid from the file. Otherwise, if the file contains a single solid, it will be loaded as a TriangleMesh; if the file contains multiple solids, they will all be loaded as a GeometryGroup.

# Upload Parameters

filename: The name of the STL file containing the surface geometry mesh data.

scale: The length scale for the loaded geometry (um). For example, a scale of 10.0 means that a vertex (1, 0, 0) will be placed at x = 10 um.

Type: floating-point number

  • Default: 1

origin: The origin of the loaded geometry, in units of scale. Translates from (0, 0, 0) to this point after applying the scaling.

Type: floating-point number

  • Default: (0, 0, 0)

solid_index: If set, read a single solid with this index from the file.