Skip to content

Variable Transparency

You can set the transparency individually for each element in a surface mesh by specifing an existing scalar quantity to serve as the transparency. This can also be set manually in the GUI via the point cloud [Options] --> [Variable Transparency] setting.

Per-vertex, per-face, and per-corner scalar quantities are supported for use as transparency values.

See the transparency section for more transparency-related options.

surface mesh transparency demo

All values will be clamped into the [0,1] range. The transparency is multiplicative with any other transparency effects, such as setting the structure’s global transparency value.

SurfaceMesh.set_transparency_quantity(quantity_name)
set transparency quantity

Set the transparency quantity by name. The quantity must be a vertex, face, or corner scalar quantity added to this mesh.

All values will be clamped into the [0,1] range.

If transparency is not already enabled, updates the transparency mode to be Pretty.

SurfaceMesh.clear_transparency_quantity()
clear transparency quantity

Clear the transparency quantity.