read.fs.surface.stl.bin: Read surface mesh in STL binary format.

Description Usage Arguments Value Note References

View source: R/read_fs_surface.R

Description

The STL format is a mesh format that is often used for 3D printing, it stores geometry information. It is known as stereolithography format. A binary and an ASCII version exist. This function reads the binary version.

Usage

1
read.fs.surface.stl.bin(filepath, digits = 6L)

Arguments

filepath

full path to surface mesh file in STL format.

digits

the precision (number of digits after decimal separator) to use when determining whether two x,y,z coords define the same vertex. This is used when the polygon soup is turned into an indexed mesh.

Value

an 'fs.surface' instance.

Note

The STL format does not use indices into a vertex list to define faces, instead it repeats vertex coords in each face ('polygon soup').

References

See https://en.wikipedia.org/wiki/STL_(file_format) for the format spec.


freesurferformats documentation built on Feb. 11, 2022, 5:06 p.m.