Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: has no tolist error
Browse files Browse the repository at this point in the history
  • Loading branch information
uysalibov committed Apr 17, 2024
1 parent f95d1e4 commit 3b1b789
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion marble-sculp/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def polyhedron(self, size: List[int], pos: List[int], data: List[Discontinous]):
"rpId": ObjectId(self.filename),
"polyhedronId": q + 1,
"faceId": fq + 1,
"vertexes": face.tolist(),
"vertexes": face,
"createdAt": datetime.now(),
"updatedAt": datetime.now(),
}
Expand Down
10 changes: 10 additions & 0 deletions marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
newmtl Material.0
Ns 360.000000
Ka 1.000000 1.000000 1.000000
Kd 0.136678 0.77739 0.049213
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ns 0.000000
d 1.000000
illum 9

18 changes: 18 additions & 0 deletions marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
mtllib object.mtl
o Marble0
v 5.0 5.0 5.0
v 15.0 5.0 5.0
v 15.0 15.0 5.0
v 5.0 15.0 5.0
v 5.0 5.0 15.0
v 15.0 5.0 15.0
v 15.0 15.0 15.0
v 5.0 15.0 15.0
s 0
usemtl Material.0
f 1 4 3 2
f 2 3 7 6
f 1 5 8 4
f 5 6 7 8
f 1 2 6 5
f 3 4 8 7

0 comments on commit 3b1b789

Please sign in to comment.