Коммит 4b8f83cc создал по автору Ilya Portnov's avatar Ilya Portnov
Просмотр файлов

Update reference files for export tests.

владелец e638cdb8
{"groups": {}, "update_lists": [], "framed_nodes": {}, "nodes": {"Box": {"height": 100.0, "use_custom_color": true, "color": [0.0, 0.5, 0.5], "location": [0.0, 0.0], "hide": false, "params": {"Divz": 4, "Divx": 1, "Divy": 3, "Size": 1.0299999713897705}, "bl_idname": "SvBoxNode", "label": "", "width": 140.0}}, "export_version": "0.072"} {"nodes": {"Box": {"params": {"Divx": 1, "Divy": 3, "Divz": 4, "Size": 1.0299999713897705}, "bl_idname": "SvBoxNode", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [0.0, 0.0], "color": [0.0, 0.5, 0.5], "use_custom_color": true}}, "groups": {}, "framed_nodes": {}, "update_lists": [], "export_version": "0.079"}
\ No newline at end of file
{"export_version": "0.072", "update_lists": [], "groups": {}, {"nodes": {"Cylinder": {"params": {"Separate": 1, "cap_": 0, "radTop_": 1.0299999713897705, "radBot_": 1.0299999713897705, "vert_": 33, "height_": 2.0299999713897705, "subd_": 1}, "bl_idname": "CylinderNode", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [0.0, 0.0], "color": [0.0, 0.5, 0.5], "use_custom_color": true}}, "groups": {}, "framed_nodes": {}, "update_lists": [], "export_version": "0.079"}
"framed_nodes": {}, "nodes": {"Cylinder": {"use_custom_color": true, \ No newline at end of file
"color": [0.0, 0.5, 0.5], "location": [0.0, 0.0], "params": {"height_":
2.0299999713897705, "Separate": 1, "radTop_": 1.0299999713897705,
"cap_": 0, "subd_": 1, "radBot_": 1.0299999713897705, "vert_": 33},
"bl_idname": "CylinderNode", "label": "", "height": 100.0, "width":
140.0, "hide": false}}}
{"framed_nodes": {}, "groups": {}, "update_lists": [["Mesh Expression", 0, "Viewer Draw", 0], ["Mesh Expression", 2, "Viewer Draw", 1]], "nodes": {"Mesh Expression": {"width": 166.06861877441406, "label": "", "location": [-641.396728515625, 33.163639068603516], "height": 100.0, "geom": "{\n \"faces\": [\n [\n 0,\n 1,\n 3,\n 2\n ]\n ],\n \"edges\": [\n [\n 0,\n 2\n ],\n [\n 0,\n 1\n ],\n [\n 1,\n 3\n ],\n [\n 2,\n 3\n ]\n ],\n \"vertices\": [\n [\n -1.0,\n -1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ],\n [\n 1.0,\n -1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ],\n [\n -1.0,\n 1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ],\n [\n 1.0,\n 1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ]\n ]\n}", "bl_idname": "SvMeshEvalNode", "params": {"filename": "Mesh Expression"}, "hide": false}, "Viewer Draw": {"width": 140.0, "use_custom_color": true, "location": [-426.6385498046875, 77.74425506591797], "height": 100.0, "label": "", "color": [1.0, 0.30000001192092896, 0.0], "bl_idname": "ViewerNode2", "params": {"shading": 1}, "hide": false}}, "export_version": "0.072"} {"nodes": {"Viewer Draw": {"params": {"shading": 1}, "bl_idname": "NodeUndefined", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [-426.6385498046875, 77.74425506591797], "color": [1.0, 0.30000001192092896, 0.0], "use_custom_color": true}, "Mesh Expression": {"geom": "{\n \"faces\": [\n [\n 0,\n 1,\n 3,\n 2\n ]\n ],\n \"edges\": [\n [\n 0,\n 2\n ],\n [\n 0,\n 1\n ],\n [\n 1,\n 3\n ],\n [\n 2,\n 3\n ]\n ],\n \"vertices\": [\n [\n -1.0,\n -1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ],\n [\n 1.0,\n -1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ],\n [\n -1.0,\n 1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ],\n [\n 1.0,\n 1.0,\n 0.0,\n [\n \"Selected\"\n ]\n ]\n ]\n}", "params": {"filename": "Mesh Expression"}, "bl_idname": "SvMeshEvalNode", "height": 100.0, "width": 166.06861877441406, "label": "", "hide": false, "location": [-641.396728515625, 33.163639068603516], "color": [0.800000011920929, 0.0, 0.0], "use_custom_color": true}}, "groups": {}, "framed_nodes": {}, "update_lists": [["Mesh Expression", "Vertices", "Viewer Draw", "vertices"], ["Mesh Expression", "Faces", "Viewer Draw", "edg_pol"]], "export_version": "0.079"}
\ No newline at end of file
{"export_version": "0.072", "framed_nodes": {}, "groups": {}, "update_lists": [["Profile Parametric", 0, "Viewer Draw", 0], ["Profile Parametric", 1, "Viewer Draw", 1]], "nodes": {"Profile Parametric": {"width": 140.0, "profile_sublist_storage": "{\"knots\": [[-1.0, 0.0, 0.0], [-0.5, 0.5, 0.0], [0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0], [-1.5, -0.5, 0.0]], \"knotsnames\": [\"M.0\", \"C.1h1\", \"C.1h2\", \"C.1k\", \"C.2h1\", \"C.2h2\"]}", "path_file": "M -1.0,0.0 \nC -0.5,0.5 0.0,0.0 1.0,0.0 20 0 \nC 2.0,0.0 -1.5,-0.5 -1.0,0.0 20 0 \nL -1.0,0.0 ", "location": [-544.7394409179688, 53.82294464111328], "bl_idname": "SvProfileNodeMK2", "height": 100.0, "params": {"extended_parsing": 1, "filename": "Profile.txt"}, "hide": false, "label": ""}, "Viewer Draw": {"use_custom_color": true, "width": 140.0, "location": [-329.5323791503906, 90.7144775390625], "bl_idname": "ViewerNode2", "height": 100.0, "color": [1.0, 0.30000001192092896, 0.0], "params": {"activate": 1}, "hide": false, "label": ""}}} {"nodes": {"Profile Parametric": {"profile_sublist_storage": "{\"knots\": [[-1.0, 0.0, 0.0], [-0.5, 0.5, 0.0], [0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0], [-1.5, -0.5, 0.0]], \"knotsnames\": [\"M.0\", \"C.1h1\", \"C.1h2\", \"C.1k\", \"C.2h1\", \"C.2h2\"]}", "path_file": "M -1.0,0.0 \nC -0.5,0.5 0.0,0.0 1.0,0.0 20 0 \nC 2.0,0.0 -1.5,-0.5 -1.0,0.0 20 0 \nL -1.0,0.0 ", "params": {"filename": "Profile.txt", "extended_parsing": 1}, "bl_idname": "SvProfileNodeMK2", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [-544.7394409179688, 53.82294464111328], "color": [0.800000011920929, 0.0, 0.0], "use_custom_color": true}, "Viewer Draw": {"params": {"activate": 1}, "bl_idname": "NodeUndefined", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [-329.5323791503906, 90.7144775390625], "color": [1.0, 0.30000001192092896, 0.0], "use_custom_color": true}}, "groups": {}, "framed_nodes": {}, "update_lists": [["Profile Parametric", "Verts", "Viewer Draw", "vertices"], ["Profile Parametric", "Edges", "Viewer Draw", "edg_pol"]], "export_version": "0.079"}
\ No newline at end of file \ No newline at end of file
{"framed_nodes": {}, "update_lists": [], "groups": {}, "nodes": {"nodes": {"Torus": {"params": {"mode": "MAJOR_MINOR", "Separate": 0, "torus_eR": 1.2799999713897705, "torus_R": 1.0299999713897705, "torus_iR": 0.7799999713897705, "torus_r": 0.25, "torus_n1": 33, "torus_n2": 17, "torus_rP": 0.029999999329447746, "torus_sP": 0.029999999329447746, "torus_sT": 1}, "bl_idname": "SvTorusNode", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [0.0, 0.0], "color": [0.0, 0.5, 0.5], "use_custom_color": true}}, "groups": {}, "framed_nodes": {}, "update_lists": [], "export_version": "0.079"}
{"Torus": {"height": 100.0, "width": 140.0, "hide": false, "location": \ No newline at end of file
[0.0, 0.0], "color": [0.0, 0.5, 0.5], "params": {"torus_r": 0.25,
"torus_sP": 0.029999999329447746, "torus_eR": 1.2799999713897705,
"torus_R": 1.0299999713897705, "torus_iR": 0.7799999713897705,
"torus_n1": 33, "torus_n2": 17, "torus_sT": 1, "mode": "MAJOR_MINOR",
"Separate": 0, "torus_rP": 0.029999999329447746}, "label": "",
"use_custom_color": true, "bl_idname": "SvTorusNode"}},
"export_version": "0.072"}
{ {"nodes": {"Cylinder": {"params": {"Separate": 1}, "bl_idname": "CylinderNode", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [-352.99407958984375, 72.6220932006836], "color": [0.800000011920929, 0.0, 0.0], "use_custom_color": true}, "Viewer text mk3": {"params": {}, "bl_idname": "ViewerNodeTextMK3", "height": 100.0, "width": 140.0, "label": "", "hide": false, "location": [-185.2489471435547, 72.90972900390625], "color": [1.0, 0.8993440270423889, 0.9742509722709656], "use_custom_color": true}}, "groups": {}, "framed_nodes": {}, "update_lists": [["Cylinder", "Vertices", "Viewer text mk3", "data0"]], "export_version": "0.079"}
"export_version": "0.072", \ No newline at end of file
"framed_nodes": {},
"groups": {},
"nodes": {
"Cylinder": {
"bl_idname": "CylinderNode",
"color": [
0.9200000166893005,
0.9200000166893005,
0.9200000166893005
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
-352.99407958984375,
72.6220932006836
],
"params": {
"Separate": 1
},
"use_custom_color": true,
"width": 140.0
},
"Viewer text mk3": {
"bl_idname": "ViewerNodeTextMK3",
"color": [
1.0,
0.8993440270423889,
0.9742509722709656
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
-185.2489471435547,
72.90972900390625
],
"params": {},
"use_custom_color": true,
"width": 140.0
}
},
"update_lists": [
[
"Cylinder",
0,
"Viewer text mk3",
0
]
]
}
\ No newline at end of file
...@@ -39,6 +39,7 @@ class MeshExprExportTest(ReferenceTreeTestCase): ...@@ -39,6 +39,7 @@ class MeshExprExportTest(ReferenceTreeTestCase):
def test_mesh_expr_export(self): def test_mesh_expr_export(self):
export_result = create_dict_of_tree(self.tree) export_result = create_dict_of_tree(self.tree)
#self.store_reference_json("mesh.json", export_result)
self.assert_json_equals_file(export_result, "mesh.json") self.assert_json_equals_file(export_result, "mesh.json")
class MonadExportTest(ReferenceTreeTestCase): class MonadExportTest(ReferenceTreeTestCase):
...@@ -65,4 +66,5 @@ class ViewerTextExportTest(ReferenceTreeTestCase): ...@@ -65,4 +66,5 @@ class ViewerTextExportTest(ReferenceTreeTestCase):
def test_textview_expr_export(self): def test_textview_expr_export(self):
export_result = create_dict_of_tree(self.tree) export_result = create_dict_of_tree(self.tree)
#self.store_reference_json("viewer_text.blend.json", export_result)
self.assert_json_equals_file(export_result, "viewer_text.blend.json") self.assert_json_equals_file(export_result, "viewer_text.blend.json")
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать