as_scimesh_mesh: Convert rgl or scimesh mesh to canonical scimesh format

View source: R/mesh_utils.R

as_scimesh_meshR Documentation

Convert rgl or scimesh mesh to canonical scimesh format

Description

Internal helper that transparently accepts either an rgl-style mesh (list with vb/it) or a scimesh mesh descriptor (list with vertices/triangles) and returns the canonical scimesh format.

Usage

as_scimesh_mesh(x)

Arguments

x

A mesh-like object (rgl tmesh3d or scimesh mesh descriptor).

Value

A scimesh mesh descriptor list with vertices and triangles.


scimesh documentation built on Aug. 9, 2026, 9:07 a.m.