how to move a sphere until it intersect a surface?
显示 更早的评论
Hi mates!
My idea is creat a sphere with center fixed in x and y but free in z. So it had movemet in z, up and down. Then, i have a surface and i want to move the sphere until it intersect the surface and get the intersection point. Someone can help? thanks!
10 个评论
Kevin Phung
2019-3-7
what part do you need help with specifically?
Luís Asevedo
2019-3-11
Jan
2019-3-11
There is an infinite number of ways to "move a sphere". Do you want a linear translation? Do you really need to move the sphere, or would the determination of the final position be sufficient already? Wouldn't it be trivial to determine the center of a sphere touching a surface at a specific point?
Luís Asevedo
2019-3-11
KSSV
2019-3-11
YOu can use knnsearch......read about it.
Jan
2019-3-11
How is the surface defined?
Luís Asevedo
2019-3-11
Jan
2019-3-11
@Luis: Please do not let us guess, what your inputs are. Maybe you have a real 3D object and it is a part of the problem to digitize the surface. Or maybe the surface is stored as equi-distributed Z values in a MAT file. Or you have a surface or patch object. Maybe the suface is convex or concave or perhaps you have a point cloud and need to create an alpha-shape at first. It would be a waste of time, if I guess the wrong type of input.
John D'Errico
2019-3-11
编辑:John D'Errico
2019-3-11
Yes. It does matter what the surface is. Is this a functional form, like z(x,y)? Is it a surface that you created, possibly using meshgrid? Is is just a scattered list of points with no defined connectivity? I'd solve the problem differently depending on what I have to deal wih.
Luís Asevedo
2019-3-12
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

