Skip to content

Instantly share code, notes, and snippets.

@portnov
Created January 13, 2023 07:36
Show Gist options
  • Save portnov/b7a18befee0dc787e6eee45867e6292f to your computer and use it in GitHub Desktop.
Save portnov/b7a18befee0dc787e6eee45867e6292f to your computer and use it in GitHub Desktop.
Sverchok.v1.2.0-alpha | Blender.3.4.0 | NodeTree | 2023.01.13 | 12:36 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Frame": {
"attributes": {
"location": [
0.0,
0.0
],
"height": 388.79998779296875,
"width": 831.2000122070312,
"label": "Source Surface"
},
"bl_idname": "NodeFrame"
},
"Temporal Viewer": {
"attributes": {
"location": [
461.7287902832031,
450.9577331542969
],
"label": "Temporal Viewer",
"color": [
0.6661409735679626,
0.20302200317382812,
0.0
],
"use_custom_color": true
},
"properties": {
"edge_color": [
0.0,
0.7798373103141785,
0.8999999165534973,
1.0
],
"selected_draw_mode": "facet",
"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"
},
"Adaptive Tessellate Surface": {
"attributes": {
"location": [
191.47581481933594,
107.0406494140625
]
},
"properties": {
"by_area": true,
"samples_v": 11,
"samples_u": 11,
"min_ppf": 1,
"max_ppf": 6,
"seed": 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"
},
"Viewer Draw Surface": {
"attributes": {
"location": [
447.1446228027344,
-171.88612365722656
],
"width": 142.41065979003906,
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"control_net_color": [
0.0,
0.20331311225891113,
0.6741600036621094,
1.0
],
"control_points_color": [
0.0,
0.030828893184661865,
1.0,
1.0
],
"control_points_size": 4,
"surface_color": [
0.7444139719009399,
0.8444298505783081,
0.9500002264976501,
1.0
],
"resolution_u": 100,
"resolution_v": 100,
"node_lines_color": [
0.0007367206271737814,
0.0,
0.19999945163726807,
1.0
],
"activate": false
},
"inputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
},
"ResolutionU": {
"bl_idname": "SvStringsSocket",
"name": "ResolutionU",
"properties": {
"prop_name": "resolution_u"
}
},
"ResolutionV": {
"bl_idname": "SvStringsSocket",
"name": "ResolutionV",
"properties": {
"prop_name": "resolution_v"
}
}
},
"bl_idname": "SvSurfaceViewerDrawNode"
},
"Relax Mesh": {
"attributes": {
"location": [
410.5570068359375,
123.86713409423828
]
},
"properties": {
"preserve_shape": "BVH",
"iterations": 16
},
"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"
},
"Viewer Draw": {
"attributes": {
"location": [
614.945068359375,
119.96781921386719
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"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"
},
"Plane": {
"attributes": {
"location": [
-481.5579833984375,
48.776588439941406
],
"color": [
0.0,
0.5,
0.5
],
"use_custom_color": true,
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"center": true,
"numx": 5,
"numy": 5
},
"inputs": {
"Size X": {
"bl_idname": "SvStringsSocket",
"name": "Size X",
"properties": {
"prop_name": "sizex",
"custom_draw": "draw_prop_socket",
"label": "Size X"
}
},
"Size Y": {
"bl_idname": "SvStringsSocket",
"name": "Size Y",
"properties": {
"prop_name": "sizey",
"custom_draw": "draw_prop_socket",
"label": "Size Y"
}
},
"Num X": {
"bl_idname": "SvStringsSocket",
"name": "Num X",
"properties": {
"prop_name": "numx",
"custom_draw": "draw_prop_socket",
"label": "Num X"
}
},
"Num Y": {
"bl_idname": "SvStringsSocket",
"name": "Num Y",
"properties": {
"prop_name": "numy",
"custom_draw": "draw_prop_socket",
"label": "Num Y"
}
},
"Step X": {
"bl_idname": "SvStringsSocket",
"name": "Step X",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "stepx",
"custom_draw": "draw_prop_socket",
"label": "Step X"
}
},
"Step Y": {
"bl_idname": "SvStringsSocket",
"name": "Step Y",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "stepy",
"custom_draw": "draw_prop_socket",
"label": "Step Y"
}
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
}
},
"bl_idname": "SvPlaneNodeMk3"
},
"Build NURBS Surface": {
"attributes": {
"location": [
-49.540462493896484,
51.50027847290039
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"implementation": "NATIVE"
},
"inputs": {
"ControlPoints": {
"bl_idname": "SvVerticesSocket",
"name": "ControlPoints"
},
"Weights": {
"bl_idname": "SvStringsSocket",
"name": "Weights"
},
"KnotsU": {
"bl_idname": "SvStringsSocket",
"name": "KnotsU",
"attributes": {
"hide": true
}
},
"KnotsV": {
"bl_idname": "SvStringsSocket",
"name": "KnotsV",
"attributes": {
"hide": true
}
},
"DegreeU": {
"bl_idname": "SvStringsSocket",
"name": "DegreeU",
"properties": {
"prop_name": "degree_u"
}
},
"DegreeV": {
"bl_idname": "SvStringsSocket",
"name": "DegreeV",
"properties": {
"prop_name": "degree_v"
}
},
"USize": {
"bl_idname": "SvStringsSocket",
"name": "USize",
"properties": {
"prop_name": "u_size"
}
}
},
"outputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
}
},
"bl_idname": "SvExNurbsSurfaceNode"
},
"Randomize": {
"attributes": {
"location": [
-261.4125061035156,
-15.495534896850586
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"random_x_": 1.5,
"random_y_": 1.0,
"random_z_": 4.0,
"random_seed_": 8
},
"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"
},
"A Number": {
"attributes": {
"location": [
-680.3525390625,
-22.46812629699707
],
"label": "Num X",
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"int_": 5,
"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"
}
},
"links": [
{
"from_node": "Adaptive Tessellate Surface",
"from_socket": "Vertices",
"to_node": "Temporal Viewer",
"to_socket": "Vertices"
},
{
"from_node": "Adaptive Tessellate Surface",
"from_socket": "Faces",
"to_node": "Temporal Viewer",
"to_socket": "Polygons"
},
{
"from_node": "Build NURBS Surface",
"from_socket": "Surface",
"to_node": "Adaptive Tessellate Surface",
"to_socket": "Surface"
},
{
"from_node": "Build NURBS Surface",
"from_socket": "Surface",
"to_node": "Viewer Draw Surface",
"to_socket": "Surface"
},
{
"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": "Relax Mesh",
"from_socket": "Vertices",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "Adaptive Tessellate Surface",
"from_socket": "Faces",
"to_node": "Viewer Draw",
"to_socket": "Polygons"
},
{
"from_node": "A Number",
"from_socket": "Int",
"to_node": "Plane",
"to_socket": "Num X"
},
{
"from_node": "A Number",
"from_socket": "Int",
"to_node": "Plane",
"to_socket": "Num Y"
},
{
"from_node": "Randomize",
"from_socket": "Vertices",
"to_node": "Build NURBS Surface",
"to_socket": "ControlPoints"
},
{
"from_node": "A Number",
"from_socket": "Int",
"to_node": "Build NURBS Surface",
"to_socket": "USize"
},
{
"from_node": "Plane",
"from_socket": "Vertices",
"to_node": "Randomize",
"to_socket": "Vertices"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment