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.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IPLYReaderInitialValues | No | (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.
| Argument | Type | Required | Description |
|---|---|---|---|
options | IPLYReaderOptions | No |
newInstance
Method used to create a new instance of vtkPLYReader
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IPLYReaderInitialValues | No | for pre-setting some of its content |
parse
Parse data.
| Argument | Type | Required | Description |
|---|---|---|---|
content | String or ArrayBuffer | Yes | The content to parse. |
parseAsArrayBuffer
Parse data as ArrayBuffer.
| Argument | Type | Required | Description |
|---|---|---|---|
content | ArrayBuffer | Yes | The content to parse. |
parseAsText
Parse data as text.
| Argument | Type | Required | Description |
|---|---|---|---|
content | String | Yes | The content to parse. |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setDataAccessHelper
| Argument | Type | Required | Description |
|---|---|---|---|
dataAccessHelper | Yes |
setUrl
Set the url of the object to load.
| Argument | Type | Required | Description |
|---|---|---|---|
url | String | Yes | the url of the object to load. |
option | IPLYReaderOptions | No | The PLY reader options. |