Learn R Programming

Arothron (version 2.0.5)

export_amira.path: export_amira.path

Description

Convert and save a 3D matrix into a AmiraMesh ASCII Lineset (.am) object

Usage

export_amira.path(
  vertices,
  filename,
  Lines = c(1:(dim(vertices)[1] - 1) - 1, -1),
  path
)

Arguments

vertices

numeric: a kx3 matrix

filename

character: name of the requested output

Lines

numeric: sequence of the vertices that defines the line

path

character: folder path

Author

Antonio Profico, Costantino Buzi, Marina Melchionna, Paolo Piras, Pasquale Raia, Alessio Veneziano

Examples

Run this code
x<-c(1:20)
y<-seq(1,3,length=20)
z<-rnorm(20,0.01)
vertices<-cbind(x,y,z)
export_amira.path(vertices=vertices,filename="example_line",path=tempdir())

Run the code above in your browser using DataLab