Skip to content

Instantly share code, notes, and snippets.

@portnov
Created November 30, 2024 19:11
Show Gist options
  • Save portnov/5bddd386f89e4e25ae371f318c8c34b9 to your computer and use it in GitHub Desktop.
Save portnov/5bddd386f89e4e25ae371f318c8c34b9 to your computer and use it in GitHub Desktop.
Sverchok.v1.3.0 | Blender.4.3.0 | NodeTree | 2024.12.01 | 00:11 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Scalar Field Formula": {
"attributes": {
"location": [
309.1786193847656,
433.1249694824219
],
"width": 438.7460021972656
},
"properties": {
"formula": "(x**2 + y**2 + z**2 - mu**2*w**2)**2 - lm*(w-z-sqrt(2)*x)*(w-z+sqrt(2)*x)*(w+z+sqrt(2)*y)*(w+z-sqrt(2)*y)"
},
"inputs": {
"Field": {
"bl_idname": "SvScalarFieldSocket",
"name": "Field"
},
"lm": {
"bl_idname": "SvStringsSocket",
"name": "lm"
},
"mu": {
"bl_idname": "SvStringsSocket",
"name": "mu"
},
"w": {
"bl_idname": "SvStringsSocket",
"name": "w"
}
},
"outputs": {
"Field": {
"bl_idname": "SvScalarFieldSocket",
"name": "Field"
}
},
"bl_idname": "SvExScalarFieldFormulaNode"
},
"Formula": {
"attributes": {
"location": [
14.684820175170898,
231.447021484375
],
"width": 230.0
},
"properties": {
"formula1": "(3*mu**2-1)/(3 - mu**2)"
},
"inputs": {
"mu": {
"bl_idname": "SvFormulaSocket",
"name": "mu"
}
},
"outputs": {
"Result": {
"bl_idname": "SvStringsSocket",
"name": "Result"
}
},
"bl_idname": "SvFormulaNodeMk5"
},
"A Number": {
"attributes": {
"location": [
-274.9341125488281,
264.2957763671875
],
"label": "mu"
},
"properties": {
"float_": 1.0564963817596436
},
"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"
},
"A Number.001": {
"attributes": {
"location": [
8.775039672851562,
336.4521484375
],
"label": "w"
},
"properties": {
"float_": 1.5
},
"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"
},
"Marching Cubes": {
"attributes": {
"location": [
821.4627075195312,
420.83990478515625
]
},
"properties": {
"sample_size": 150,
"iso_value": 0.03500000014901161
},
"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"
},
"Box": {
"attributes": {
"location": [
590.5922241210938,
186.92941284179688
],
"label": "Bounds"
},
"properties": {
"Size": 4.900000095367432
},
"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",
"properties": {
"description": "Box vertices"
}
},
"Edgs": {
"bl_idname": "SvStringsSocket",
"name": "Edgs"
},
"Pols": {
"bl_idname": "SvStringsSocket",
"name": "Pols"
}
},
"bl_idname": "SvBoxNodeMk2"
},
"Relax Mesh": {
"attributes": {
"location": [
1045.094482421875,
302.2886962890625
]
},
"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 Viewer": {
"attributes": {
"location": [
1279.542236328125,
441.1094055175781
],
"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": "Formula",
"from_socket": "Result",
"to_node": "Scalar Field Formula",
"to_socket": "lm"
},
{
"from_node": "A Number",
"from_socket": "Float",
"to_node": "Scalar Field Formula",
"to_socket": "mu"
},
{
"from_node": "A Number.001",
"from_socket": "Float",
"to_node": "Scalar Field Formula",
"to_socket": "w"
},
{
"from_node": "A Number",
"from_socket": "Float",
"to_node": "Formula",
"to_socket": "mu"
},
{
"from_node": "Scalar Field Formula",
"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": "Marching Cubes",
"from_socket": "Vertices",
"to_node": "Relax Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Marching Cubes",
"from_socket": "Faces",
"to_node": "Relax Mesh",
"to_socket": "Faces"
},
{
"from_node": "Relax Mesh",
"from_socket": "Vertices",
"to_node": "Mesh Viewer",
"to_socket": "vertices"
},
{
"from_node": "Marching Cubes",
"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