from ladybug_geometry.geometry3d import Point3D, Vector3D
from honeybee_vtk.to_vtk import create_arrow
points = [Point3D(0, 0, 0), Point3D(1, 1, 0), Point3D(1, 0, 0)]
vectors = [Vector3D(0, 0, 1), Vector3D(1, 1, 1), Vector3D(2, 0, 0)]
arrows = create_arrow(points, vectors)
arrows.to_vtk('.', 'arrows')
I copy this code to vs code. Run it with the error
Then I changed the code, it returned a new error
arrows.to_vtk('.', 'arrows','vtk')
According to the docs of honeybee_vtk, it gived me the description
from ladybug_geometry.geometry3d import Point3D, Vector3D from honeybee_vtk.to_vtk import create_arrow
points = [Point3D(0, 0, 0), Point3D(1, 1, 0), Point3D(1, 0, 0)] vectors = [Vector3D(0, 0, 1), Vector3D(1, 1, 1), Vector3D(2, 0, 0)] arrows = create_arrow(points, vectors) arrows.to_vtk('.', 'arrows') I copy this code to vs code. Run it with the error Then I changed the code, it returned a new error arrows.to_vtk('.', 'arrows','vtk') According to the docs of honeybee_vtk, it gived me the description
https://www.ladybug.tools/honeybee-vtk/docs/honeybee_vtk.types.html?highlight=writer#honeybee_vtk.types.VTKWriters I don‘t know how to fix this error.