Hi All,
I’ve packaged the curves intersection node patch I’ve been working on. It would be useful to get user feedback on performance and usefulness of the node in its current state. (Usual caveats of package builds apply)
Download: Blender Builds - blender.org
PR: https://projects.blender.org/blender/blender/pulls/109393
This uses a bvhtree to store the curve segments. These are then sampled according to the mode.
Outputs curve intersections as a collection of points with the following attributes.
- position
- curve_index
- length (intersection as length along curve)
- factor (intersection as factor of curve length)
- direction (of the curve segment where intersection is found)
- duplicate (mark if intersection between two curves is duplicate of first match)
Four modes:
Self - checks a spline for self intersections only
All - checks all spline edges for intersections
Plane - checks all spline edges for intersections with a plane
Surface - checks all spline edges for intersections with a mesh
Inspired by this post in stackexchange: