import vtk

import vtk

import vtk reads a dataset from any of the following VTK file formats. Please note that VTK’s file formats do not include coordinate units information, nor analyte units. The Units property allows you to specify the coordinate units (meters are the default).

  • vtk: legacy format
  • vtm: Multiblock datasets
  • vti: Image data (uniform grids)
  • vtr: Rectilinear grids
  • vtp: Polygons (surfaces)
  • vts: Structured grids
  • vtu: Unstructured grids
  • pvti: Partitioned image data
  • pvtp: Partitioned polygons (surfaces)
  • pvtr: Partitioned rectilinear grids
  • pvts: Partitioned structured grids
  • pvtu: Partitioned unstructured grids

Polyhedral Cells:

By default, polyhedral cells in unstructured grids are imported as they are in the file, so one cell in the file remains one cell in EVS. Locating a point inside a polyhedron is far more expensive than inside a tetrahedron, so if the model is slow to probe, interpolate, or pick, turn on Split Polyhedral Cells. Splitting trades that cost for a much higher cell count, with each cell’s data repeated across the tetrahedra it becomes, and it cannot be undone later in the network.

Ports

DirectionNameTypeDescription
OutputOutputFieldA field containing VTK file contents.
OutputOutput ObjectRenderableA renderable object displaying the VTK file contents.

Properties

PropertyTypeDescription
FilenameFileThe VTK file to read.
Use Application OriginBooleanWhen true, the module applies the Application Origin. When false, data is left in internal model space. Turn off when loading data intended for use as a glyph or similar.
Split Polyhedral CellsBooleanSplits each polyhedral cell into tetrahedra as the file is read. Off by default. Turn on if the model is slow to probe, interpolate, or pick. Splitting cannot be undone later in the network.
ExecuteButtonForces the module to run. Available once a file has been selected.
UnitsStringThe coordinate units. The default is m (meters).