Spaces:
Sleeping
Sleeping
update1.1
Browse files
app.py
CHANGED
|
@@ -150,6 +150,9 @@ async def generate_model(request: GenerateRequest):
|
|
| 150 |
for x, y in coords:
|
| 151 |
flattened_coords.extend([x, 0, y])
|
| 152 |
|
|
|
|
|
|
|
|
|
|
| 153 |
initial_shape = pyprt.InitialShape(flattened_coords, indices, face_counts)
|
| 154 |
|
| 155 |
# Setup Model Generator
|
|
|
|
| 150 |
for x, y in coords:
|
| 151 |
flattened_coords.extend([x, 0, y])
|
| 152 |
|
| 153 |
+
indices = list(range(len(coords)))
|
| 154 |
+
face_counts = [len(coords)]
|
| 155 |
+
|
| 156 |
initial_shape = pyprt.InitialShape(flattened_coords, indices, face_counts)
|
| 157 |
|
| 158 |
# Setup Model Generator
|