How to slice spline with plane?

How to slice spline with plane?

RyuMaster666
Contributor Contributor
1,272 Views
4 Replies
Message 1 of 5

How to slice spline with plane?

RyuMaster666
Contributor
Contributor

Hey! I think this should be something trivial, but unfortunately, slice modifier works only for the meshes. Is there any way to slice spline using plane in maxscript or with/wothout help of some modifier?

0 Likes
1,273 Views
4 Replies
Replies (4)
Message 2 of 5

klvnk
Collaborator
Collaborator

I've started a thread on cgsoc with some code that could be used as a basis for this

0 Likes
Message 3 of 5

leeminardi
Mentor
Mentor

(Edited from original post)

 

I was thinking of using a numerical approach for finding the intersection. The function InterpCurve3D can be used to find the coordinates of a point on a spline given a value for the parameter s.

 

I'm removing my original post until I have some time to experiment with this approach.

lee.minardi
0 Likes
Message 4 of 5

denisT.MaxDoctor
Advisor
Advisor

Firstly, I want to note that Klvnk offered a completely working solution above. I tested it and even made a plugin - Cut Spline By Plane...
But... I have been in this business for almost 30 years, but during this time I have never encountered the need to calculate the intersection of Bézier spline and plane in 3D (in 2D it's a pretty common task). Just wondering why do you need it? Could you provide an example where this might be useful?

0 Likes
Message 5 of 5

mbrinkmanJVJFC
Contributor
Contributor

Is this Cut Spline By Plane plugin available somewhere?

0 Likes