10.163. Write Vtk Structured Points

Group (Subgroup)

I/O Filters

Description

This filter writes the selected data to a VTK legacy file. A VTK legacy file is the older, human-readable file format used by the Visualization Toolkit (VTK); it can be opened directly by common scientific visualization tools such as ParaView and VisIt.

The file is written with a dataset type of STRUCTURED_POINTS. A structured-points dataset describes a regular grid with uniform spacing along each axis: the grid is fully defined by its origin, its per-axis spacing, and its dimensions, so no explicit coordinate arrays are stored. This makes it the most compact VTK form for image data.

The user selects which Cell Data Arrays from the Image Geometry are written into the file.

Note: This filter only writes cell data to the VTK file.

When to use this filter vs Write Vtk Rectilinear Grid

Use Write Vtk Structured Points when the Image Geometry has uniform spacing (the usual case) and a compact file is desired. Use Write Vtk Rectilinear Grid when the output must store explicit per-axis coordinate arrays (for example, to interoperate with a tool that expects a RECTILINEAR_GRID dataset).

The Write Binary File parameter controls the on-disk encoding. When false (the default), the data is written as plain ASCII text, which is portable and easy to inspect but larger and slower to read. When true, the data is written in VTK’s binary form, producing smaller files that load faster.

Required Input Sources

  • Image Geometry – the geometry whose origin, spacing, and dimensions define the grid.

  • Cell Data Array(s) to write – any per-cell arrays on the Image Geometry. A common choice is a FeatureIds array produced by Segment Features (Scalar).

Filter Parameters

Parameter Name

Parameter Type

Parameter Notes

Description

Output File

FileSystemPath

The output vtk file in which the geometry data is written

Write Binary File

Bool

Whether or not to write the vtk file in binary

Image Geometry

Geometry Selection

Image

The path to the image geometry in which to write out to the vtk file

Cell Data Arrays to Write

MultiArraySelection

The paths to the cell data arrays to write out with the geometry

Example Pipelines

DREAM3D-NX Help

If you need help, need to file a bug report or want to request a new feature, please head over to the DREAM3DNX-Issues GitHub site where the community of DREAM3D-NX users can help answer your questions.