Write object to VTK file
write.vtk(x, file, ...)
# S3 method for neuron
write.vtk(
x,
file,
datatype = c("float", "double"),
title = file,
WriteAllSubTrees = TRUE,
...
)
Object to write
Path to output file
Additional arguments to methods
The VTK data type (one of float or double)
Title of the .vtk file (defaults to file)
Whether to write all subtrees in the neuron or just the main tree.
if (FALSE) {
n=Cell07PNs[[1]]
write.vtk(n, paste0(n$NeuronName, ".vtk"))
write.neuron(n, paste0(n$NeuronName, ".vtk"))
}