Intersection of two hyperboloids

13 次查看(过去 30 天)
Hi,
I have a question about intersection of two hyperboloids. I can easily plot them with plot3 or surf so I can clearly see the intersection of those hyperboloids(circle) but I need somehow to get only the intersection function. By that I mean values in matrix. Does anyone know how to do that ? I didnt find any solution anywhere and I couldnt come with anything good myself...
"Long story short" I need something like this http://www.mathworks.com/matlabcentral/fileexchange/11837 but in 3D for somethink else than just simple intersection of planes...
Thanks, Peter

采纳的回答

Petr
Petr 2013-3-10
Anyway...I did it by cumulation in the end...I counted the errors and it is acceptible in some conditions...
Thanks...

更多回答(3 个)

Matt J
Matt J 2013-3-8
编辑:Matt J 2013-3-8
You could try looping over planar cross sections of the hyperboloids and apply the FEX file you referenced to their 2D cross sections. I.e., find the intersection of the 2D curves in each planar cross sections and make a cumulative record all the intersections in all the cross-sections.
You would want to loop over planes that are as perpendicular as possible (not parallel) to the plane of the intersecting circle.

Petr
Petr 2013-3-8
I probably should have said that I could do it as a cumulation for example in Z plane row by row...but that takes about a 2-3 min...
I just need something quicker because I need to do that 2-3 times...
So you see that 10 min for result is quite a lot...
  1 个评论
Matt J
Matt J 2013-3-8
Is there a reason you don't just find the intersection analytically?

请先登录,再进行评论。


Petr
Petr 2013-3-8
Yes...those equations do not have analytical solution...and numerical it always exceeds limit...plus when there is a low of values in my case circle it is difficult...I have to do it very precisely with high accuracy...but even then it is analytically unsolvable...
That's why I whink is easier to "plot" them and then somehow determine the intersection...
  1 个评论
Matt J
Matt J 2013-3-8
编辑:Matt J 2013-3-8
I can't see why the analytical solution is difficult. Are the hyperboloids rotated/disaligned with the coordinate axes? If analytical solution is difficult, then how do you already know the intersection is a circle?
If you need high accuracy, I don't see how the plotting tool will help. The intersection obtained from discrete plot samples has to use some manner of interpolation, and that will cost you accuracy.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by