save
This commit is contained in:
+1
-10
@@ -171,17 +171,8 @@ def plot_upscaling(uv_low, uv_high, uv_mask_low, uv_mask_high, faces, color, mas
|
||||
|
||||
print()
|
||||
|
||||
from stl import mesh as mesh_stl
|
||||
|
||||
def save_stl(file, mesh, faces):
|
||||
obj = mesh_stl.Mesh(np.zeros(faces.shape[0], dtype=mesh_stl.Mesh.dtype))
|
||||
for i, f in enumerate(faces):
|
||||
for j in range(3):
|
||||
obj.vectors[i][j] = mesh[f[j],:]
|
||||
|
||||
obj.save(file)
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == '__main__':
|
||||
|
||||
uv2mesh = UV2Mesh()
|
||||
smpl = SMPL()
|
||||
|
||||
Reference in New Issue
Block a user