Skip to content

Instantly share code, notes, and snippets.

@portnov
Created November 30, 2024 18:54
Show Gist options
  • Save portnov/b542e58c067fbf69f9f2d49c2937d0ea to your computer and use it in GitHub Desktop.
Save portnov/b542e58c067fbf69f9f2d49c2937d0ea to your computer and use it in GitHub Desktop.
Sverchok.v1.3.0 | Blender.4.3.0 | NodeTree | 2024.11.30 | 23:54 | 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.4142135381698608
},
"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.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"
},
"Marching Cubes": {
"attributes": {
"location": [
821.4627075195312,
420.83990478515625
]
},
"properties": {
"sample_size": 100
},
"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": 5.159999847412109
},
"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"
},
"Viewer Draw": {
"attributes": {
"location": [
1279.542236328125,
441.1094055175781
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"edge_color": [
0.005726166069507599,
0.13634410500526428,
0.25772425532341003,
1.0
],
"selected_draw_mode": "facet",
"vector_color": [
0.0,
0.11233607679605484,
0.9498387575149536,
1.0
],
"display_verts": false,
"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"
},
"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"
}
},
"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": "Relax Mesh",
"from_socket": "Vertices",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "Marching Cubes",
"from_socket": "Faces",
"to_node": "Viewer Draw",
"to_socket": "Polygons"
},
{
"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"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment