Skip to content

DAP releases open-source geometry algorithms for AM CAM software

Share this article

LinkedInFacebookXWhatsAppE-mail

Multicoloured 3D components nested together in a rectangular build volume.
Image 1: 3D model of a nested build job generated with the DAP Nesting Software. The relative nesting density was used as the objective. © RWTH DAP; 3D-Modelle: Cui et al. 20231.1

The Chair of Digital Additive Production (DAP) at RWTH Aachen University is making computational geometry algorithms for the development of computer-aided manufacturing software for additive manufacturing (AM CAM software) available as open source. 

AM CAM functions, such as determining the orientation of part geometries and arranging them without overlapping within the build volume through nesting (as seen in the multicolor image below), rely on geometry-processing algorithms.

Multicoloured 3D components nested in a rectangular build volume.
Image 1: 3D model of a nested build job generated with the DAP Nesting Software. The relative nesting density was used as the objective. © RWTH DAP; 3D models: Cui et al. (2023).

Algorithm choice and implementation significantly affect an AM CAM software system’s computational workload, memory requirements, and robustness. These factors, in turn, affect the manufacturing costs, lead times, and quality of additively manufactured parts.

As parts become larger and machines incorporate multiple lasers, the volume of data that AM CAM software must process continues to grow. If data structures and geometry algorithms scale poorly, processing times can increase from a few minutes to several hours or even days. At the same time, memory requirements may increase severalfold, eventually pushing the software to the limits of practical usability.

More powerful computing infrastructure can compensate for this only to a limited extent. In many cases, efficient geometry-processing algorithms can avoid much of this additional computational overhead altogether.

Geometry algorithms for robust, high-performance CAM software

DAPComputationalGeometry (DAP-CG) provides geometry algorithms for optimizing or developing AM CAM software for build orientation, support structure generation, nesting, slicing, and scan strategy calculation.

The library is implemented in C# and builds on the open-source libraries geometry3Sharp and Clipper2. It contains substantial extensions and performance optimizations, particularly for processing two-dimensional polygons and vectors.

 These include algorithms that aggregate multiple polygons into one (as seen in the image below). They reduce data volume before computationally intensive processing steps. Other polygon operations robustly avoid self-intersecting polygons and remove redundant polygon vertices. By using modern C# language features such as Span and SIMD, the library significantly accelerates the translation and rotation of geometries.

Red lattice structures enclosed by simplified blue collision polygons.
Image 2: Aggregation of lattice structures (red) into simplified collision polygons (blue). © RWTH DAP.
Red part cross-section surrounded by a blue offset contour.
Image 3: Offset (blue) of a part cross-section (red). © RWTH DAP.

Developed for industrial requirements

The functions included in DAP-CG originated from industry-oriented development tasks at DAP. During the development of nesting optimization software in the project “Industrialization and Digitalization of Additive Manufacturing (IDAM)”, the use of a polygon compression algorithm reduced the memory required for nesting by a factor of 5. Applying polygon compression in slicing and scan strategy calculation software achieves savings of a similar magnitude. In practice, this determines whether a standard desktop computer with 32 GB of RAM can still process a large build job. Otherwise, the job requires a workstation or server with several times that amount of memory. For rented computing infrastructure, this also determines how much memory the user pays for.

A second application example is the institute’s part orientation software. Based on quality- and cost-related target criteria, it determines the most favorable orientation in which a part is manufactured.

Algorithms from DAP-CG calculate, among other things, whether and to what extent the various orientation options require support structures. These are one of the key cost drivers and post-processing factors in additive manufacturing.

Integrating DAP-CG into your own software environment

DAP-CG is released under the Boost Software License, a widely used permissive open-source license (https://spdx.org/licenses/BSL-1.0.html). Researchers and industry can therefore use the library free of charge, including in commercial and industrial products.

Source: RWTH DAP — DAPComputationalGeometry code and licence.

Source: Cui et al. (2023), Dense, Interlocking-Free and Scalable Spectral Packing of Generic 3D Objects.

THE 3D ADEPT WEEKLY NEWSLETTER

The industry moves fast. Stay ahead.

Every week, the latest additive manufacturing news, in-depth features and real-world applications, straight to your inbox. Plus, be the first to know when a new issue of 3D ADEPT Mag is out.

Free · One email a week · Unsubscribe anytime

Clicking loads our email provider’s sign-up form, including its analytics and Google’s anti-bot protection. You’re only subscribed if you complete the sign-up. Read our privacy policy.

Open the form in a new tab ↗

Share this article

LinkedInFacebookXWhatsAppE-mail

The weekly newsletter

Essential AM knowledge, delivered weekly.

News, in-depth features and industry perspectives, in your inbox.

Receive the newsletter