Find a line with the highest density of points
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi all,
I am working on a project where I have to find a square object on a patch3 object. This patch3 object is essentially a 3D mesh consisting of vertices, vertices and curvatures and I am looking for a square object on this patch3 object. I can clearly see the square when I plot my object with plot3, and I have the coordinates and curvature values of each vertex that has been used to create this patch3. The vertices that belongs to the square has higher curvature compared to other vertices, but this is not always the case. And, I know the dimensions of my square object in real life: 5 cm x 5cm.
I tried many ways to find this square object, and my current approach is to find the lower line of the square on the patch3 object.
I have an array consisting of x,y, z coordinates and the curvature value of the respective vertex. I want to find a line where the highest curvature values are dense (more than anywhere). Then I want to find the midline of this line which is essentially what I need from the square. How could I find the highest density of points which has high curvature values?
Thank you for your answers in advance.
Best, Gülce
7 comentarios
Matt J
el 2 de En. de 2023
Editada: Matt J
el 2 de En. de 2023
@Gulce Lale: you do not need to rely on confidential data to provide an illustration. You could fabricate an example, preferably a small one.
Like @Jiri Hajek, I do not understand what is meant by the "curvature of a vertex", so you should also provide a reference to whatever online mathematical literature you think describes it.
Finally, the patch3 object that you are mention is not a native Matlab data type, so we have no clear picture what information that carries. You are saying you are plotting with plot3, but plot3 generates line objects as output, not patch objects, and Matlab's native patch object does not contain any properties describing "curvature".
Respuestas (0)
Ver también
Categorías
Más información sobre Polygons en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!