Actinav - How to Use Meshlab to Resize Your Part Models
In this technote, we will be discussing how to resize your STEP files. Typically most STEP files are accepted into ActiNav but there are cases where there is too much detail in your part model and the files size can slow down ActiNav.
Create Date: 23 March 2021
PREREQUISITES FOR THIS EXAMPLE:
- ActiNav
- Download Meshlab Free Online: https://www.meshlab.net/#download
- Save your Step File as an STL format
(Please note you must follow every step exactly, if you make a mistake you will need to restart from scratch).
Procedure:
- First hit File and Import your Mesh file(STL).
- Once you have loaded in your part. Left Click your mouse and pan around your part to ensure everything looks correct. You can also select the X,Y,Z Origin button to help with your origin.
- To reset your part view Select View and then Select Reset Trackball.
- Now ensure your part has the right Scale. To check this you will need to measure your part. Select Edit and then the Measure Tool.
- Left Click on two points on your part and mesh lab will output the value.
- Notice the value it outputs. We want the mesh file to be in a Meter scale, NOT a millimeter scale.
- To change your scale select Filter ->Normals,Curves and Orientations ->Transform: Scale,Normalize.
- Once Selected the following Pop will appear. You only need to change the X Axis to .001 and have Uniform Scaling checked. This will resize your part by .001 in every direction. Now hit Apply and Close the pop up. (Please not your units, if you are in English units you will need to resize accordingly)
- This will make it appear that your part has “disappear”. The part did not disappear, it has just been scaled down by .001 in every direction. You should see something similar to the following image.
- Repeat Step 3-6 to Reset your Trackball and Remeasure your part. You should now see your part in the correct scale.
- Now look at the bottom of your screen in the purple area and you need to notice the number of Faces and number of Verticies. Depending on the numbers you will need to either add in points(Steps 12-13) of data or remove points(Steps 14-15) of data from your model. If you are using Edge Detection you will need the number of vertices to below 20,000. If you are using Volumetric Detection then you will need the number of vertices to less than 100,000.
- If you need to Add in points of data. Select Filters -> Remeshing,Simplification and Reconstruction->Subdivision Surfaces: Midpoint.
- The following pop up will appear and the only number you need to change is the number of Iterations. This is a multiplier so whatever values you have for vertices it will multiply by this value. For this example we will use the default value of 3. This is not an exact multiplier but it is a very close approximation. You then select Apply and you then can close out the pop up.
- To Remove points of Data. Select Filters ->Remeshing,Simplification and Reconstruction->Simplification: Quadric Edge Collapse Decimation.
- The following pop up will appear. The only number you need to change is the Target Number of Faces. You can now manually adjust the number of faces exactly, in this example I have set the value to 20,000. You then can select apply and can then close out the pop up.
- Now that you have your part in the correct scale and have the right number of vertices you're done. Now you just need to save your mesh file. Select File and Export Mesh As.
- The following pop up will occur and you then just need to save your file as a .OBJ format.
- You will see the next pop following this one below. Ensure that you only have the Normal check boxed. Occasionally you will see the Color check boxed. Please uncheck Color, we only want to see the Normal checked.
- Now you can save your file to your flash drive and use it with ActiNav.