Skip to content

Instantly share code, notes, and snippets.

@portnov
Created January 21, 2023 19:45
Show Gist options
  • Save portnov/fc0efa98cb3602ddaa7beeecc3faa0d6 to your computer and use it in GitHub Desktop.
Save portnov/fc0efa98cb3602ddaa7beeecc3faa0d6 to your computer and use it in GitHub Desktop.
Sverchok.v1.2.0-alpha | Blender.3.4.0 | NodeTree | 2023.01.22 | 00:45 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Line": {
"attributes": {
"location": [
-369.0294189453125,
12.2808837890625
]
},
"properties": {
"num": 8
},
"inputs": {
"Num": {
"bl_idname": "SvStringsSocket",
"name": "Num",
"properties": {
"prop_name": "num"
}
},
"Steps": {
"bl_idname": "SvStringsSocket",
"name": "Steps",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "step"
}
},
"Size": {
"bl_idname": "SvStringsSocket",
"name": "Size",
"properties": {
"prop_name": "size"
}
},
"Origin": {
"bl_idname": "SvVerticesSocket",
"name": "Origin",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v3_origin"
}
},
"Direction": {
"bl_idname": "SvVerticesSocket",
"name": "Direction",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v3_dir"
}
}
},
"outputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
}
},
"bl_idname": "SvLineNodeMK4"
},
"Randomize": {
"attributes": {
"location": [
-126.03173065185547,
39.03790283203125
]
},
"properties": {
"random_x_": 0.29999998211860657,
"random_y_": 0.9299999475479126,
"random_z_": 2.93999981880188
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"RandomX": {
"bl_idname": "SvStringsSocket",
"name": "RandomX",
"properties": {
"prop_name": "random_x_"
}
},
"RandomY": {
"bl_idname": "SvStringsSocket",
"name": "RandomY",
"properties": {
"prop_name": "random_y_"
}
},
"RandomZ": {
"bl_idname": "SvStringsSocket",
"name": "RandomZ",
"properties": {
"prop_name": "random_z_"
}
},
"Seed": {
"bl_idname": "SvStringsSocket",
"name": "Seed",
"properties": {
"prop_name": "random_seed_"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
}
},
"bl_idname": "SvRandomizeVerticesNode"
},
"Interpolate NURBS Curve": {
"attributes": {
"location": [
92.27909851074219,
36.16442108154297
]
},
"properties": {
"nurbs_implementation": "NATIVE"
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Degree": {
"bl_idname": "SvStringsSocket",
"name": "Degree",
"properties": {
"prop_name": "degree"
}
}
},
"outputs": {
"Curve": {
"bl_idname": "SvCurveSocket",
"name": "Curve"
},
"ControlPoints": {
"bl_idname": "SvVerticesSocket",
"name": "ControlPoints"
},
"Knots": {
"bl_idname": "SvStringsSocket",
"name": "Knots"
}
},
"bl_idname": "SvExInterpolateNurbsCurveNode"
},
"Pipe Surface Along Curve": {
"attributes": {
"location": [
381.0817565917969,
36.8393440246582
]
},
"properties": {
"algorithm": "track"
},
"inputs": {
"Curve": {
"bl_idname": "SvCurveSocket",
"name": "Curve"
},
"Radius": {
"bl_idname": "SvStringsSocket",
"name": "Radius",
"properties": {
"prop_name": "radius"
}
},
"Resolution": {
"bl_idname": "SvStringsSocket",
"name": "Resolution",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "resolution"
}
}
},
"outputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
}
},
"bl_idname": "SvPipeSurfaceNode"
},
"Relax Mesh": {
"attributes": {
"location": [
830.0442504882812,
155.8017578125
]
},
"properties": {
"preserve_shape": "NORMAL",
"iterations": 6
},
"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"
},
"Adaptive Tessellate Surface": {
"attributes": {
"location": [
602.6057739257812,
164.42381286621094
]
},
"properties": {
"samples_u": 8,
"samples_v": 100,
"max_ppf": 30,
"min_ppf": 1
},
"inputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
},
"TrimCurve": {
"bl_idname": "SvCurveSocket",
"name": "TrimCurve"
},
"SamplesU": {
"bl_idname": "SvStringsSocket",
"name": "SamplesU",
"properties": {
"prop_name": "samples_u"
}
},
"SamplesV": {
"bl_idname": "SvStringsSocket",
"name": "SamplesV",
"properties": {
"prop_name": "samples_v"
}
},
"SamplesT": {
"bl_idname": "SvStringsSocket",
"name": "SamplesT",
"properties": {
"prop_name": "samples_t"
}
},
"MinPpf": {
"bl_idname": "SvStringsSocket",
"name": "MinPpf",
"properties": {
"prop_name": "min_ppf"
}
},
"MaxPpf": {
"bl_idname": "SvStringsSocket",
"name": "MaxPpf",
"properties": {
"prop_name": "max_ppf"
}
},
"Seed": {
"bl_idname": "SvStringsSocket",
"name": "Seed",
"properties": {
"prop_name": "seed"
}
},
"AddUVPoints": {
"bl_idname": "SvVerticesSocket",
"name": "AddUVPoints"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"UVPoints": {
"bl_idname": "SvVerticesSocket",
"name": "UVPoints"
}
},
"bl_idname": "SvAdaptiveTessellateNode"
},
"Merge by Distance": {
"attributes": {
"location": [
1081.0042724609375,
108.38194274902344
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"PolyEdge": {
"bl_idname": "SvStringsSocket",
"name": "PolyEdge"
},
"FaceData": {
"bl_idname": "SvStringsSocket",
"name": "FaceData"
},
"Mask": {
"bl_idname": "SvStringsSocket",
"name": "Mask"
},
"Distance": {
"bl_idname": "SvStringsSocket",
"name": "Distance",
"properties": {
"prop_name": "distance"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"FaceData": {
"bl_idname": "SvStringsSocket",
"name": "FaceData"
},
"Doubles": {
"bl_idname": "SvVerticesSocket",
"name": "Doubles"
},
"Mask": {
"bl_idname": "SvStringsSocket",
"name": "Mask"
}
},
"bl_idname": "SvMergeByDistanceNode"
},
"Dual Mesh": {
"attributes": {
"location": [
1367.90673828125,
128.34310913085938
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"bl_idname": "SvDualMeshNode"
},
"Viewer Draw": {
"attributes": {
"location": [
1675.00244140625,
163.23788452148438
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"activate": false,
"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",
"display_verts": false,
"edge_color": [
0.30573487281799316,
0.003269235836341977,
0.019176948815584183,
1.0
],
"polygon_color": [
1.0,
0.900135338306427,
0.5130714178085327,
1.0
],
"selected_draw_mode": "facet",
"vector_color": [
0.9111706614494324,
0.4350321292877197,
0.2654842138290405,
1.0
]
},
"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"
}
},
"links": [
{
"from_node": "Line",
"from_socket": "Verts",
"to_node": "Randomize",
"to_socket": "Vertices"
},
{
"from_node": "Randomize",
"from_socket": "Vertices",
"to_node": "Interpolate NURBS Curve",
"to_socket": "Vertices"
},
{
"from_node": "Interpolate NURBS Curve",
"from_socket": "Curve",
"to_node": "Pipe Surface Along Curve",
"to_socket": "Curve"
},
{
"from_node": "Adaptive Tessellate Surface",
"from_socket": "Vertices",
"to_node": "Relax Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Adaptive Tessellate Surface",
"from_socket": "Faces",
"to_node": "Relax Mesh",
"to_socket": "Faces"
},
{
"from_node": "Pipe Surface Along Curve",
"from_socket": "Surface",
"to_node": "Adaptive Tessellate Surface",
"to_socket": "Surface"
},
{
"from_node": "Relax Mesh",
"from_socket": "Vertices",
"to_node": "Merge by Distance",
"to_socket": "Vertices"
},
{
"from_node": "Adaptive Tessellate Surface",
"from_socket": "Faces",
"to_node": "Merge by Distance",
"to_socket": "PolyEdge"
},
{
"from_node": "Merge by Distance",
"from_socket": "Vertices",
"to_node": "Dual Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Merge by Distance",
"from_socket": "Polygons",
"to_node": "Dual Mesh",
"to_socket": "Faces"
},
{
"from_node": "Dual Mesh",
"from_socket": "Vertices",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "Dual Mesh",
"from_socket": "Faces",
"to_node": "Viewer Draw",
"to_socket": "Polygons"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment