vcgWrlWrite: Export meshes to WRL-files

View source: R/vcgPlyWrite.r

vcgWrlWriteR Documentation

Export meshes to WRL-files

Description

Export meshes to WRL-files

Usage

vcgWrlWrite(mesh, filename = dataname, writeCol = TRUE, writeNormals = TRUE)

Arguments

mesh

triangular mesh of class 'mesh3d' or a numeric matrix with 3-columns

filename

character: filename (file extension '.wrl' will be added automatically.

writeCol

logical: export existing per-vertex color stored in mesh$material$color

writeNormals

write existing normals to file

Examples

data(humface)
vcgWrlWrite(humface,filename = "humface")
unlink("humface.wrl")

Rvcg documentation built on Feb. 16, 2023, 5:12 p.m.