Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify.py not working #1

Open
waseemkhan1989 opened this issue Mar 31, 2019 · 0 comments
Open

simplify.py not working #1

waseemkhan1989 opened this issue Mar 31, 2019 · 0 comments

Comments

@waseemkhan1989
Copy link

Hi,

I tried to simplify some .OBJ models but your script seems to have some problem. Following is what I got when I tried to run:

C:\3DMeshBulkSimplification-master>python simplify.py Vorrichtung.stl Vorrichtung_s.stl 10000 True

Detecting Meshlab server Hosting Operating System ...

You appear to be on Windows machine ...
Number of Arguments Given to the script: 5 arguments.
TexturesFlag: True
meshlabserver cmd = meshlabserver -l TEMP3D_measure_topology_log.txt -i "Vorrichtung.stl" -s "TEMP3D_measure_topology.mlx"
START OF MESHLAB STDOUT & STDERR
Loading Plugins:
Current Plugins Dir is: C:/Program Files/VCG/MeshLab/plugins
Total 241 filtering actions
Total 12 io plugins
Log is saved in TEMP3D_measure_topology_log.txt
Opening a file with extention stl
FilterScript
Reading filter with name Merge Close Vertices
Reading Param with name Threshold : RichAbsPerc
Reading filter with name Change the current layer
Reading Param with name mesh : RichMesh
Reading filter with name Compute Topological Measures
no additional memory available!!! memory required: 1869000
LOG: 2 Successfully merged 0 vertices
no additional memory available!!! memory required: 525456
no additional memory available!!! memory required: 525456
LOG: 2 V: 10769 E: 32871 F: 22250
LOG: 2 Unreferenced Vertices 0
LOG: 2 Boundary Edges 0
LOG: 2 Mesh is composed by 59 connected component(s)

LOG: 2 Mesh has 504 non two manifold edges and 1032 faces are incident on these edges

LOG: 2 Mesh has 4 non two manifold vertexes and 52 faces are incident on these vertices

LOG: 2 Mesh has a undefined number of holes (non 2-manifold mesh)
LOG: 2 Genus is undefined (non 2-manifold mesh)
manifold = False
non_manifold_E = 0
non_manifold_V = 0
vert_num = 10769
edge_num = 32871
face_num = 22250
unref_vert_num = 0
boundry_edge_num = 0
part_num = 59
non_manifold_edge = 504
non_manifold_vert = 4
hole_num = undefined
genus = undefined

Number of faces of original mesh is: 22250

Creating a folder to store the decimated model ...........

Beginning the process of Decimation ...........
meshlabserver cmd = meshlabserver -i "Vorrichtung.stl" -o "10000/Vorrichtung_s.stl" -s "C:\Users\WASEEM\AppData\Local\Temp\tmprt194ltq.mlx"
START OF MESHLAB STDOUT & STDERR
Loading Plugins:
Current Plugins Dir is: C:/Program Files/VCG/MeshLab/plugins
Total 241 filtering actions
Total 12 io plugins
Opening a file with extention stl
Mesh C:/Users/WASEEM/Desktop/3DMeshBulkSimplification-master/Vorrichtung.stl loaded has 66750 vn 22250 fn
output mesh C:/Users/WASEEM/Desktop/3DMeshBulkSimplification-master/10000/Vorrichtung_s.stl
Apply FilterScript: 'C:/Users/WASEEM/AppData/Local/Temp/tmprt194ltq.mlx'
FilterScript
Reading filter with name Merge Close Vertices
Reading Param with name Threshold : RichAbsPerc
Reading filter with name Change the current layer
Reading Param with name mesh : RichMesh
Reading filter with name Simplification: Quadric Edge Collapse Decimation (with texture)
Reading Param with name TargetFaceNum : RichInt
Reading Param with name TargetPerc : RichFloat
Reading Param with name QualityThr : RichFloat
Reading Param with name PreserveBoundary : RichBool
Reading Param with name BoundaryWeight : RichFloat
Reading Param with name OptimalPlacement : RichBool
Reading Param with name PreserveNormal : RichBool
Reading Param with name PlanarQuadric : RichBool
Reading Param with name Selected : RichBool
Reading Param with name Extratcoordw : RichFloat
Starting Script of 3 actionsfilter: Merge Close Vertices
no additional memory available!!! memory required: 1869000
LOG: 2 Successfully merged 0 vertices
Successfully merged 0 vertices
filter: Change the current layer
no additional memory available!!! memory required: 525456
Successfully merged 0 vertices
filter: Simplification: Quadric Edge Collapse Decimation (with texture)
no additional memory available!!! memory required: 525456
Successfully merged 0 vertices
Problem with filter: Simplification: Quadric Edge Collapse Decimation (with texture)
Failed to apply script file C:/Users/WASEEM/AppData/Local/Temp/tmprt194ltq.mlx

Houston, we have a problem.
MeshLab did not finish successfully. Review the log file and the input file(s) to see what went wrong.
MeshLab command: "meshlabserver -i "Vorrichtung.stl" -o "10000/Vorrichtung_s.stl" -s "C:\Users\WASEEM\AppData\Local\Temp\tmprt194ltq.mlx""
Where do we go from here?
r - retry running MeshLab (probably after you've fixed any problems with the input files)
c - continue on with the script (probably after you've manually re-run and generated the desired output file(s)
x - exit, keeping the TEMP3D files and log
xd - exit, deleting the TEMP3D files and log
Select r, c, x (default), or xd: c
Continuing on ...

Process of Decimation Finished ...

Copying textures (PNG and JPEG) into the folder of decimated model....

Found the LIST of images in PNG and JPEG (textures):
['MMSEV_Bump_v1s.png', 'MMSEV_Color_v2s.png', 'MMSEV_Reflect_v1s.png', 'MMSEV_spec_color_v1s.png', 'MMSEV_Spec_v1s.png']

Any idea, how to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant