@@ -290,14 +290,8 @@ def create_point():
290290)
291291def texture_coordinates ():
292292 utils_functions .validate_request (flask .request , texture_coordinates_json )
293- data = geode_functions .load_data (
294- flask .request .json ["input_geode_object" ],
295- flask .request .json ["id" ],
296- flask .request .json ["filename" ],
297- )
298-
293+ data = geode_functions .load_data_by_id (flask .request .json ["id" ])
299294 texture_coordinates = data .texture_manager ().texture_names ()
300-
301295 return flask .make_response ({"texture_coordinates" : texture_coordinates }, 200 )
302296
303297
@@ -314,14 +308,8 @@ def texture_coordinates():
314308)
315309def vertex_attribute_names ():
316310 utils_functions .validate_request (flask .request , vertex_attribute_names_json )
317- data = geode_functions .load_data (
318- flask .request .json ["input_geode_object" ],
319- flask .request .json ["id" ],
320- flask .request .json ["filename" ],
321- )
322-
311+ data = geode_functions .load_data_by_id (flask .request .json ["id" ])
323312 vertex_attribute_names = data .vertex_attribute_manager ().attribute_names ()
324-
325313 return flask .make_response (
326314 {
327315 "vertex_attribute_names" : vertex_attribute_names ,
@@ -343,14 +331,8 @@ def vertex_attribute_names():
343331)
344332def polygon_attribute_names ():
345333 utils_functions .validate_request (flask .request , polygon_attribute_names_json )
346- data = geode_functions .load_data (
347- flask .request .json ["input_geode_object" ],
348- flask .request .json ["id" ],
349- flask .request .json ["filename" ],
350- )
351-
334+ data = geode_functions .load_data_by_id (flask .request .json ["id" ])
352335 polygon_attribute_names = data .polygon_attribute_manager ().attribute_names ()
353-
354336 return flask .make_response (
355337 {
356338 "polygon_attribute_names" : polygon_attribute_names ,
@@ -372,14 +354,8 @@ def polygon_attribute_names():
372354)
373355def polyhedron_attribute_names ():
374356 utils_functions .validate_request (flask .request , polyhedron_attribute_names_json )
375- data = geode_functions .load_data (
376- flask .request .json ["input_geode_object" ],
377- flask .request .json ["id" ],
378- flask .request .json ["filename" ],
379- )
380-
357+ data = geode_functions .load_data_by_id (flask .request .json ["id" ])
381358 polyhedron_attribute_names = data .polyhedron_attribute_manager ().attribute_names ()
382-
383359 return flask .make_response (
384360 {
385361 "polyhedron_attribute_names" : polyhedron_attribute_names ,
0 commit comments