surfemb
surfemb copied to clipboard
'ambient_occlusion' filter throws core dumped for tless models
When I run the surface_samples_remesh_visible script for tless objects the processing fails with
Aborted (core dumped)
did anyone face the same issue or did I miss some steps before running the script?
@praveen5733 I have the same problem. Did you solve the problem??
I have the same problem too. How did you slove it?
I'm having the same problem
I have solved it but dont remember what the exact problem is, I think it was about pymeshlab versioning. please try previous versions. One of them doesnt give that problem.
I already tried various versions, I will try more versions and see if it works.
Here was my workaround.. I hope it will work for you too ... ... for mesh_fp in tqdm(list(mesh_folder.glob('*.ply'))): remesh_fp = remesh_folder / mesh_fp.name
ms = pymeshlab.MeshSet()
ms.load_new_mesh(str(mesh_fp.absolute()))
ms.repair_non_manifold_edges_by_removing_faces()
ms.subdivision_surfaces_midpoint(iterations=10, threshold=pymeshlab.Percentage(5.0))
### There is a note here
ms.ambient_occlusion(occmode='per-Face (deprecated)', reqviews=256)
### -------
face_quality_array = ms.current_mesh().face_quality_array()
minq = face_quality_array.min()
... ...
Here is my note: The ambient_occlusion works in this way but after the method that contains that line ends, somehow the app is closed, But it works
the pymeshlab version is pymeshlab==0.2 I have made it work in windows, but I guess It would work in ubuntu also.