API / geotoolkit3d / data / loader / vtk / VTKFactory / VTKFactory
vtk.VTKFactory.VTKFactory
Type Aliases
Type Aliases
Ƭ Data: Object
The input json object
| Name | Type | Description |
|---|---|---|
data | { cells?: number[][] ; index?: number[] ; lineindex?: number[][] ; pointindex?: number[] ; polylineindex?: number[] ; position?: number[] } & FieldData | The 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? | number | The point count in the dataset |
metadata.dataset.spacing? | number[] | - |
metadata.dataset.type | string | The dataset type (UNSTRUCTURED_GRID, etc) |
metadata.header | string | The header/comment at the top of the file |
metadata.title | string | The title/name of the dataset |
metadata.type | string | The type of the dataset (ASCII) |
Ƭ FieldData: Record<string, { arrays?: { name: string ; stride: number ; values: number[] }[] ; name: string ; type: string ; values?: number[] }>
The fielddata object if any is present
Ƭ LinesData: Object
The input json object
| Name | Type | Description |
|---|---|---|
data | { lineindex?: number[][] ; position?: number[] } | The actual data |
data.lineindex? | number[][] | The indices for lines (if any) |
data.position? | number[] | The vertices (XYZ) |
Ƭ LinesOptions: OptionsBase & { line?: { material?: Material ; position?: Vector3 ; scale?: Vector3 ; zup?: boolean } }
The options to use to customize resulting objects
Ƭ MeshData: Object
The input json object
| Name | Type | Description |
|---|---|---|
data | { index?: number[] ; position?: number[] } & FieldData | The actual data |
Ƭ MeshOptions: OptionsBase & { mesh?: { material?: Material ; position?: Vector3 ; scale?: Vector3 ; zup?: boolean } }
The options to use to customize resulting objects
Ƭ Options: MeshOptions & LinesOptions & PointcloudData
The options to use to customize resulting objects
Ƭ OptionsBase: Object
| Name | Type | Description |
|---|---|---|
scale? | Vector3 | scale for every resulting object |
Ƭ PointcloudData: Object
The input json object
| Name | Type | Description |
|---|---|---|
data | { pointindex?: number[] ; position?: number[] } & FieldData | The actual data |
Ƭ 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