write_vtk
builtin
¶
write_vtk(path, data, *, ascii=False)
Writes a PointSet, Polylines, Mesh or BlockModel as a VTK XML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
The |
required |
data
|
(PointSet, Polylines, Mesh or BlockModel)
|
Points become vertex cells with their columns as point data. Each
polyline part becomes a polyline cell, closed parts repeating their
first point, with the feature columns and a |
required |
ascii
|
bool
|
Write ASCII arrays instead of appended raw binary. |
False
|
Raises:
| Type | Description |
|---|---|
InvalidInput
|
For text columns, a BlockModel in a |
Used in