Skip to content

Commit 9c18882

Browse files
committed
add write _glb_with_polycube_anim (.yml) algo
1 parent 47046ff commit 9c18882

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

definitions/algorithms/write_glb.yml

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ labeling: { # case of 'write_glb' applied on a 'labeling' subfolder
2121
path: AUTOMATIC_POLYCUBE,
2222
filename: to_glTF,
2323
command_line: '{mesh} {gltf} labeling={labeling}'
24-
# we also need a wrapper for
25-
# '{mesh} {gltf} labeling={labeling} polycube={polycube}'
2624
},
2725
# no `output_folder` -> transformative algorithm
2826
arguments: {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
description:
2+
Export a 3D model as glTF 2.0
3+
labeling: { # case of 'write_glb_with_polycube_anim' applied on a 'labeling' subfolder
4+
executable: {
5+
path: AUTOMATIC_POLYCUBE,
6+
filename: to_glTF,
7+
command_line: '{mesh} {gltf} labeling={labeling} polycube={polycube}'
8+
},
9+
# no `output_folder` -> transformative algorithm
10+
arguments: {
11+
input_files: {
12+
mesh: SURFACE_MESH_OBJ,
13+
labeling: SURFACE_LABELING_TXT,
14+
polycube: POLYCUBE_SURFACE_MESH_OBJ
15+
},
16+
output_files: {
17+
gltf: POLYCUBE_LABELING_MESH_ANIM_GLB
18+
}
19+
}
20+
}

definitions/data_folder_types/labeling.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ filenames: {
88
SURFACE_LABELING_MESH_GEOGRAM: labeled_surface.geogram, # surface triangle mesh in the Geogram format with the surface labeling as facet attribute (to be visualized with Graphite)
99
POLYCUBE_LABELING_MESH_GEOGRAM: fastbndpolycube.geogram, # same as the polycube surface mesh, but with the labeling as facet attribute and in the Geogram format (to be visualized with Graphite)
1010
LABELING_STATS_JSON: labeling.stats.json, # labeling stats (nb charts/boundaries/corners/turning-points, nb invalid features) computed on SURFACE_LABELING_TXT, as JSON file
11-
LABELED_MESH_GLB: labeled_mesh.glb # SURFACE_MESH_OBJ colored according to SURFACE_LABELING_TXT as glTF 2.0 binary file
11+
LABELED_MESH_GLB: labeled_mesh.glb, # SURFACE_MESH_OBJ colored according to SURFACE_LABELING_TXT as glTF 2.0 binary file
12+
POLYCUBE_LABELING_MESH_ANIM_GLB: fastbndpolycube_anim.glb # colored SURFACE_MESH_OBJ to POLYCUBE_SURFACE_MESH_OBJ deformation animation as glTF 2.0 binary file
1213
}
1314
distinctive_content: [SURFACE_LABELING_TXT]
1415
default_view: surface

0 commit comments

Comments
 (0)