Intersection of two hyperboloids

10 Ansichten (letzte 30 Tage)
Petr
Petr am 7 Mär. 2013
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
  1 Kommentar
Azzi Abdelmalek
Azzi Abdelmalek am 7 Mär. 2013
Post the code that plots those curves

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Petr
Petr am 10 Mär. 2013
Anyway...I did it by cumulation in the end...I counted the errors and it is acceptible in some conditions...
Thanks...

Weitere Antworten (3)

Matt J
Matt J am 8 Mär. 2013
Bearbeitet: Matt J am 8 Mär. 2013
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 am 8 Mär. 2013
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 Kommentar
Matt J
Matt J am 8 Mär. 2013
Is there a reason you don't just find the intersection analytically?

Melden Sie sich an, um zu kommentieren.


Petr
Petr am 8 Mär. 2013
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 Kommentar
Matt J
Matt J am 8 Mär. 2013
Bearbeitet: Matt J am 8 Mär. 2013
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by