| Quote: |
| import subprocess
NvTriStripPath = "C:/NvTriStripper-cli.exe" vert_indices = [ 0, 1, 2, 1, 3, 2 ] # Stripifying mesh NvTriStrip = subprocess.Popen([NvTriStripPath], stdin = subprocess.PIPE, stdout = subprocess.PIPE) for vi in vert_indices: NvTriStrip.stdin.write(str(vi).encode() + " ".encode()) NvTriStrip.stdin.write("-1\n".encode()) print("STEP 1") mashit = NvTriStrip.stdout.readline() print("STEP 2") stripcount = int(mashit) if stripcount < 1: raise Exception("NvTriStrip returned 0 strips. Aborting") nativelist = [] striptype = int(NvTriStrip.stdout.readline()) nativelength = int(NvTriStrip.stdout.readline()) nativelist.extend(map(int, NvTriStrip.stdout.readline().split())) print(nativelist) |
| Code: |
| STEP 1
STEP 2 [0, 1, 2, 3] |
| Code: |
| STEP_1 |