Adding meshes and materials

This commit is contained in:
Abhishek Joshi
2023-09-14 17:17:54 -05:00
parent a9efd13e44
commit 8b9ffdc441
4 changed files with 76 additions and 8 deletions
+9 -1
View File
@@ -5,4 +5,12 @@ def get_mesh_ranges(nmesh, arr):
for i in range(nmesh):
running_sum += arr[i]
mesh_ranges.append(running_sum)
return mesh_ranges
return mesh_ranges
def get_facetexcoord_ranges(nmesh, arr):
facetexcoords_ranges = [0]
running_sum = 0
for i in range(nmesh):
running_sum += arr[i] * 3
facetexcoords_ranges.append(running_sum)
return facetexcoords_ranges