Removing Invisible Geometry

 
< previous page next page >

Within this tutorial, we are going to use RapidCompact CLI to remove invisible interior parts of a mesh. If the input model has a high amount of interior geometry, which for example CAD files often have, the resulting model will be significantly smaller than the original file, but visually identical when viewed from the outside.

Table of Contents

Getting Started

 back to top

To get started with this tutorial, we will need to have a 3D model to play with. Please go ahead and download the cassini model (courtesy of NASA), which we will use throughout the tutorial, here. The data should look like this:

Using the Configuration Setting to Remove the Interior Invisible Parts

 back to top

To apply the culling of interior parts, which will reduce the mesh further, apply now the following command on your command line (for example, Windows PowerShell) and adjust the decimation target value to 100% for better comparison:

     rpdx -i cassini.stl -s compact:removeInvisibleGeometry true -c f:100% -e result/cassini.stl

This will create a new directory called result, and the resulting STL file will be stored there. As you can see by checking the size of the resulting model, the optimized data set is a lot smaller than the original data. With an x-ray rendering, we can see the difference in the 3D mesh and interior geometry before and after the optimization. This is how the original looks like:

As you can see in the following view of the optimized model, the cassini model has some interior parts which can be removed to improve the overall polycount and thus filesize:

Note how the cube structure and other smaller interior parts were completely deleted, while other mesh-parts were partially removed.

Tip Note that this setting only works in conjunction with the compact command. If no decimation is desired please use a face or vertex target of 100%. for example:
rpdx -i cassini.stl -s compact:removeInvisibleGeometry true -c f:100% -e result/cassini.stl


< previous page next page >