Learn R Programming

freesurferformats (version 0.1.18)

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

Description

Parse a single ASCII STL face.

Usage

parse.stl.ascii.face(stl_face_lines)

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.

Arguments

stl_face_lines

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