Skip to content

Instantly share code, notes, and snippets.

@portnov
Created April 12, 2024 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save portnov/755743cedbfe959c249f60e0efb04a15 to your computer and use it in GitHub Desktop.
Save portnov/755743cedbfe959c249f60e0efb04a15 to your computer and use it in GitHub Desktop.
Sverchok.v1.3.0-alpha | Blender.3.4.1 | NodeTree | 2024.04.12 | 22:02 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"A Number": {
"attributes": {
"location": [
155.0430908203125,
146.80162048339844
],
"label": "r"
},
"properties": {
"float_": 2.0
},
"inputs": {
"Float": {
"bl_idname": "SvStringsSocket",
"name": "Float",
"properties": {
"prop_name": "float_"
}
}
},
"outputs": {
"Float": {
"bl_idname": "SvStringsSocket",
"name": "Float",
"properties": {
"custom_draw": "mode_custom_draw"
}
}
},
"bl_idname": "SvNumberNode"
},
"Surface Formula": {
"attributes": {
"location": [
355.0430908203125,
146.80162048339844
],
"width": 290.5959777832031
},
"properties": {
"formula1": "(r + cos(u/2)*sin(v) - sin(u/2)*sin(2*v))*cos(u)",
"formula2": "(r + cos(u/2)*sin(v) - sin(u/2)*sin(2*v))*sin(u)",
"formula3": "sin(u/2)*sin(v) + cos(u/2)*sin(2*v)"
},
"inputs": {
"UMin": {
"bl_idname": "SvStringsSocket",
"name": "UMin",
"properties": {
"prop_name": "u_min"
}
},
"UMax": {
"bl_idname": "SvStringsSocket",
"name": "UMax",
"properties": {
"prop_name": "u_max"
}
},
"VMin": {
"bl_idname": "SvStringsSocket",
"name": "VMin",
"properties": {
"prop_name": "v_min"
}
},
"VMax": {
"bl_idname": "SvStringsSocket",
"name": "VMax",
"properties": {
"prop_name": "v_max"
}
},
"r": {
"bl_idname": "SvStringsSocket",
"name": "r"
}
},
"outputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
}
},
"bl_idname": "SvExSurfaceFormulaNode"
},
"Evaluate Surface": {
"attributes": {
"location": [
705.7007446289062,
164.5275115966797
]
},
"properties": {
"samples_u": 177,
"samples_v": 175
},
"inputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
},
"U": {
"bl_idname": "SvStringsSocket",
"name": "U",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "u_value"
}
},
"V": {
"bl_idname": "SvStringsSocket",
"name": "V",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v_value"
}
},
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"attributes": {
"hide": true
}
},
"SamplesU": {
"bl_idname": "SvStringsSocket",
"name": "SamplesU",
"properties": {
"prop_name": "samples_u"
}
},
"SamplesV": {
"bl_idname": "SvStringsSocket",
"name": "SamplesV",
"properties": {
"prop_name": "samples_v"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"bl_idname": "SvExEvalSurfaceNode"
},
"Mesh Viewer": {
"attributes": {
"location": [
905.7007446289062,
164.5275115966797
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"is_smooth_mesh": true
},
"inputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices"
},
"edges": {
"bl_idname": "SvStringsSocket",
"name": "edges",
"properties": {
"custom_draw": "draw_edges_props"
}
},
"faces": {
"bl_idname": "SvStringsSocket",
"name": "faces"
},
"material_idx": {
"bl_idname": "SvStringsSocket",
"name": "material_idx"
},
"matrix": {
"bl_idname": "SvMatrixSocket",
"name": "matrix",
"properties": {
"custom_draw": "draw_matrix_props"
}
}
},
"outputs": {
"Objects": {
"bl_idname": "SvObjectSocket",
"name": "Objects"
}
},
"bl_idname": "SvMeshViewer"
}
},
"links": [
{
"from_node": "A Number",
"from_socket": "Float",
"to_node": "Surface Formula",
"to_socket": "r"
},
{
"from_node": "Surface Formula",
"from_socket": "Surface",
"to_node": "Evaluate Surface",
"to_socket": "Surface"
},
{
"from_node": "Evaluate Surface",
"from_socket": "Vertices",
"to_node": "Mesh Viewer",
"to_socket": "vertices"
},
{
"from_node": "Evaluate Surface",
"from_socket": "Edges",
"to_node": "Mesh Viewer",
"to_socket": "edges"
},
{
"from_node": "Evaluate Surface",
"from_socket": "Faces",
"to_node": "Mesh Viewer",
"to_socket": "faces"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment