Skip to content

Instantly share code, notes, and snippets.

View drlukeparry's full-sized avatar

Dr Luke Parry drlukeparry

  • Centre for Additive Manufacturing, University of Nottingham
  • Nottingham
  • 15:51 (UTC)
View GitHub Profile
@drlukeparry
drlukeparry / vtkExporter.py
Created May 14, 2023 17:00
PySLM VTK Exporter
from typing import Dict, List, Tuple,
import struct
import numpy as np
import pyslm
import pyslm.geometry
from pyslm import hatching as hatching
from pyslm import geometry as slm
"""
Copyright (c) 2023 Luke Parry <ukeparry.uk>. All rights reserved. l
This work is licensed under the terms of the MIT license.
For a copy, see <https://opensource.org/licenses/MIT>.
"""
from matplotlib import pyplot as plt
import numpy as np