Skip to content

PLYReader ​

Introduction ​

vtkPLYReader is a source object that reads polygonal data in Stanford University PLY file format (see http://graphics.stanford.edu/data/3Dscanrep). It requires that the elements "vertex" and "face" are defined. The "vertex" element must have the properties "x", "y", and "z". The "face" element must have the property "vertex_indices" defined. Optionally, if the "face" element has the properties "intensity" and/or the triplet "red", "green", "blue", and optionally "alpha"; these are read and added as scalars to the output data. If the "face" element has the property "texcoord" a new TCoords point array is created and points are duplicated if they have 2 or more different texture coordinates.

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkPLYReader characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIPLYReaderInitialValuesNo(default: {})

getBaseURL ​

getDataAccessHelper ​

getDuplicatePointsForFaceTexture ​

Controls whether points are duplicated for face-texture mapping.

getFaceTextureTolerance ​

Get the tolerance used to determine if two points are the same.

getUrl ​

Get the url of the object to load.

loadData ​

Load the object data.

ArgumentTypeRequiredDescription
optionsIPLYReaderOptionsNo

newInstance ​

Method used to create a new instance of vtkPLYReader

ArgumentTypeRequiredDescription
initialValuesIPLYReaderInitialValuesNofor pre-setting some of its content

parse ​

Parse data.

ArgumentTypeRequiredDescription
contentString or ArrayBufferYesThe content to parse.

parseAsArrayBuffer ​

Parse data as ArrayBuffer.

ArgumentTypeRequiredDescription
contentArrayBufferYesThe content to parse.

parseAsText ​

Parse data as text.

ArgumentTypeRequiredDescription
contentStringYesThe content to parse.

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setDataAccessHelper ​

ArgumentTypeRequiredDescription
dataAccessHelperYes

setUrl ​

Set the url of the object to load.

ArgumentTypeRequiredDescription
urlStringYesthe url of the object to load.
optionIPLYReaderOptionsNoThe PLY reader options.