parse.stl.ascii.face: Parse a single ASCII STL face.

View source: R/read_fs_surface.R

parse.stl.ascii.faceR Documentation

Parse a single ASCII STL face.

Description

Parse a single ASCII STL face.

Usage

parse.stl.ascii.face(stl_face_lines)

Arguments

stl_face_lines

vector of exactly 7 character strings, the lines from an STL ASCII file defining a triangular face.

Value

named list with entries: 'face_normal': double matrix with 1 row and 3 columns, the face normal. 'vertex_coords': double matrix with 3 rows and 3 columns, the 3x3 vertex coordinates of the face, each row contain the x, y, and z coordinate of a vertex.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.