Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vcgPlyRead

Import ascii or binary PLY files.


Description

Reads Polygon File Format (PLY) files and stores the results in an object of class "mesh3d" - momentarily only triangular meshes are supported.

Usage

vcgPlyRead(file, updateNormals = TRUE, clean = TRUE)

Arguments

file

character: file to be read.

updateNormals

logical: if TRUE and the imported file contais faces, vertex normals will be (re)calculated.

clean

logical: if TRUE, duplicated and unreference vertices will be removed.

Value

Object of class "mesh3d"

with:

vb

3 x n matrix containing n vertices as homolougous coordinates

normals

3 x n matrix containing vertex normals

it

3 x m integer matrix containing vertex indices forming triangular faces

material$color

Per vertex colors if specified in the imported file

Note

from version 0.8 on this is only a wrapper for vcgImport (to avoid API breaking).

Author(s)

Stefan Schlager

See Also


Rvcg

Manipulations of Triangular Meshes Based on the 'VCGLIB' API

v0.19.2
GPL (>= 2) | file LICENSE
Authors
Stefan Schlager [aut, cre, cph], Girinon Francois [ctb]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.