i want to do an interactive “scanning tool” for 3D models. there fore i try to do two things:
1) Already solved: https://discourse.vvvv.org/t/8352 (comparable to Cinema4D’s boole object). 2) ToDo: Highlighting the intersection’s shape and outline, as shown in the illustration.
I already built some stuff, resulting in this:
But there are several problems:
The cross-section’s/intersection’s shape will never be exact as it depends on the amount of intersection lines (approximation). In the Screenshot there are used 11 lines resulting in 22 points, which is too little.
the intersection-node crashes from time to time, while transforming the lines.
Generating the shape only works if there is only one graphical intersection. Otherwise i wouldn’t know how to assign the points to the different shapes.
the intersect-node causes vvvv to crash once i use a big amount of rays/lines and a complex 3D model.
it’s very hard to generate the “correct” intersection’s shape out of the point cloud (screenshots above). I would need some kind of 3D point cloud processing algorithm, like http://pointclouds.org/, which seems to be overdone for this task.
Partial conclusion: The only way i can think of to perform this task well is to write a shader or a new intersect-node using a plane instead of a ray.