Skip to content

Instantly share code, notes, and snippets.

@portnov
Created October 12, 2024 14:24
Show Gist options
  • Save portnov/c0646d334dfff27b7941d663c39378f6 to your computer and use it in GitHub Desktop.
Save portnov/c0646d334dfff27b7941d663c39378f6 to your computer and use it in GitHub Desktop.
Sverchok.v1.3.0 | Blender.4.2.1LTS | NodeTree | 2024.10.12 | 19:24 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Straight Skeleton 2D": {
"attributes": {
"location": [
-32.322113037109375,
12.773370742797852
],
"width": 252.05975341796875
},
"properties": {
"ss_angles": 0.7853981852531433,
"ss_height": 0.10000002384185791
},
"inputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices",
"properties": {
"label": "Vertices"
}
},
"edges": {
"bl_idname": "SvStringsSocket",
"name": "edges",
"properties": {
"label": "Edges"
}
},
"polygons": {
"bl_idname": "SvStringsSocket",
"name": "polygons",
"properties": {
"label": "Polygons"
}
},
"ss_angles": {
"bl_idname": "SvStringsSocket",
"name": "ss_angles",
"properties": {
"prop_name": "ss_angles",
"label": "Angles",
"custom_draw": "draw_angles_mode_in_socket"
}
},
"ss_height": {
"bl_idname": "SvStringsSocket",
"name": "ss_height",
"properties": {
"prop_name": "ss_height",
"label": "Height"
}
},
"objects_mask": {
"bl_idname": "SvStringsSocket",
"name": "objects_mask",
"properties": {
"label": "Mask of Objects",
"custom_draw": "draw_objects_mask_in_socket"
}
},
"file_name": {
"bl_idname": "SvTextSocket",
"name": "file_name",
"attributes": {
"hide": true
},
"properties": {
"label": "File Name"
}
}
},
"outputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices",
"properties": {
"label": "Vertices",
"custom_draw": "draw_vertices_out_socket"
}
},
"edges": {
"bl_idname": "SvStringsSocket",
"name": "edges",
"properties": {
"label": "Edges"
}
},
"polygons": {
"bl_idname": "SvStringsSocket",
"name": "polygons",
"properties": {
"label": "Polygons"
}
},
"failed_contours_vertices": {
"bl_idname": "SvVerticesSocket",
"name": "failed_contours_vertices",
"properties": {
"label": "Wrong contours verts",
"custom_draw": "draw_failed_contours_vertices_out_socket"
}
}
},
"bl_idname": "SvStraightSkeleton2D"
},
"Box": {
"attributes": {
"location": [
-1554.673828125,
-161.0828857421875
]
},
"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"
},
"Polygon Boom": {
"attributes": {
"location": [
-1332.039794921875,
-285.96429443359375
]
},
"inputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices"
},
"edg_pol": {
"bl_idname": "SvStringsSocket",
"name": "edg_pol"
}
},
"outputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices"
},
"edg_pol": {
"bl_idname": "SvStringsSocket",
"name": "edg_pol"
}
},
"bl_idname": "PolygonBoomNode"
},
"Linear Approximation": {
"attributes": {
"location": [
-1116.4945068359375,
-96.80543518066406
]
},
"properties": {
"mode": "Plane"
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
}
},
"outputs": {
"Center": {
"bl_idname": "SvVerticesSocket",
"name": "Center"
},
"Normal": {
"bl_idname": "SvVerticesSocket",
"name": "Normal"
},
"Direction": {
"bl_idname": "SvVerticesSocket",
"name": "Direction",
"attributes": {
"hide": true
}
},
"Projections": {
"bl_idname": "SvVerticesSocket",
"name": "Projections"
},
"Diffs": {
"bl_idname": "SvVerticesSocket",
"name": "Diffs"
},
"Distances": {
"bl_idname": "SvStringsSocket",
"name": "Distances"
}
},
"bl_idname": "SvLinearApproxNode"
},
"Matrix Apply to Mesh": {
"attributes": {
"location": [
-321.32220458984375,
-98.52839660644531
]
},
"properties": {
"do_join": false
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Matrices": {
"bl_idname": "SvMatrixSocket",
"name": "Matrices"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"bl_idname": "SvMatrixApplyJoinNode"
},
"Matrix Math": {
"attributes": {
"location": [
-733.0,
-117.32820892333984
],
"label": "Matrix Invert"
},
"properties": {
"operation": "INVERT"
},
"inputs": {
"A": {
"bl_idname": "SvMatrixSocket",
"name": "A"
}
},
"outputs": {
"C": {
"bl_idname": "SvMatrixSocket",
"name": "C"
}
},
"bl_idname": "SvMatrixMathNode"
},
"Matrix Normal": {
"attributes": {
"location": [
-934.7570190429688,
-67.66752624511719
]
},
"properties": {
"track": "Z",
"up": "Y"
},
"inputs": {
"Location": {
"bl_idname": "SvVerticesSocket",
"name": "Location",
"properties": {
"use_prop": true
}
},
"Normal": {
"bl_idname": "SvVerticesSocket",
"name": "Normal",
"properties": {
"use_prop": true
}
}
},
"outputs": {
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
}
},
"bl_idname": "SvMatrixNormalNode"
},
"Matrix Apply to Mesh.001": {
"attributes": {
"location": [
328.92498779296875,
-46.55244064331055
]
},
"properties": {
"do_join": false
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Matrices": {
"bl_idname": "SvMatrixSocket",
"name": "Matrices"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"bl_idname": "SvMatrixApplyJoinNode"
},
"Viewer Draw": {
"attributes": {
"location": [
528.9249877929688,
-46.55244064331055
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"edge_color": [
0.013184511102735996,
0.46199744939804077,
0.8999614119529724,
1.0
],
"selected_draw_mode": "facet",
"vector_color": [
0.0,
0.11233607679605484,
0.9498387575149536,
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": "Matrix Apply to Mesh",
"from_socket": "Vertices",
"to_node": "Straight Skeleton 2D",
"to_socket": "vertices"
},
{
"from_node": "Matrix Apply to Mesh",
"from_socket": "Edges",
"to_node": "Straight Skeleton 2D",
"to_socket": "edges"
},
{
"from_node": "Matrix Apply to Mesh",
"from_socket": "Faces",
"to_node": "Straight Skeleton 2D",
"to_socket": "polygons"
},
{
"from_node": "Box",
"from_socket": "Vers",
"to_node": "Polygon Boom",
"to_socket": "vertices"
},
{
"from_node": "Box",
"from_socket": "Pols",
"to_node": "Polygon Boom",
"to_socket": "edg_pol"
},
{
"from_node": "Polygon Boom",
"from_socket": "vertices",
"to_node": "Linear Approximation",
"to_socket": "Vertices"
},
{
"from_node": "Polygon Boom",
"from_socket": "vertices",
"to_node": "Matrix Apply to Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Polygon Boom",
"from_socket": "edg_pol",
"to_node": "Matrix Apply to Mesh",
"to_socket": "Edges"
},
{
"from_node": "Polygon Boom",
"from_socket": "edg_pol",
"to_node": "Matrix Apply to Mesh",
"to_socket": "Faces"
},
{
"from_node": "Matrix Math",
"from_socket": "C",
"to_node": "Matrix Apply to Mesh",
"to_socket": "Matrices"
},
{
"from_node": "Matrix Normal",
"from_socket": "Matrix",
"to_node": "Matrix Math",
"to_socket": "A"
},
{
"from_node": "Linear Approximation",
"from_socket": "Center",
"to_node": "Matrix Normal",
"to_socket": "Location"
},
{
"from_node": "Linear Approximation",
"from_socket": "Normal",
"to_node": "Matrix Normal",
"to_socket": "Normal"
},
{
"from_node": "Straight Skeleton 2D",
"from_socket": "vertices",
"to_node": "Matrix Apply to Mesh.001",
"to_socket": "Vertices"
},
{
"from_node": "Straight Skeleton 2D",
"from_socket": "edges",
"to_node": "Matrix Apply to Mesh.001",
"to_socket": "Edges"
},
{
"from_node": "Straight Skeleton 2D",
"from_socket": "polygons",
"to_node": "Matrix Apply to Mesh.001",
"to_socket": "Faces"
},
{
"from_node": "Matrix Normal",
"from_socket": "Matrix",
"to_node": "Matrix Apply to Mesh.001",
"to_socket": "Matrices"
},
{
"from_node": "Matrix Apply to Mesh.001",
"from_socket": "Vertices",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "Matrix Apply to Mesh.001",
"from_socket": "Edges",
"to_node": "Viewer Draw",
"to_socket": "Edges"
},
{
"from_node": "Matrix Apply to Mesh.001",
"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