Last updated

API / geotoolkit3d / data / loader / vtk / VTKFactory / VTKFactory

Namespace: VTKFactory

vtk.VTKFactory.VTKFactory

Table of contents

Type Aliases

Contents

Type Aliases

Data

Ƭ Data: Object

The input json object

Type declaration

NameTypeDescription
data{ cells?: number[][] ; index?: number[] ; lineindex?: number[][] ; pointindex?: number[] ; polylineindex?: number[] ; position?: number[] } & FieldDataThe actual data
metadata{ dataset: { dimensions?: number[] ; origin?: number[] ; points?: number ; spacing?: number[] ; type: string } ; header: string ; title: string ; type: string }The metadata of the VTK
metadata.dataset{ dimensions?: number[] ; origin?: number[] ; points?: number ; spacing?: number[] ; type: string }Information related to the nature of the dataset
metadata.dataset.dimensions?number[]The dimensions (specified only for some dataset types)
metadata.dataset.origin?number[]-
metadata.dataset.points?numberThe point count in the dataset
metadata.dataset.spacing?number[]-
metadata.dataset.typestringThe dataset type (UNSTRUCTURED_GRID, etc)
metadata.headerstringThe header/comment at the top of the file
metadata.titlestringThe title/name of the dataset
metadata.typestringThe type of the dataset (ASCII)

FieldData

Ƭ FieldData: Record<string, { arrays?: { name: string ; stride: number ; values: number[] }[] ; name: string ; type: string ; values?: number[] }>

The fielddata object if any is present


LinesData

Ƭ LinesData: Object

The input json object

Type declaration

NameTypeDescription
data{ lineindex?: number[][] ; position?: number[] }The actual data
data.lineindex?number[][]The indices for lines (if any)
data.position?number[]The vertices (XYZ)

LinesOptions

Ƭ LinesOptions: OptionsBase & { line?: { material?: Material ; position?: Vector3 ; scale?: Vector3 ; zup?: boolean } }

The options to use to customize resulting objects


MeshData

Ƭ MeshData: Object

The input json object

Type declaration

NameTypeDescription
data{ index?: number[] ; position?: number[] } & FieldDataThe actual data

MeshOptions

Ƭ MeshOptions: OptionsBase & { mesh?: { material?: Material ; position?: Vector3 ; scale?: Vector3 ; zup?: boolean } }

The options to use to customize resulting objects


Options

Ƭ Options: MeshOptions & LinesOptions & PointcloudData

The options to use to customize resulting objects


OptionsBase

Ƭ OptionsBase: Object

Type declaration

NameTypeDescription
scale?Vector3scale for every resulting object

PointcloudData

Ƭ PointcloudData: Object

The input json object

Type declaration

NameTypeDescription
data{ pointindex?: number[] ; position?: number[] } & FieldDataThe actual data

PointcloudOptions

Ƭ PointcloudOptions: OptionsBase & { pointcloud?: { attributes?: { sizes?: string ; values?: string } ; colorprovider?: ColorProvider | string | Color ; position?: Vector3 ; scale?: Vector3 ; zup?: boolean } }

The options to use to customize resulting objects