Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "export_version": "0.072",
- "framed_nodes": {},
- "groups": {},
- "nodes": {
- "Centers polygons 3": {
- "bl_idname": "CentersPolsNodeMK3",
- "height": 100.0,
- "hide": false,
- "label": "",
- "location": [
- 775.289306640625,
- 36.70048904418945
- ],
- "params": {
- "Separate": 0
- },
- "width": 140.0
- },
- "Contour 2D": {
- "bl_idname": "SvContourNode",
- "height": 100.0,
- "hide": false,
- "label": "",
- "location": [
- 1.1472625732421875,
- 31.139894485473633
- ],
- "params": {
- "intersecction_handle": "Circular",
- "list_match": "Long Repeat",
- "mask_t": 0.014809999614953995,
- "modeI": "Constant",
- "rad_": 0.9700003266334534,
- "rm_doubles": 0.014100000262260437,
- "vert_": 4
- },
- "width": 140.0
- },
- "List Join": {
- "bl_idname": "ListJoinNode",
- "height": 100.0,
- "hide": true,
- "label": "",
- "location": [
- -242.9652862548828,
- -135.91104125976562
- ],
- "params": {
- "JoinLevel": 2
- },
- "width": 140.0
- },
- "Mesh Beautify": {
- "bl_idname": "SvMeshBeautify",
- "height": 100.0,
- "hide": false,
- "label": "",
- "location": [
- 583.3472290039062,
- 5.656371116638184
- ],
- "params": {},
- "width": 140.0
- },
- "Planar edgenet to polygons": {
- "bl_idname": "SvPlanarEdgenetToPolygons",
- "height": 100.0,
- "hide": false,
- "label": "",
- "location": [
- 205.5352020263672,
- 28.853782653808594
- ],
- "params": {},
- "width": 140.0
- },
- "Scripted Node Lite": {
- "bl_idname": "SvScriptNodeLite",
- "color": [
- 0.0,
- 0.800000011920929,
- 0.949999988079071
- ],
- "height": 100.0,
- "hide": false,
- "label": "",
- "location": [
- 969.872314453125,
- -48.04757308959961
- ],
- "params": {
- "inject_params": 0,
- "injected_state": 0,
- "script_name": "test",
- "script_str": "'''\nin verts_in v\nin polygons_in s\nout edges s\n'''\n\ndef get_edges(pol):\n edges = []\n for i1, i2 in zip(pol, pol[1:] + [pol[0]]):\n if i2 > i1:\n edges.append((i1, i2))\n else:\n edges.append((i2, i1))\n return edges\n\ndef create_edges(verts, polys):\n neighbs = dict()\n out_edges = []\n for i, pol in enumerate(polys):\n print('pol -', pol)\n for edg in get_edges(pol):\n print('adfasdfasdf - ', edg)\n if edg not in neighbs:\n neighbs[edg] = i\n else:\n out_edges.append((i, neighbs[edg]))\n del neighbs[edg]\n return out_edges\n\ndef main(verts_in, polygons_in):\n out_edges = []\n for obj_v, obj_p in zip(verts_in, polygons_in):\n print('obj_p -', obj_p)\n out_edges.append(create_edges(obj_v, obj_p))\n return out_edges\n\nedges = main(verts_in, polygons_in)\n \n \n "
- },
- "snlite_ui": [],
- "use_custom_color": true,
- "width": 140.0
- },
- "Triangulate mesh (heavy)": {
- "bl_idname": "SvHeavyTriangulateNode",
- "height": 100.0,
- "hide": false,
- "label": "",
- "location": [
- 397.987548828125,
- 26.913307189941406
- ],
- "params": {},
- "width": 140.0
- },
- "UV Connection": {
- "bl_idname": "LineConnectNodeMK2",
- "height": 100.0,
- "hide": true,
- "label": "",
- "location": [
- -128.65887451171875,
- -136.441650390625
- ],
- "params": {
- "polygons": "Edges"
- },
- "width": 140.0
- },
- "Vector in": {
- "bl_idname": "GenVectorsNode",
- "height": 100.0,
- "hide": true,
- "label": "",
- "location": [
- -419.79266357421875,
- -42.68465042114258
- ],
- "params": {
- "x_": -1.0799936056137085,
- "y_": 0.07602101564407349,
- "z_": 1.0079692602157593
- },
- "width": 100.0
- },
- "Vector in.001": {
- "bl_idname": "GenVectorsNode",
- "height": 100.0,
- "hide": true,
- "label": "",
- "location": [
- -426.9132080078125,
- -82.46916961669922
- ],
- "params": {
- "x_": 4.148131370544434,
- "y_": 2.6487181186676025,
- "z_": 1.0079693794250488
- },
- "width": 100.0
- },
- "Vector in.002": {
- "bl_idname": "GenVectorsNode",
- "height": 100.0,
- "hide": true,
- "label": "",
- "location": [
- -433.4403991699219,
- -127.59786987304688
- ],
- "params": {
- "x_": 8.907119750976562,
- "y_": -2.665886878967285,
- "z_": 1.0079693794250488
- },
- "width": 100.0
- },
- "Vector in.003": {
- "bl_idname": "GenVectorsNode",
- "height": 100.0,
- "hide": true,
- "label": "",
- "location": [
- -435.81396484375,
- -157.28785705566406
- ],
- "params": {
- "x_": 22.45178985595703,
- "y_": 5.785843849182129,
- "z_": 1.0079693794250488
- },
- "width": 100.0
- },
- "Viewer Draw": {
- "bl_idname": "ViewerNode2",
- "color": [
- 1.0,
- 0.30000001192092896,
- 0.0
- ],
- "height": 100.0,
- "hide": true,
- "label": "",
- "location": [
- 651.2698974609375,
- 39.16374588012695
- ],
- "params": {
- "activate": 1,
- "display_faces": 0,
- "display_verts": 0,
- "edge_colors": [
- 0.21791701018810272,
- 0.3239567279815674,
- 0.38553833961486816
- ]
- },
- "use_custom_color": true,
- "width": 140.0
- },
- "Viewer Draw.002": {
- "bl_idname": "ViewerNode2",
- "color": [
- 1.0,
- 0.30000001192092896,
- 0.0
- ],
- "height": 100.0,
- "hide": false,
- "label": "",
- "location": [
- 1192.2662353515625,
- 116.1475830078125
- ],
- "params": {
- "activate": 1
- },
- "use_custom_color": true,
- "width": 140.0
- }
- },
- "update_lists": [
- [
- "Vector in",
- 0,
- "List Join",
- 0
- ],
- [
- "Vector in.001",
- 0,
- "List Join",
- 1
- ],
- [
- "Vector in.002",
- 0,
- "List Join",
- 2
- ],
- [
- "Vector in.003",
- 0,
- "List Join",
- 3
- ],
- [
- "List Join",
- 0,
- "UV Connection",
- 0
- ],
- [
- "UV Connection",
- 0,
- "Contour 2D",
- 2
- ],
- [
- "UV Connection",
- 1,
- "Contour 2D",
- 3
- ],
- [
- "Contour 2D",
- 0,
- "Planar edgenet to polygons",
- 0
- ],
- [
- "Contour 2D",
- 1,
- "Planar edgenet to polygons",
- 1
- ],
- [
- "Planar edgenet to polygons",
- 0,
- "Triangulate mesh (heavy)",
- 0
- ],
- [
- "Planar edgenet to polygons",
- 1,
- "Triangulate mesh (heavy)",
- 1
- ],
- [
- "Triangulate mesh (heavy)",
- 0,
- "Mesh Beautify",
- 0
- ],
- [
- "Triangulate mesh (heavy)",
- 2,
- "Mesh Beautify",
- 1
- ],
- [
- "Mesh Beautify",
- 0,
- "Scripted Node Lite",
- 0
- ],
- [
- "Mesh Beautify",
- 1,
- "Scripted Node Lite",
- 1
- ],
- [
- "Mesh Beautify",
- 0,
- "Centers polygons 3",
- 0
- ],
- [
- "Mesh Beautify",
- 1,
- "Centers polygons 3",
- 1
- ],
- [
- "Centers polygons 3",
- 2,
- "Viewer Draw.002",
- 0
- ],
- [
- "Scripted Node Lite",
- 0,
- "Viewer Draw.002",
- 1
- ],
- [
- "Mesh Beautify",
- 0,
- "Viewer Draw",
- 0
- ],
- [
- "Mesh Beautify",
- 1,
- "Viewer Draw",
- 1
- ]
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement