On 17/12/2017 at 14:02, xxxxxxxx wrote:
I try to build a sweep that is following a spline that is projected on a mesh surface. The contour spline of the sweep should be placed exactly on the surface (see screenshot). The manual way would be (or maybe this already wrong?) :
- select a few edges
- "edge to spline"
- create contour spline
- move the contour axis
- put path and contour under spline object
Using any simple objects like a sphere or cone I get step 4) by moving the contour axis either in x or y direction (or both). But using a more detailed mesh with a projected spline this manual method is very inaccurate.
How can I do this using python ?
The starting point of the path spline seems to be the important one in order to calculate which of the contour spline axis has to be moved how much for placing the sweep exactly ON the edge. I tried to get the normal vector of that first path point in order to align the contour spline properly - but this is of no use since the spline axis have to be moved and not the spline itself.
I'm totally lost here ... can anybody help ?