convert-pointset¶
Synopsis¶
convert-pointset <input>... <output> [options]
Description¶
Convert point set from one (file) format to another.
If more than one input point sets is given, all input point sets are appended into a single point set before conversion. When all input point sets are of type vtkPolyData, the output point set is of type vtkPolyData. If more than one input point set is given and not all are of type vtkPolyData, the output point set is of type vtkUnstructuredGrid.
The current implementation can only convert between different point set file formats based on the file name extension. Besides the common formats supported by VTK, it can also read/write BrainSuite .dfs files and write a Piecewise Linear Complex (PLC) B-Rep description in the TetGen formats .poly and .smesh. It also supports the Object File Format (.off) used by the CGAL library.
Arguments¶
-
input
¶
Input point set file (.vtk, .vtp, .vtu, .stl, .ply, .off, .dfs, .obj).
-
output
¶
Output point set file (.vtk, .vtp, .vtu, .stl, .ply, .off, .dfs, .node, .poly, .smesh, .gii, .csv, .tsv, .txt).
Command options¶
-
-merge
[<tol>]
¶ Merge points of non-polygonal input point sets. When only vtkPolyData are merged, the maximum distance between points to be merged can be optionally given as argument. (default: off)
-
-holes
¶
Add a point inside the input surface meshes, except off the first input mesh, to the hole list of the output .poly or .smesh file. (default: no holes)
-
-nocelldata
¶
Do not write cell data to output file. (default: off)
-
-nopointdata
¶
Do not write point data to output file. (default: off)
-
-nopoints
¶
Do not write point coordinates to output .csv, .tsv, or .txt file. This option is implicit when the output file name ends with .attr.csv, .attr.tsv, or .attr.txt (default: off)
-
-ascii
¶
Write legacy VTK files encoded in ASCII. (default: off)
-
-binary
¶
Write legacy VTK files in binary form. (default: on)
-
-compress
¶
Compress XML VTK files. (default: on)
-
-nocompress
¶
Do not compress XML VTK files. (default: off)
Standard options¶
-
-v
,
-verbose
[n]
¶ Increase/Set verbosity of output messages. (default: 0)
-
-debug
[level]
¶ Increase/Set debug level for output of intermediate results. (default: 0)
-
-version
[major.minor]
¶ Print version and exit or set version to emulate.
-
-revision
¶
Print revision (or version) number only and exit.
-
-h
,
-help
¶
Print help and exit.