I want to find out points whose coordinates are within the volume formed by a cone shape.
Ältere Kommentare anzeigen
Hello,
I have plotted few points in a 3D volume as shown in the figure below:

I want to plot a 3D righ Cone from a few specefic points as shown:

These cones are 3D volumes and I want to find out points whose coordinates are within each cone. for example which point is within yello cone and which one in red and which one in purple cone.
Can some one help?
Akzeptierte Antwort
Weitere Antworten (1)
Matt J
am 27 Apr. 2022
0 Stimmen
Draw a vector from the cone vertex to the point and compute the angle of this vector to the cone's axis. If the angle is less than the angular width of the cone, then the point is inside the cone. This assumes that the cone is not of finite length.
4 Kommentare
Tamoor Shafique
am 28 Apr. 2022
I don't know how you are parametrizing the cone. Ideally you would have the vertex, the cone angle, and the direction vector of the cone's axis. Without loss of generality, assume the vertex is at the origin (you can always shift your coordinate system to achieve this). Then the position vector of your query point needs to form an acute angle with respect to the direction vector of the cone's axis.
Tamoor Shafique
am 28 Apr. 2022
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!