read_stl: Read an STL file

View source: R/mesh_utils.R

read_stlR Documentation

Read an STL file

Description

Reads an ASCII or binary STL file and returns a scimesh mesh descriptor list with vertices, triangles, and normals.

Usage

read_stl(path)

Arguments

path

Path to the STL file.

Value

A mesh descriptor list.

Examples

## Not run: 
mesh <- read_stl("model.stl")
nrow(mesh$vertices)

## End(Not run)


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