Skip to content

Instantly share code, notes, and snippets.

@nortikin
Created October 20, 2023 00:14
Show Gist options
  • Save nortikin/4bd456493868902ed3b4b53d4389de67 to your computer and use it in GitHub Desktop.
Save nortikin/4bd456493868902ed3b4b53d4389de67 to your computer and use it in GitHub Desktop.
Sverchok.v1.3.0-alpha | Blender.3.6.2 | nearest_point_on_mesh_bug | 2023.10.20 | 03:14 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Cylinder": {
"attributes": {
"location": [
-300.0,
-180.0
],
"height": 2.0
},
"properties": {
"meridians": 96
},
"inputs": {
"RadiusT": {
"bl_idname": "SvStringsSocket",
"name": "RadiusT",
"properties": {
"prop_name": "radius_t"
}
},
"RadiusB": {
"bl_idname": "SvStringsSocket",
"name": "RadiusB",
"properties": {
"prop_name": "radius_b"
}
},
"Parallels": {
"bl_idname": "SvStringsSocket",
"name": "Parallels",
"properties": {
"prop_name": "parallels"
}
},
"Meridians": {
"bl_idname": "SvStringsSocket",
"name": "Meridians",
"properties": {
"prop_name": "meridians"
}
},
"Height": {
"bl_idname": "SvStringsSocket",
"name": "Height",
"properties": {
"prop_name": "height"
}
},
"Twist": {
"bl_idname": "SvStringsSocket",
"name": "Twist",
"properties": {
"prop_name": "twist"
}
},
"Phase": {
"bl_idname": "SvStringsSocket",
"name": "Phase",
"properties": {
"prop_name": "phase"
}
},
"Scale": {
"bl_idname": "SvStringsSocket",
"name": "Scale",
"properties": {
"prop_name": "scale"
}
},
"Parallels Profile": {
"bl_idname": "SvStringsSocket",
"name": "Parallels Profile"
},
"Meridians Profile": {
"bl_idname": "SvStringsSocket",
"name": "Meridians Profile"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
}
},
"bl_idname": "SvCylinderNodeMK2"
},
"Viewer Draw.001": {
"attributes": {
"location": [
-100.0,
-180.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"
},
"Nearest Point on Mesh": {
"attributes": {
"location": [
180.0,
-179.88919067382812
]
},
"properties": {
"mode": "find_nearest_range",
"flat_output": false
},
"inputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts",
"properties": {
"is_mandatory": true
}
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces",
"properties": {
"nesting_level": 3,
"is_mandatory": true
}
},
"Points": {
"bl_idname": "SvVerticesSocket",
"name": "Points",
"properties": {
"use_prop": true
}
},
"Distance": {
"bl_idname": "SvStringsSocket",
"name": "Distance",
"properties": {
"use_prop": true,
"default_float_property": 10.0
}
}
},
"outputs": {
"Location": {
"bl_idname": "SvVerticesSocket",
"name": "Location",
"properties": {
"use_unwrap": true
}
},
"Normal": {
"bl_idname": "SvVerticesSocket",
"name": "Normal"
},
"Index": {
"bl_idname": "SvStringsSocket",
"name": "Index"
},
"Distance": {
"bl_idname": "SvStringsSocket",
"name": "Distance"
}
},
"bl_idname": "SvNearestPointOnMeshNode"
},
"List Item": {
"attributes": {
"location": [
620.0,
-240.0
]
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
},
"Index": {
"bl_idname": "SvStringsSocket",
"name": "Index",
"properties": {
"prop_name": "index"
}
}
},
"outputs": {
"Item_001": {
"bl_idname": "SvVerticesSocket",
"name": "Item",
"properties": {
"use_wrap": true,
"use_simplify": true
}
},
"Other_001": {
"bl_idname": "SvVerticesSocket",
"name": "Other"
}
},
"bl_idname": "SvListItemNode"
},
"List Flip": {
"attributes": {
"location": [
400.0,
-260.0
]
},
"properties": {
"level": 1
},
"inputs": {
"data": {
"bl_idname": "SvStringsSocket",
"name": "data"
}
},
"outputs": {
"data_001": {
"bl_idname": "SvVerticesSocket",
"name": "data"
}
},
"bl_idname": "ListFlipNode"
},
"Stethoscope MK2": {
"attributes": {
"location": [
1120.0,
-180.0
],
"color": [
0.8966601490974426,
0.8966601490974426,
0.8966601490974426
],
"use_custom_color": true
},
"properties": {
"text_color": [
0.949999988079071,
0.949999988079071,
0.949999988079071
],
"location_theta": 1.0080000162124634,
"num_elements": 1,
"compact": true,
"line_width": 86
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
}
},
"bl_idname": "SvStethoscopeNodeMK2"
},
"Viewer Draw": {
"attributes": {
"location": [
880.0,
-120.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"
},
"Circle": {
"attributes": {
"location": [
-300.0,
-580.0
]
},
"properties": {
"rad_": 1.3540000915527344
},
"inputs": {
"Radius": {
"bl_idname": "SvStringsSocket",
"name": "Radius",
"properties": {
"prop_name": "rad_"
}
},
"num Verts": {
"bl_idname": "SvStringsSocket",
"name": "num Verts",
"properties": {
"prop_name": "vert_"
}
},
"Degrees": {
"bl_idname": "SvStringsSocket",
"name": "Degrees",
"properties": {
"prop_name": "degr_"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
}
},
"bl_idname": "SvCircleNode"
},
"Viewer Draw.002": {
"attributes": {
"location": [
-100.0,
-580.0
]
},
"properties": {
"display_faces": 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"
},
"A Number": {
"attributes": {
"location": [
-300.0,
-780.0
],
"label": "Index"
},
"properties": {
"int_": 23,
"selected_mode": "int",
"int_max": 23,
"int_min": 0,
"draw_3dpanel": true
},
"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": "Cylinder",
"from_socket": "Vertices",
"to_node": "Viewer Draw.001",
"to_socket": "Vertices"
},
{
"from_node": "Cylinder",
"from_socket": "Edges",
"to_node": "Viewer Draw.001",
"to_socket": "Edges"
},
{
"from_node": "Cylinder",
"from_socket": "Polygons",
"to_node": "Viewer Draw.001",
"to_socket": "Polygons"
},
{
"from_node": "Cylinder",
"from_socket": "Vertices",
"to_node": "Nearest Point on Mesh",
"to_socket": "Verts"
},
{
"from_node": "Cylinder",
"from_socket": "Polygons",
"to_node": "Nearest Point on Mesh",
"to_socket": "Faces"
},
{
"from_node": "Circle",
"from_socket": "Vertices",
"to_node": "Nearest Point on Mesh",
"to_socket": "Points"
},
{
"from_node": "List Flip",
"from_socket": "data_001",
"to_node": "List Item",
"to_socket": "Data"
},
{
"from_node": "A Number",
"from_socket": "Int",
"to_node": "List Item",
"to_socket": "Index"
},
{
"from_node": "Nearest Point on Mesh",
"from_socket": "Location",
"to_node": "List Flip",
"to_socket": "data"
},
{
"from_node": "List Item",
"from_socket": "Item_001",
"to_node": "Stethoscope MK2",
"to_socket": "Data"
},
{
"from_node": "List Item",
"from_socket": "Item_001",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "Circle",
"from_socket": "Vertices",
"to_node": "Viewer Draw.002",
"to_socket": "Vertices"
},
{
"from_node": "Circle",
"from_socket": "Edges",
"to_node": "Viewer Draw.002",
"to_socket": "Edges"
},
{
"from_node": "Circle",
"from_socket": "Polygons",
"to_node": "Viewer Draw.002",
"to_socket": "Polygons"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment