简体   繁体   English

来自 Meshlab 中生成的折线的边缘数据

[英]Edge data from generated polyline in Meshlab

I am generating polylines in Meshlab through the 'Compute Planar Section' filter.我正在通过“计算平面部分”过滤器在 Meshlab 中生成多段线。 What I would like to be able to do is obtain the data that is used to connect one point to another.我希望能够做的是获取用于将一个点连接到另一个点的数据。 Meshlab holds this data, as when I export my polyline to DXF, the edges are present, correctly joined together. Meshlab 保存这些数据,因为当我将多段线导出到 DXF 时,边缘存在,正确连接在一起。

I imagine a list, where each edge has a start and endpoint (potentially vertex ID), as seen in the DXF would be the most help.我想象一个列表,其中每条边都有一个起点和终点(可能是顶点 ID),如 DXF 中所见将是最有帮助的。

Any guidance in helping obtain this information would be greatly appreciated.任何帮助获取此信息的指导将不胜感激。

I have to bring bad news.我必须带来坏消息。 At current day (October 2021) the edge information that you request is stored internally in the VCG meshes but it is not exposed to python API, so you can't read it using pymeshlab.在当天(2021 年 10 月),您请求的边缘信息内部存储在 VCG 网格中,但未向 Python API 公开,因此您无法使用 pymeshlab 读取它。 You can only read the number of edges using the m.edge_number() method.您只能使用 m.edge_number() 方法读取边数。

If you need to continue with your project, yours options are:如果您需要继续您的项目,您的选择是:

  1. Write one issue at https://github.com/cnr-isti-vclab/meshlab/issues/ kindly asking the developers to expose the edge information to pymeshlab api.https://github.com/cnr-isti-vclab/meshlab/issues/写一期,恳请开发者将边缘信息公开给 pymeshlab api。
  2. If your surfaces are convex, you can rebuild the edge data computing the convex hull of the vertex, or by sorting the vertex by angle around the centroid of the vertex.如果您的曲面是凸面,您可以重建边缘数据,计算顶点的凸包,或通过围绕顶点质心的角度对顶点进行排序。
  3. If your surfaces are complex, you can still store the mesh into a dxf file, and then parse the dxf to read the info back.如果您的曲面很复杂,您仍然可以将网格存储到 dxf 文件中,然后解析 dxf 以读取信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM