File: cgalstlsanitytest

package info (click to toggle)
openscad 2021.01-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 35,608 kB
  • sloc: cpp: 53,187; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 114
file content (14 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python3

import re, sys, subprocess, os
from validatestl import validateSTL

stlfile = sys.argv[3] + '.stl'

subprocess.check_call([sys.argv[2], sys.argv[1], '-o', stlfile])

ret = validateSTL(stlfile)
os.unlink(stlfile)

if not ret:
    sys.exit(1)