Meshlab - Get identifiers of selected vertices

I want to select a grid area and get the identifiers of the selected vertices so that I can use them in my pipeline processing pipeline.

For example, if there is a three-dimensional hand grid, you can select the vertices that belong to each fingertip. Obtaining the identifiers of these vertices is very useful for several applications, such as tracking, cancellation, etc.

Meshlab obviously uses the identifiers of these vertices under the hood, but can this information be displayed to the user? There are many online tutorials on the Internet on how to select (differently) a certain region of the grid and apply some processing function, but I did not find what it says to receive raw information about the selected area.

+4
source share
3 answers

The solution I found is rather tedious.

It appears that although Meshlab explicitly uses these identifiers under the hood, this information is not provided to the user. Therefore, I follow this heuristic:

  • Select the vertex of interest with the standard MeshLab tool.
  • Invert selection.
  • Delete all the vertices and get a 1-point pointcloud / mesh result.
  • Export this as a .off file.
  • Open the exported file and read the coordinates of this unique point. One coordinate (for example, X) is enough.
  • Search in the source .off file or in the source mesh / pointcloud structure to find the point / vertex with this coordinate.
  • There you have it, you have the identifier of the selected vertex in the original structure.
  • ( , ), PCL, Kd-Tree pointcloud, () "" ().

:

enter image description here

+1

MeshLab:

  • Render = > , .
  • " ", . , , .

0 1, , MeshLab.

2017 : MeshLab (2016.12) . " " Space, . p, .

, Render = > Show Label , CANNOT START DECORATOR: the layer contains too many faces and vertices..

+8

use the "Get Info" button and follow the instructions on the left to press "t" and select a vertex and press p. to select one vertex

+1
source

Source: https://habr.com/ru/post/1531349/


All Articles