Entries from 2017-09-01 to 1 month
a small modification of the last snippet for C++. import bpy import bmesh def up(lineNum, v, f): for e in v.link_edges: ov = e.other_vert(v) if ov not in verts: verts.append(ov) lineNum = up(lineNum, ov, f) if lineNum%10 == 0: f.write("// …
After executing main(), you can easily make use of the output on gnuplot. e.g. gnuplot> splot "file.dat" import bpy import bmesh def up(v, f): for e in v.link_edges: ov = e.other_vert(v) if ov not in verts: verts.append(ov) up(ov, f) f.wri…