Questions tagged [pymeshlab]

PyMeshLab is a Python library that interfaces to MeshLab, the popular open source application for editing and processing large 3D triangle meshes. Python bindings are generated using pybind11.

The official repository of pyMeshlab and installation instruction is at https://github.com/cnr-isti-vclab/PyMeshLab

You can find the official documentation at https://pymeshlab.readthedocs.io/.

36 questions
2
votes
1 answer

How to use PyMeshLab to reduce number of faces to a guaranteed specific number

I have a 3D triangular mesh in PyMeshLab that I want to decimate to a certain number of faces. The number of faces after decimation is not guaranteed - which is a problem for me. I need a specific number of faces. I'm currently using…
tommyp
  • 23
  • 3
2
votes
1 answer

How to use PyMeshLab to reduce vertex number to a certain number

I have a batch of triangle meshes and each one has different vertices and faces. I want to reduce the vertex numbers of all the meshes to the same number, 10000. I know I can use simplification_quadric_edge_collapse_decimation to reduce the face…
Sunchi
  • 85
  • 1
  • 9
2
votes
1 answer

How to find vertex and face number via pymeshlab

I'm a newbie of pymeshlab and trying to use this tool to do some batch processing. My question is that how to use pymeshlab to find the total vertex and face number of a mesh?
Sunchi
  • 85
  • 1
  • 9
1
vote
1 answer

Vertex Quality Matrix in PyMeshlab

Using version 2021.10, is there a way to access the quality matrix values per vertex in PyMeshlab? The quality values seem to be used for the color map which I can access using vertex_color_matrix for the current mesh but I can't find the values…
ABalrog
  • 11
  • 1
1
vote
0 answers

Using pymeshlab in a python lamda function

I am having trouble running the "pymeshlab" library on an amazon lambda function. I have tried to use the pymeshlab library from an amazon lamda function (using python) and I don't quite understand how to do it as it doesn't work. First of all I…
1
vote
0 answers

Vertices with normals to simple mesh with faces

Similar to this question: Using just vertices to generate faces in PyMeshLab I am looking for a function in either PyVista or PyMeshLab which constructs a mesh surface given vertices. However, my vertices already have normals. They were obtained…
HelpMe
  • 11
  • 1
1
vote
0 answers

Is it possible to script the MeshLab align function with point based gluing?

I need to make the ability to combine three meshes / point clouds easy to do in a graphical user interface. In MeshLab the "Align" function works perfectly using "Point Based Gluing" for combining the three meshes. But I can't find any script for…
Sam
  • 11
  • 1
1
vote
1 answer

Using just vertices to generate faces in PyMeshLab

I have an array of vertices representing some 3D point cloud, and I would like to import this into PyMeshLab to generate faces for the object (sort of like generating a convex hull, but if the 3D object were vertices of a human's hand, it would wrap…
baubel
  • 87
  • 6
1
vote
0 answers

Using an array to select vertices in PyMeshLab

I very recently started working with processing 3D objects starting off from files obtained from a 3D scanner. I want to automate the volume calculation (and some other metrics) for my colleagues as this otherwise would become too time-consuming. In…
1
vote
1 answer

Transfer color from mesh to point cloud in pymeshlab

I'm trying to convert a 3D model to a colored point cloud. I'm using Motecarlo sampling and then Texture to vertex color. The problem is that I also need color information from the material. I'm using .obj models from the ShapeNet dataset. mesh =…
1
vote
1 answer

PyMeshLab - Target Length abs Filter script - Isotropic Explicit Remeshing

I would like to remesh my model using filter called "Remeshing: Isotropic Explicit Remeshing". In that filter, I'd like to adjust the target length. There are two types of target length, abs and %. But in the filter script available in PyMeshLab,…
grynzy
  • 11
  • 2
1
vote
1 answer

Edge data from generated polyline in Meshlab

I am generating polylines in Meshlab through the 'Compute Planar Section' filter, with code as seen here. for z_value in np.arange(0, 5, 1): ms.set_current_mesh(0) planeoffset = float(z_value) ms.compute_planar_section(planeaxis = 'Z…
1
vote
0 answers

Do some PyMeshLab filters need GPU to work ? (parameterization texturing from registered rasters)

I'm currently using Meshlab (PyMeshLab to be precise) to reconstruct a point cloud and project rasters to generate a new texture. My problem is, when the function "parameterization__texturing_from_registered_rasters()" is called on my script, it…
MartinT
  • 11
  • 1
1
vote
1 answer

How to select an array of vertices in pymeshlab?

I want to remove some vertices stored in a NumPy array from a mesh. How can I select these vertices in pymeshlab based on vertex index or coordinates? Thanks! import pymeshlab from scipy.spatial import KDTree def remove_background(subdir, ms): …
1
vote
0 answers

in pymeshlab, how can I load from an array and directly add custom ID for vertices and faces

I'm using pymeshlab to process meshes directly from Blender as per code below. However I want to be able to link the vertices and faces back to original mesh in Blender so when the mesh has been processed I can display the differences from the…
David
  • 151
  • 1
  • 11
1
2 3