![]() # name of class subfolder where remeshed files will be saved # Skips meshes that start with over 90000 faces, and also doesn't output a file if the processed mesh does not end up less than 20000 faces This isnt recommended for doing like-for-like comparisons with other methods but can trim down the dataset for quick prototyping. You can call compute topological measures within meshlab and parse the output to console to automatically remove large meshes during processing. My chosen model (meshCNN) produced OOM errors for meshes that were still too large after simplification (a problem of using percentage reduction simplification). || snap run shlabserver -i "$category/manifold/$(basename "$filename")" -o "$category/$outputFolder/$(basename "$filename")" -s "$simplificationScript" ManifoldPlus/build/manifold -input "$filename" -output "$category/manifold/$(basename "$filename")" -depth 8 || mkdir $category/$outputFolderįor filename in $category/train/*.obj do SimplificationScript="simplification.mlx" # produces a folder for manifoldPlus output and another for the further simplified data #MESHLAB SIMPLIFY MESH INSTALL#I've seen people just call meshlabserver but my snap install needed snap run shlabserver Note that the way you call meshlab server can change based on how it was installed. #MESHLAB SIMPLIFY MESH CODE#I learned bash for this project so the following code is very messy and will need quite a lot of playing around with but should be an alright starting point. This allows you to chain the manifoldPlus script followed by the simplification script in a Bash file looping over each mesh to process. This script can be run by calling the meshlab server from the command line, passing the script and mesh to process as arguments. Once a proper workflow is established, select filters -> show current filter script -> save script Note that some methods break the manifold-ness ("repair non manifold vertices by splitting" may help). Specifying a percentage reduction instead of a target number of faces may genealise better for example. You might want to try these settings on multiple meshes from your dataset to make sure they generalise well. tweak the settings until you get satisfactory results. Then chose one of the simplification methods. No problem! With MeshLab installed, load up a mesh, then selectįilters -> Remeshing, Simplification and reconstruction ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |