I’m trying to create an automation to extrude and slice window frames.
I have part of the procedure done (the easy part), but I got stuck now on getting the diagonal between the edges to create a slicing plane. My idea is to get the 2 tangent vectors coming from each vertex of the frame, and extract a cross-product vector that will be my guide to create a slicing plane. This should work for windows with 90° corners or with arches:
I’m working with a rectangle for now, and what I did was:
- Get the edges
- Evaluate curve at the edges
- Get the tangents
But I’ve been able to get a vector from the edge starting point towards endpoint, and I can’t figure out how to get the other vector:
I’ve been burning my brain for some time now. Any help?



