read_stl: Import STL mesh

View source: R/read_stl.R

read_stlR Documentation

Import STL mesh

Description

This is a wrapper of 'rgl::readSTL()', which returns 'NA' if the read fails (which it does for both ASCII STLs and binary STLs that use big endian encoding).

Usage

read_stl(fname)

Arguments

fname

string path to stl file

Value

numeric matrix with (x, y, z) coordinates of vertices on successful read. 'NA' on any warning.

Examples


read_stl(system.file("extdata",
                     "L_mAMEM_or.stl",
                     package = "MuscleTernary"))


Middleton-Lab/MuscleTernary documentation built on April 26, 2024, 11:29 a.m.