diff --git a/marble-sculp/scene.py b/marble-sculp/scene.py index 6b9b1ee..349c824 100644 --- a/marble-sculp/scene.py +++ b/marble-sculp/scene.py @@ -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(), } diff --git a/marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.mtl b/marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.mtl new file mode 100644 index 0000000..e911333 --- /dev/null +++ b/marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.mtl @@ -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 + diff --git a/marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.obj b/marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.obj new file mode 100644 index 0000000..3dc8b8a --- /dev/null +++ b/marble-sculp/static/poly/65b356d99f5a66aefdce5ef5.obj @@ -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