3D SoftwareISO 10303AP242STL to STEPScan to CAD
Showcase Image
Pilot project: 3D scan to CAD model

AlpConvert

TPA KKS GmbH is an internationally recognized and globally active company in the fields of pressure equipment, non-destructive testing, liquid gas, cathodic corrosion protection and occupational safety. It is a 100% subsidiary of the TÜV AUSTRIA Group.

TPA KKS GmbH contacted us with a request to develop a prototype for an STL-to-STP converter. This resulted in the AlpConvert project, which was implemented in collaboration with Daniel Waschmann. The difficulty of the task is that the volume information is not retained when exporting from the proprietary CT scanner software. As a result, conventional (online) converters and renowned providers of 3D editing software (such as Autodesk, Blender or FreeCAD) encounter problems.

The experience gained in the field of 3D computer graphics, e.g. through hobby projects such as Gameengine or the 3D Scanner APP, played a decisive role in the further development.

The initial plan was clearly structured: The task was to load an STL file, form a three-dimensional model from it and save it in a suitable format. After a phase of intensive creative work, a detailed plan was developed that closely followed the original idea. In the course of the project, some important steps were added as a result of the knowledge gained.

simplerPlan

The two main aspects concern the (re)construction of surfaces from a grid. A process known as Poisson surface reconstruction is used for this purpose. This makes it possible to calculate a 3D model from the existing points.

poisson Surface Reconstruction

After restoring the volume information, it quickly became clear that the ISO standard 10303-21 is very comprehensive and that numerous different storage schemes exist. The focus was on schema 242, as it is used in the automotive and aviation industries and therefore corresponds most closely to the use case under discussion. However, the text volumes were quite complex and comprehensive, which is why an explorative approach was chosen to examine the file format with test objects.

The first step was to analyze a simple rectangle in STL format.

Viereck-model

The STL format is a text-based file format and stores geometric information structured in plain text.

STL-Code

This information was compared with the same object in STP format. Test and comparison files of HOOPS software were provided. HOOPS acts as the '3D engine' behind applications from Hexagon®, Trimble®, Ansys®, SOLIDWORKS™, Autodesk® and many more. The test files created by HOOPS in STP format were used to reverse engineer the AP242 schematic. Due to the high cost of the software, it was decided not to use it directly, which saved the customer considerable license fees.

STP-code

The conversion of simple objects from STP to STL enabled a pragmatic analysis of the file format.

Viereck mit Dreiecken

In the formats mentioned, 3D objects consist of small triangles that are lined up and joined together to form a 3D object.

Viereck transformation

The triangles were deleted, added, moved or changed, and each change was analyzed in the STP reference file. From the resulting changes, it was possible to deduce how the file format works. This made it possible to develop a solution that saves the customer time and money.

In addition to the logic, a simple interface was also developed to simplify working with AlpConvert:

AlpConvert GUI

External open source components used in the application:

Many thanks to Daniel Waschmann for his extraordinary and committed cooperation!