I made the prototype some weeks ago as a proof of concept, but never found the time to finish it. So it could be a good exercise :).
The goal is to be able to slice a polygon mesh between two vertices.
Using the factory Slice Polygon node, it won't work as it would slice the polygons using an infinite plane, so you will need to create your own slicing algorithm (stay calm, it won't hurt :), to "clamp" the slicing plane.
Building such compound, we will learn how to split some edges using some geometry rules and then how to connect the new vertices with some new edges.
We can decompose the tool in several tasks :
- We need a way to translate two vertices and an up vector into a plane in ICE.
- We need to find the edges cutting this plane.
- On those specific edges, we need to compute the exact split ratio and then do the split.
- Then, we will add the new edges.
I don't think we will do it in one week as I'm missing time on my side. So lets start next week with the first task : How to define the cutting plane in ICE using three input points !
Feel free to ask some questions if you are interested in this exercise.
Cheers,
Guillaume Laforge