OpenGeodeWeb-Back 5.7.4rc1__py3-none-any.whl → 5.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- opengeodeweb_back/geode_functions.py +6 -0
- opengeodeweb_back/geode_objects.py +22 -1
- opengeodeweb_back/routes/blueprint_routes.py +13 -0
- {opengeodeweb_back-5.7.4rc1.dist-info → opengeodeweb_back-5.8.0.dist-info}/METADATA +15 -15
- {opengeodeweb_back-5.7.4rc1.dist-info → opengeodeweb_back-5.8.0.dist-info}/RECORD +8 -8
- {opengeodeweb_back-5.7.4rc1.dist-info → opengeodeweb_back-5.8.0.dist-info}/WHEEL +1 -1
- {opengeodeweb_back-5.7.4rc1.dist-info → opengeodeweb_back-5.8.0.dist-info}/licenses/LICENSE +0 -0
- {opengeodeweb_back-5.7.4rc1.dist-info → opengeodeweb_back-5.8.0.dist-info}/top_level.txt +0 -0
@@ -101,6 +101,12 @@ def save_viewable(geode_object: str, data, folder_absolute_path: str, id: str):
|
|
101
101
|
)
|
102
102
|
|
103
103
|
|
104
|
+
def save_light_viewable(geode_object: str, data, folder_absolute_path: str, id: str):
|
105
|
+
return geode_object_value(geode_object)["save_light_viewable"](
|
106
|
+
data, os.path.join(folder_absolute_path, id)
|
107
|
+
)
|
108
|
+
|
109
|
+
|
104
110
|
def geode_object_input_extensions(geode_object: str):
|
105
111
|
geode_object_input_list_creators = input_factory(geode_object).list_creators()
|
106
112
|
geode_object_input_list_creators.sort()
|
@@ -40,6 +40,7 @@ def geode_objects_dict():
|
|
40
40
|
"is_3D": True,
|
41
41
|
"is_viewable": True,
|
42
42
|
"save_viewable": g_v.save_viewable_brep,
|
43
|
+
"save_light_viewable": g_v.save_light_viewable_brep,
|
43
44
|
"inspector": og_inspector.inspect_brep,
|
44
45
|
},
|
45
46
|
"CrossSection": {
|
@@ -62,6 +63,7 @@ def geode_objects_dict():
|
|
62
63
|
"is_3D": False,
|
63
64
|
"is_viewable": True,
|
64
65
|
"save_viewable": g_v.save_viewable_cross_section,
|
66
|
+
"save_light_viewable": g_v.save_light_viewable_cross_section,
|
65
67
|
"inspector": og_inspector.inspect_section,
|
66
68
|
},
|
67
69
|
"EdgedCurve2D": {
|
@@ -84,6 +86,7 @@ def geode_objects_dict():
|
|
84
86
|
"is_3D": False,
|
85
87
|
"is_viewable": True,
|
86
88
|
"save_viewable": g_v.save_viewable_edged_curve2D,
|
89
|
+
"save_light_viewable": g_v.save_light_viewable_edged_curve2D,
|
87
90
|
"inspector": og_inspector.inspect_edged_curve2D,
|
88
91
|
},
|
89
92
|
"EdgedCurve3D": {
|
@@ -106,6 +109,7 @@ def geode_objects_dict():
|
|
106
109
|
"is_3D": True,
|
107
110
|
"is_viewable": True,
|
108
111
|
"save_viewable": g_v.save_viewable_edged_curve3D,
|
112
|
+
"save_light_viewable": g_v.save_light_viewable_edged_curve3D,
|
109
113
|
"inspector": og_inspector.inspect_edged_curve3D,
|
110
114
|
},
|
111
115
|
"Graph": {
|
@@ -142,6 +146,7 @@ def geode_objects_dict():
|
|
142
146
|
"is_3D": True,
|
143
147
|
"is_viewable": True,
|
144
148
|
"save_viewable": g_v.save_viewable_hybrid_solid3D,
|
149
|
+
"save_light_viewable": g_v.save_light_viewable_hybrid_solid3D,
|
145
150
|
"inspector": og_inspector.inspect_solid3D,
|
146
151
|
},
|
147
152
|
"ImplicitCrossSection": {
|
@@ -164,6 +169,7 @@ def geode_objects_dict():
|
|
164
169
|
"is_3D": False,
|
165
170
|
"is_viewable": True,
|
166
171
|
"save_viewable": g_v.save_viewable_implicit_cross_section,
|
172
|
+
"save_light_viewable": g_v.save_light_viewable_implicit_cross_section,
|
167
173
|
"inspector": og_inspector.inspect_section,
|
168
174
|
},
|
169
175
|
"ImplicitStructuralModel": {
|
@@ -186,6 +192,7 @@ def geode_objects_dict():
|
|
186
192
|
"is_3D": True,
|
187
193
|
"is_viewable": True,
|
188
194
|
"save_viewable": g_v.save_viewable_implicit_structural_model,
|
195
|
+
"save_light_viewable": g_v.save_light_viewable_implicit_structural_model,
|
189
196
|
"inspector": og_inspector.inspect_brep,
|
190
197
|
},
|
191
198
|
"LightRegularGrid2D": {
|
@@ -201,7 +208,8 @@ def geode_objects_dict():
|
|
201
208
|
"elements": [points, polygons],
|
202
209
|
"is_3D": False,
|
203
210
|
"is_viewable": True,
|
204
|
-
"save_viewable": g_v.
|
211
|
+
"save_viewable": g_v.save_light_viewable_light_regular_grid2D,
|
212
|
+
"save_light_viewable": g_v.save_light_viewable_light_regular_grid2D,
|
205
213
|
},
|
206
214
|
"LightRegularGrid3D": {
|
207
215
|
"class": og.LightRegularGrid3D,
|
@@ -217,6 +225,7 @@ def geode_objects_dict():
|
|
217
225
|
"is_3D": True,
|
218
226
|
"is_viewable": True,
|
219
227
|
"save_viewable": g_v.save_viewable_light_regular_grid3D,
|
228
|
+
"save_light_viewable": g_v.save_light_viewable_light_regular_grid3D,
|
220
229
|
},
|
221
230
|
"PointSet2D": {
|
222
231
|
"class": og.PointSet2D,
|
@@ -238,6 +247,7 @@ def geode_objects_dict():
|
|
238
247
|
"is_3D": False,
|
239
248
|
"is_viewable": True,
|
240
249
|
"save_viewable": g_v.save_viewable_point_set2D,
|
250
|
+
"save_light_viewable": g_v.save_light_viewable_point_set2D,
|
241
251
|
"inspector": og_inspector.inspect_point_set2D,
|
242
252
|
},
|
243
253
|
"PointSet3D": {
|
@@ -260,6 +270,7 @@ def geode_objects_dict():
|
|
260
270
|
"is_3D": True,
|
261
271
|
"is_viewable": True,
|
262
272
|
"save_viewable": g_v.save_viewable_point_set3D,
|
273
|
+
"save_light_viewable": g_v.save_light_viewable_point_set3D,
|
263
274
|
"inspector": og_inspector.inspect_point_set3D,
|
264
275
|
},
|
265
276
|
"PolygonalSurface2D": {
|
@@ -282,6 +293,7 @@ def geode_objects_dict():
|
|
282
293
|
"is_3D": False,
|
283
294
|
"is_viewable": True,
|
284
295
|
"save_viewable": g_v.save_viewable_polygonal_surface2D,
|
296
|
+
"save_light_viewable": g_v.save_light_viewable_polygonal_surface2D,
|
285
297
|
"inspector": og_inspector.inspect_surface2D,
|
286
298
|
},
|
287
299
|
"PolygonalSurface3D": {
|
@@ -304,6 +316,7 @@ def geode_objects_dict():
|
|
304
316
|
"is_3D": True,
|
305
317
|
"is_viewable": True,
|
306
318
|
"save_viewable": g_v.save_viewable_polygonal_surface3D,
|
319
|
+
"save_light_viewable": g_v.save_light_viewable_polygonal_surface3D,
|
307
320
|
"inspector": og_inspector.inspect_surface3D,
|
308
321
|
},
|
309
322
|
"PolyhedralSolid3D": {
|
@@ -326,6 +339,7 @@ def geode_objects_dict():
|
|
326
339
|
"is_3D": True,
|
327
340
|
"is_viewable": True,
|
328
341
|
"save_viewable": g_v.save_viewable_polyhedral_solid3D,
|
342
|
+
"save_light_viewable": g_v.save_light_viewable_polyhedral_solid3D,
|
329
343
|
"inspector": og_inspector.inspect_solid3D,
|
330
344
|
},
|
331
345
|
"RasterImage2D": {
|
@@ -376,6 +390,7 @@ def geode_objects_dict():
|
|
376
390
|
"is_3D": False,
|
377
391
|
"is_viewable": True,
|
378
392
|
"save_viewable": g_v.save_viewable_regular_grid2D,
|
393
|
+
"save_light_viewable": g_v.save_light_viewable_regular_grid2D,
|
379
394
|
},
|
380
395
|
"RegularGrid3D": {
|
381
396
|
"class": og.RegularGrid3D,
|
@@ -397,6 +412,7 @@ def geode_objects_dict():
|
|
397
412
|
"is_3D": True,
|
398
413
|
"is_viewable": True,
|
399
414
|
"save_viewable": g_v.save_viewable_regular_grid3D,
|
415
|
+
"save_light_viewable": g_v.save_light_viewable_regular_grid3D,
|
400
416
|
},
|
401
417
|
"Section": {
|
402
418
|
"class": og.Section,
|
@@ -417,6 +433,7 @@ def geode_objects_dict():
|
|
417
433
|
"is_3D": False,
|
418
434
|
"is_viewable": True,
|
419
435
|
"save_viewable": g_v.save_viewable_section,
|
436
|
+
"save_light_viewable": g_v.save_light_viewable_section,
|
420
437
|
"inspector": og_inspector.inspect_section,
|
421
438
|
},
|
422
439
|
"StructuralModel": {
|
@@ -439,6 +456,7 @@ def geode_objects_dict():
|
|
439
456
|
"is_3D": True,
|
440
457
|
"is_viewable": True,
|
441
458
|
"save_viewable": g_v.save_viewable_structural_model,
|
459
|
+
"save_light_viewable": g_v.save_light_viewable_structural_model,
|
442
460
|
"inspector": og_inspector.inspect_brep,
|
443
461
|
},
|
444
462
|
"TetrahedralSolid3D": {
|
@@ -461,6 +479,7 @@ def geode_objects_dict():
|
|
461
479
|
"is_3D": True,
|
462
480
|
"is_viewable": True,
|
463
481
|
"save_viewable": g_v.save_viewable_tetrahedral_solid3D,
|
482
|
+
"save_light_viewable": g_v.save_light_viewable_tetrahedral_solid3D,
|
464
483
|
"inspector": og_inspector.inspect_solid3D,
|
465
484
|
},
|
466
485
|
"TriangulatedSurface2D": {
|
@@ -483,6 +502,7 @@ def geode_objects_dict():
|
|
483
502
|
"is_3D": False,
|
484
503
|
"is_viewable": True,
|
485
504
|
"save_viewable": g_v.save_viewable_triangulated_surface2D,
|
505
|
+
"save_light_viewable": g_v.save_light_viewable_triangulated_surface2D,
|
486
506
|
"inspector": og_inspector.inspect_surface2D,
|
487
507
|
},
|
488
508
|
"TriangulatedSurface3D": {
|
@@ -505,6 +525,7 @@ def geode_objects_dict():
|
|
505
525
|
"is_3D": True,
|
506
526
|
"is_viewable": True,
|
507
527
|
"save_viewable": g_v.save_viewable_triangulated_surface3D,
|
528
|
+
"save_light_viewable": g_v.save_light_viewable_triangulated_surface3D,
|
508
529
|
"inspector": og_inspector.inspect_surface3D,
|
509
530
|
},
|
510
531
|
"VertexSet": {
|
@@ -260,6 +260,18 @@ def save_viewable_file():
|
|
260
260
|
saved_viewable_file_path = geode_functions.save_viewable(
|
261
261
|
flask.request.json["input_geode_object"], data, DATA_FOLDER_PATH, generated_id
|
262
262
|
)
|
263
|
+
|
264
|
+
saved_light_viewable_file_path = geode_functions.save_light_viewable(
|
265
|
+
flask.request.json["input_geode_object"],
|
266
|
+
data,
|
267
|
+
DATA_FOLDER_PATH,
|
268
|
+
"light_" + generated_id,
|
269
|
+
)
|
270
|
+
|
271
|
+
f = open(saved_light_viewable_file_path, "rb")
|
272
|
+
binary_light_viewable = f.read()
|
273
|
+
f.close()
|
274
|
+
|
263
275
|
geode_functions.save(
|
264
276
|
flask.request.json["input_geode_object"],
|
265
277
|
data,
|
@@ -280,6 +292,7 @@ def save_viewable_file():
|
|
280
292
|
"viewable_file_name": viewable_file_name,
|
281
293
|
"id": generated_id,
|
282
294
|
"object_type": object_type,
|
295
|
+
"binary_light_viewable": str(binary_light_viewable, "utf-8"),
|
283
296
|
},
|
284
297
|
200,
|
285
298
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.8.0
|
4
4
|
Summary: OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem
|
5
5
|
Author-email: Geode-solutions <team-web@geode-solutions.com>
|
6
6
|
Project-URL: Homepage, https://github.com/Geode-solutions/OpenGeodeWeb-Back
|
@@ -15,28 +15,28 @@ Requires-Dist: asgiref==3.8.1
|
|
15
15
|
Requires-Dist: attrs==25.3.0
|
16
16
|
Requires-Dist: blinker==1.9.0
|
17
17
|
Requires-Dist: click==8.1.8
|
18
|
-
Requires-Dist: flask[async]==3.1.
|
18
|
+
Requires-Dist: flask[async]==3.1.1
|
19
19
|
Requires-Dist: flask-cors==5.0.1
|
20
|
-
Requires-Dist: geode-background==9.2.
|
21
|
-
Requires-Dist: geode-common==33.8.
|
22
|
-
Requires-Dist: geode-conversion==6.
|
23
|
-
Requires-Dist: geode-explicit==6.
|
24
|
-
Requires-Dist: geode-implicit==3.
|
25
|
-
Requires-Dist: geode-numerics==6.0
|
26
|
-
Requires-Dist: geode-simplex==9.
|
20
|
+
Requires-Dist: geode-background==9.2.6
|
21
|
+
Requires-Dist: geode-common==33.8.4
|
22
|
+
Requires-Dist: geode-conversion==6.3.0
|
23
|
+
Requires-Dist: geode-explicit==6.2.0
|
24
|
+
Requires-Dist: geode-implicit==3.9.1
|
25
|
+
Requires-Dist: geode-numerics==6.2.0
|
26
|
+
Requires-Dist: geode-simplex==9.4.0
|
27
27
|
Requires-Dist: geode-viewables==3.1.1
|
28
28
|
Requires-Dist: itsdangerous==2.2.0
|
29
29
|
Requires-Dist: jinja2==3.1.6
|
30
30
|
Requires-Dist: jsonschema==4.23.0
|
31
31
|
Requires-Dist: jsonschema-specifications==2025.4.1
|
32
32
|
Requires-Dist: markupsafe==3.0.2
|
33
|
-
Requires-Dist: opengeode-core==15.
|
34
|
-
Requires-Dist: opengeode-geosciences==8.4.
|
35
|
-
Requires-Dist: opengeode-geosciencesio==5.3.
|
36
|
-
Requires-Dist: opengeode-inspector==6.
|
33
|
+
Requires-Dist: opengeode-core==15.19.1
|
34
|
+
Requires-Dist: opengeode-geosciences==8.4.8
|
35
|
+
Requires-Dist: opengeode-geosciencesio==5.3.10
|
36
|
+
Requires-Dist: opengeode-inspector==6.5.0
|
37
37
|
Requires-Dist: opengeode-io==7.2.0
|
38
38
|
Requires-Dist: referencing==0.36.2
|
39
|
-
Requires-Dist: rpds-py==0.
|
39
|
+
Requires-Dist: rpds-py==0.25.0
|
40
40
|
Requires-Dist: typing-extensions==4.13.2
|
41
41
|
Requires-Dist: werkzeug==3.1.3
|
42
42
|
Dynamic: license-file
|
@@ -72,4 +72,4 @@ Detailed changes for each release are documented in the [release notes](https://
|
|
72
72
|
|
73
73
|
[MIT](https://opensource.org/licenses/MIT)
|
74
74
|
|
75
|
-
Copyright (c) 2019 -
|
75
|
+
Copyright (c) 2019 - 2025, Geode-solutions
|
@@ -1,10 +1,10 @@
|
|
1
1
|
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
opengeodeweb_back/app_config.py,sha256=gJfYxDJOa_PYLqjqgdXacp3W3F109uujE9LGPvzHOkc,728
|
3
|
-
opengeodeweb_back/geode_functions.py,sha256=
|
4
|
-
opengeodeweb_back/geode_objects.py,sha256=
|
3
|
+
opengeodeweb_back/geode_functions.py,sha256=EPAM6pw9QwZfoeZjOxycFTKUANw6pdeXr2q3vsnPxt8,9121
|
4
|
+
opengeodeweb_back/geode_objects.py,sha256=13A9FTGugiA9ClSeYkBiCu5QGzm93nm8YJQwiWB4nNw,25995
|
5
5
|
opengeodeweb_back/test_utils.py,sha256=gvRPOzin4nI5TKuB-AFgIxcekTOYM4h7yUYk0tYIZFI,820
|
6
6
|
opengeodeweb_back/utils_functions.py,sha256=NOZq-1oI683vFzXz7rWMzt04kURR3yrkms24jcuYXB0,4057
|
7
|
-
opengeodeweb_back/routes/blueprint_routes.py,sha256
|
7
|
+
opengeodeweb_back/routes/blueprint_routes.py,sha256=dd5ccR6DY4GQGhc9oE3KtLj2YriaVFd1oTVizrnPp1g,14422
|
8
8
|
opengeodeweb_back/routes/models/blueprint_models.py,sha256=F5Rx1UpAII2oz75byx4UWvEWrrwY38xO5rsy6B9_AeM,2321
|
9
9
|
opengeodeweb_back/routes/models/schemas/mesh_components.json,sha256=3hgNqkxKDv691JGgjgMoqI_WgH2m7AtEFfjsOIqAz5Y,295
|
10
10
|
opengeodeweb_back/routes/models/schemas/vtm_component_indices.json,sha256=0km8gzawPj-eFodhaGzAgNZjAEOl4wLy24f_Bs3pBlw,217
|
@@ -22,8 +22,8 @@ opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=pvvEdaC7bNASPMrl
|
|
22
22
|
opengeodeweb_back/routes/schemas/texture_coordinates.json,sha256=m0EqxlvKojXVxK5Csucodu3rq1YMVJPwXJN_Wreb3qc,355
|
23
23
|
opengeodeweb_back/routes/schemas/upload_file.json,sha256=LJ3U3L5ApKuQDVFIpVT_y2alq4HW_suTvZ3HUucNbhg,219
|
24
24
|
opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=bya9KGtTmHFWjD-ur0_0UAY2yf3KkMeuNrk6E1UkjLM,358
|
25
|
-
opengeodeweb_back-5.
|
26
|
-
opengeodeweb_back-5.
|
27
|
-
opengeodeweb_back-5.
|
28
|
-
opengeodeweb_back-5.
|
29
|
-
opengeodeweb_back-5.
|
25
|
+
opengeodeweb_back-5.8.0.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
|
26
|
+
opengeodeweb_back-5.8.0.dist-info/METADATA,sha256=8b6jjSamRdIzT6rwnuMhK7Fd3gLy0bQkFfn-IqfcwD0,3081
|
27
|
+
opengeodeweb_back-5.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
28
|
+
opengeodeweb_back-5.8.0.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
29
|
+
opengeodeweb_back-5.8.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|