diff --git a/vpype/io.py b/vpype/io.py index 7bf0e97e..d1e3ded1 100644 --- a/vpype/io.py +++ b/vpype/io.py @@ -336,7 +336,8 @@ def _process_path(path): line = seg.npoint(np.linspace(0, 1, step)) if simplify: - line = np.array(LineString(line).simplify(tolerance=quantization)) + line = LineString(line).simplify(tolerance=quantization) + line = np.array(line.coords, dtype=float) line = line.view(dtype=complex).reshape(len(line))