Skip to content

Instantly share code, notes, and snippets.

@portnov
Created September 24, 2025 18:17
Show Gist options
  • Select an option

  • Save portnov/62f6ae0daf0029dd5000b47f9788e50a to your computer and use it in GitHub Desktop.

Select an option

Save portnov/62f6ae0daf0029dd5000b47f9788e50a to your computer and use it in GitHub Desktop.
Sverchok.v1.3.0 | Blender.4.4.0 | NodeTree | 2025.09.24 | 23:17 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Viewer Draw.001": {
"attributes": {
"location": [
-360.45001220703125,
16.051284790039062
],
"color": [
0.8389999866485596,
0.36500000953674316,
0.054999999701976776
],
"use_custom_color": true
},
"properties": {
"edge_color": [
0.0,
0.0011443882249295712,
0.14550375938415527,
1.0
],
"selected_draw_mode": "facet",
"vector_color": [
0.0,
0.0012138064485043287,
0.1441308856010437,
1.0
],
"polygon_color": [
0.42417261004447937,
0.654518187046051,
0.8100000023841858,
1.0
],
"custom_fragment_shader": "\n uniform float brightness;\n\n in vec3 pos;\n\n void main()\n {\n gl_FragColor = vec4(pos * brightness, 1.0);\n }\n",
"custom_vertex_shader": "\n uniform mat4 viewProjectionMatrix;\n\n in vec3 position;\n out vec3 pos;\n\n void main()\n {\n pos = position;\n gl_Position = viewProjectionMatrix * vec4(position, 1.0f);\n }\n",
"draw_gl_polygonoffset": true,
"activate": false
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Vector Color": {
"bl_idname": "SvColorSocket",
"name": "Vector Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "vector_color"
}
},
"Edge Color": {
"bl_idname": "SvColorSocket",
"name": "Edge Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "edge_color"
}
},
"Polygon Color": {
"bl_idname": "SvColorSocket",
"name": "Polygon Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "polygon_color"
}
},
"attrs": {
"bl_idname": "SvStringsSocket",
"name": "attrs",
"attributes": {
"hide": true
},
"properties": {
"quick_link_to_node": "SvVDAttrsNodeMk2"
}
}
},
"bl_idname": "SvViewerDrawMk4"
},
"Populate Mesh": {
"attributes": {
"location": [
-349.7933349609375,
498.0212707519531
]
},
"properties": {
"count": 7,
"min_r": 4.659999847412109,
"seed": 60
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Weights": {
"bl_idname": "SvStringsSocket",
"name": "Weights",
"attributes": {
"hide": true
}
},
"Field": {
"bl_idname": "SvScalarFieldSocket",
"name": "Field",
"properties": {
"enable_input_link_menu": false
}
},
"Count": {
"bl_idname": "SvStringsSocket",
"name": "Count",
"properties": {
"prop_name": "count"
}
},
"MinDistance": {
"bl_idname": "SvStringsSocket",
"name": "MinDistance",
"properties": {
"prop_name": "min_r"
}
},
"RadiusField": {
"bl_idname": "SvScalarFieldSocket",
"name": "RadiusField",
"attributes": {
"hide": true
}
},
"Threshold": {
"bl_idname": "SvStringsSocket",
"name": "Threshold",
"properties": {
"prop_name": "threshold"
}
},
"FieldMin": {
"bl_idname": "SvStringsSocket",
"name": "FieldMin",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "field_min"
}
},
"FieldMax": {
"bl_idname": "SvStringsSocket",
"name": "FieldMax",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "field_max"
}
},
"Seed": {
"bl_idname": "SvStringsSocket",
"name": "Seed",
"properties": {
"prop_name": "seed"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Indices": {
"bl_idname": "SvStringsSocket",
"name": "Indices",
"attributes": {
"hide": true
}
},
"Radiuses": {
"bl_idname": "SvStringsSocket",
"name": "Radiuses",
"attributes": {
"hide": true
}
}
},
"bl_idname": "SvPopulateMeshNode"
},
"Viewer Draw.002": {
"attributes": {
"location": [
-149.7933349609375,
498.0212707519531
],
"color": [
0.8389999866485596,
0.36500000953674316,
0.054999999701976776
],
"use_custom_color": true
},
"properties": {
"edge_color": [
0.8999999165534973,
0.46394041180610657,
0.0,
1.0
],
"selected_draw_mode": "facet",
"vector_color": [
0.9500002264976501,
0.02136443369090557,
0.0,
1.0
],
"polygon_color": [
0.8100003600120544,
0.6318826079368591,
0.0,
0.5966457724571228
],
"custom_fragment_shader": "\n uniform float brightness;\n\n in vec3 pos;\n\n void main()\n {\n gl_FragColor = vec4(pos * brightness, 1.0);\n }\n",
"custom_vertex_shader": "\n uniform mat4 viewProjectionMatrix;\n\n in vec3 position;\n out vec3 pos;\n\n void main()\n {\n pos = position;\n gl_Position = viewProjectionMatrix * vec4(position, 1.0f);\n }\n",
"draw_gl_polygonoffset": true,
"point_size": 10,
"activate": false
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Vector Color": {
"bl_idname": "SvColorSocket",
"name": "Vector Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "vector_color"
}
},
"Edge Color": {
"bl_idname": "SvColorSocket",
"name": "Edge Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "edge_color"
}
},
"Polygon Color": {
"bl_idname": "SvColorSocket",
"name": "Polygon Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "polygon_color"
}
},
"attrs": {
"bl_idname": "SvStringsSocket",
"name": "attrs",
"attributes": {
"hide": true
},
"properties": {
"quick_link_to_node": "SvVDAttrsNodeMk2"
}
}
},
"bl_idname": "SvViewerDrawMk4"
},
"A Number": {
"attributes": {
"location": [
-765.78515625,
616.77392578125
],
"label": "Count"
},
"properties": {
"int_": 11,
"selected_mode": "int"
},
"inputs": {
"Float": {
"bl_idname": "SvStringsSocket",
"name": "Int",
"properties": {
"prop_name": "int_"
}
}
},
"outputs": {
"Int": {
"bl_idname": "SvStringsSocket",
"name": "Int",
"properties": {
"custom_draw": "mode_custom_draw"
}
}
},
"bl_idname": "SvNumberNode"
},
"Random Num Gen": {
"attributes": {
"location": [
-407.8071594238281,
747.5516357421875
]
},
"properties": {
"type_selected_mode": "Float",
"low_f": -10.0,
"high_f": 10.0,
"high_i": 1,
"seed": 24
},
"inputs": {
"Size": {
"bl_idname": "SvStringsSocket",
"name": "Size",
"properties": {
"prop_name": "size"
}
},
"Seed": {
"bl_idname": "SvStringsSocket",
"name": "Seed",
"properties": {
"prop_name": "seed"
}
},
"Low": {
"bl_idname": "SvStringsSocket",
"name": "Low",
"properties": {
"prop_name": "low_f"
}
},
"High": {
"bl_idname": "SvStringsSocket",
"name": "High",
"properties": {
"prop_name": "high_f"
}
},
"Weights": {
"bl_idname": "SvStringsSocket",
"name": "Weights",
"attributes": {
"hide": true
}
},
"Alpha": {
"bl_idname": "SvStringsSocket",
"name": "Alpha",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "alpha"
}
},
"Beta": {
"bl_idname": "SvStringsSocket",
"name": "Beta",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "beta"
}
},
"t": {
"bl_idname": "SvStringsSocket",
"name": "t",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "t_in"
}
}
},
"outputs": {
"Value": {
"bl_idname": "SvStringsSocket",
"name": "Value"
}
},
"bl_idname": "SvRndNumGen"
},
"RBF Scalar Field": {
"attributes": {
"location": [
-35.88578796386719,
730.056396484375
],
"color": [
0.40799999237060547,
0.6159999966621399,
0.41600000858306885
],
"use_custom_color": true
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Values": {
"bl_idname": "SvStringsSocket",
"name": "Values"
},
"Epsilon": {
"bl_idname": "SvStringsSocket",
"name": "Epsilon",
"properties": {
"prop_name": "epsilon"
}
},
"Smooth": {
"bl_idname": "SvStringsSocket",
"name": "Smooth",
"properties": {
"prop_name": "smooth"
}
}
},
"outputs": {
"Field": {
"bl_idname": "SvScalarFieldSocket",
"name": "Field"
}
},
"bl_idname": "SvExMinimalScalarFieldNode"
},
"Stethoscope MK2": {
"attributes": {
"location": [
-197.57949829101562,
981.9495239257812
],
"color": [
0.2709999978542328,
0.5220000147819519,
0.5329999923706055
],
"use_custom_color": true
},
"properties": {
"location_theta": 1.0080000162124634,
"num_elements": 1
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
}
},
"bl_idname": "SvStethoscopeNodeMK2"
},
"Number Range": {
"attributes": {
"location": [
113.14865112304688,
506.35711669921875
]
},
"properties": {
"range_mode": "RANGE_COUNT",
"current_mode": "RANGE_COUNT",
"start_float": -6.0,
"stop_float": 8.0,
"count_": 8
},
"inputs": {
"Start": {
"bl_idname": "SvStringsSocket",
"name": "Start",
"properties": {
"prop_name": "start_float"
}
},
"Step": {
"bl_idname": "SvStringsSocket",
"name": "Step",
"properties": {
"prop_name": "stop_float",
"label": "stop"
}
},
"Stop": {
"bl_idname": "SvStringsSocket",
"name": "Stop",
"properties": {
"prop_name": "count_",
"label": "count"
}
}
},
"outputs": {
"Range": {
"bl_idname": "SvStringsSocket",
"name": "Range"
}
},
"bl_idname": "SvGenNumberRange"
},
"Box": {
"attributes": {
"location": [
-780.860595703125,
257.9731750488281
],
"color": [
0.40799999237060547,
0.6159999966621399,
0.41600000858306885
],
"use_custom_color": true
},
"properties": {
"Size": 10.0
},
"inputs": {
"Size": {
"bl_idname": "SvStringsSocket",
"name": "Size",
"properties": {
"prop_name": "Size"
}
},
"Divx": {
"bl_idname": "SvStringsSocket",
"name": "Divx",
"properties": {
"prop_name": "Divx"
}
},
"Divy": {
"bl_idname": "SvStringsSocket",
"name": "Divy",
"properties": {
"prop_name": "Divy"
}
},
"Divz": {
"bl_idname": "SvStringsSocket",
"name": "Divz",
"properties": {
"prop_name": "Divz"
}
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
}
},
"outputs": {
"Vers": {
"bl_idname": "SvVerticesSocket",
"name": "Vers"
},
"Edgs": {
"bl_idname": "SvStringsSocket",
"name": "Edgs"
},
"Pols": {
"bl_idname": "SvStringsSocket",
"name": "Pols"
}
},
"bl_idname": "SvBoxNodeMk2"
},
"Marching Cubes": {
"attributes": {
"location": [
373.9237365722656,
726.5343017578125
]
},
"properties": {
"iso_value": 8.139999389648438
},
"inputs": {
"Field": {
"bl_idname": "SvScalarFieldSocket",
"name": "Field"
},
"Bounds": {
"bl_idname": "SvVerticesSocket",
"name": "Bounds",
"properties": {
"link_menu_handler": "BoundsMenuHandler"
}
},
"Value": {
"bl_idname": "SvStringsSocket",
"name": "Value",
"properties": {
"prop_name": "iso_value"
}
},
"Samples": {
"bl_idname": "SvStringsSocket",
"name": "Samples",
"properties": {
"prop_name": "sample_size"
}
},
"SamplesX": {
"bl_idname": "SvStringsSocket",
"name": "SamplesX",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "samples_x"
}
},
"SamplesY": {
"bl_idname": "SvStringsSocket",
"name": "SamplesY",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "samples_y"
}
},
"SamplesZ": {
"bl_idname": "SvStringsSocket",
"name": "SamplesZ",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "samples_z"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"VertexNormals": {
"bl_idname": "SvVerticesSocket",
"name": "VertexNormals"
}
},
"bl_idname": "SvExMarchingCubesNode"
},
"Relax Mesh": {
"attributes": {
"location": [
763.4923095703125,
976.9014892578125
]
},
"properties": {
"preserve_shape": "BVH",
"iterations": 3
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"VertMask": {
"bl_idname": "SvStringsSocket",
"name": "VertMask",
"properties": {
"enable_input_link_menu": false
}
},
"Iterations": {
"bl_idname": "SvStringsSocket",
"name": "Iterations",
"properties": {
"prop_name": "iterations"
}
},
"Factor": {
"bl_idname": "SvStringsSocket",
"name": "Factor",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "factor"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
}
},
"bl_idname": "SvRelaxMeshNode"
},
"Mesh Join": {
"attributes": {
"location": [
576.925048828125,
789.2230224609375
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"is_mandatory": true,
"default_mode": "NONE"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"nesting_level": 3
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons",
"properties": {
"nesting_level": 3
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
}
},
"bl_idname": "SvMeshJoinNodeMk2"
},
"Solidify": {
"attributes": {
"location": [
1118.17138671875,
915.0787963867188
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Thickness": {
"bl_idname": "SvStringsSocket",
"name": "Thickness",
"properties": {
"prop_name": "thickness"
}
},
"Offset": {
"bl_idname": "SvStringsSocket",
"name": "Offset",
"properties": {
"prop_name": "offset"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"New Pols": {
"bl_idname": "SvStringsSocket",
"name": "New Pols"
},
"Rim Pols": {
"bl_idname": "SvStringsSocket",
"name": "Rim Pols"
},
"Pols Group": {
"bl_idname": "SvStringsSocket",
"name": "Pols Group"
},
"New Verts Mask": {
"bl_idname": "SvStringsSocket",
"name": "New Verts Mask"
}
},
"bl_idname": "SvSolidifyNodeMk2"
},
"Mesh Viewer": {
"attributes": {
"location": [
1444.84130859375,
886.9552001953125
],
"color": [
0.8389999866485596,
0.36500000953674316,
0.054999999701976776
],
"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": "Box",
"from_socket": "Vers",
"to_node": "Populate Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Box",
"from_socket": "Edgs",
"to_node": "Populate Mesh",
"to_socket": "Edges"
},
{
"from_node": "Box",
"from_socket": "Pols",
"to_node": "Populate Mesh",
"to_socket": "Faces"
},
{
"from_node": "A Number",
"from_socket": "Int",
"to_node": "Populate Mesh",
"to_socket": "Count"
},
{
"from_node": "Populate Mesh",
"from_socket": "Vertices",
"to_node": "Viewer Draw.002",
"to_socket": "Vertices"
},
{
"from_node": "A Number",
"from_socket": "Int",
"to_node": "Random Num Gen",
"to_socket": "Size"
},
{
"from_node": "Populate Mesh",
"from_socket": "Vertices",
"to_node": "RBF Scalar Field",
"to_socket": "Vertices"
},
{
"from_node": "Random Num Gen",
"from_socket": "Value",
"to_node": "RBF Scalar Field",
"to_socket": "Values"
},
{
"from_node": "Random Num Gen",
"from_socket": "Value",
"to_node": "Stethoscope MK2",
"to_socket": "Data"
},
{
"from_node": "RBF Scalar Field",
"from_socket": "Field",
"to_node": "Marching Cubes",
"to_socket": "Field"
},
{
"from_node": "Box",
"from_socket": "Vers",
"to_node": "Marching Cubes",
"to_socket": "Bounds"
},
{
"from_node": "Number Range",
"from_socket": "Range",
"to_node": "Marching Cubes",
"to_socket": "Value"
},
{
"from_node": "Mesh Join",
"from_socket": "Vertices",
"to_node": "Relax Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Mesh Join",
"from_socket": "Edges",
"to_node": "Relax Mesh",
"to_socket": "Edges"
},
{
"from_node": "Mesh Join",
"from_socket": "Polygons",
"to_node": "Relax Mesh",
"to_socket": "Faces"
},
{
"from_node": "Marching Cubes",
"from_socket": "Vertices",
"to_node": "Mesh Join",
"to_socket": "Vertices"
},
{
"from_node": "Marching Cubes",
"from_socket": "Faces",
"to_node": "Mesh Join",
"to_socket": "Polygons"
},
{
"from_node": "Relax Mesh",
"from_socket": "Vertices",
"to_node": "Solidify",
"to_socket": "Vertices"
},
{
"from_node": "Mesh Join",
"from_socket": "Polygons",
"to_node": "Solidify",
"to_socket": "Polygons"
},
{
"from_node": "Solidify",
"from_socket": "Vertices",
"to_node": "Mesh Viewer",
"to_socket": "vertices"
},
{
"from_node": "Solidify",
"from_socket": "Edges",
"to_node": "Mesh Viewer",
"to_socket": "edges"
},
{
"from_node": "Solidify",
"from_socket": "Polygons",
"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