Skip to content

Instantly share code, notes, and snippets.

View Roninkoi's full-sized avatar
🐲

Roninkoi Roninkoi

🐲
View GitHub Profile
@Roninkoi
Roninkoi / vtkToObj.py
Last active October 24, 2024 06:04
Convert vtkUnstructuredGrid VTK file to Wavefront OBJ file or STL file
#!/bin/env python3
# Convert vtkUnstructuredGrid VTK file to Wavefront OBJ file or STL file
import sys
import os
import vtk
if len(sys.argv) != 3:
print('Usage: ', sys.argv[0], 'in.vtk out.obj')
sys.exit()