STL Lattice Generator

Version 1.4.0.0 (680 KB) by Marten
Lattice generator program in STL format for additive manufacturing
4.7K Downloads
Updated 27 Jan 2015

View License

The Lattice Generator is a simple MatLab program that automatically generates various lattice geometries direct to STL format. These periodic structures are intended for use with the metallic additive manufacturing technologies of Selective Laser Melting (SLM) or Electron Beam Melting (EBM), however could be applied to a number of other additive technologies that require the input of an STL file.
Developed out the apparent need for a fast and simple way to generate STL lattice structures for research purposes, the program is a part of a preliminary work in developing a much larger lattice generation capability. In its current state, the program includes the following uniform lattice types:
- Body Centred Cubic (BCC)
- Face Centred Cubic (FCC)
- Modified FCC variants removing x-y, y-z, and x-z planes
- Combined BCC and FCC cell
- Modified combined BCC and FCC removing x-y plane
- Simple cube (box cell)
In theory, any lattice cell configuration could be added to the program provided that it can occupy a cubic volume and is able to be tessellated.
In addition, it was observed that creating Finite Element (FE) meshes was incredibly time consuming via traditional techniques. In response, the lattice generator script has the added functionality of generating FE meshes automatically in NASTRAN format. Other formats are possible, however for the purposes of the development project NASTRAN was all that was needed. In its current form, the lattice FE mesh is a 3D beam element mesh with the properties of the STL lattice applied. Loads or constraints are not generated, and the material properties are only set as a place holder. These aspects need to be modified in a pre-processor (HyperMesh, Patran etc.).

Cite As

Marten (2024). STL Lattice Generator (https://www.mathworks.com/matlabcentral/fileexchange/48373-stl-lattice-generator), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: geom3d, Quaternions

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

New features and significant performance improvements have been added with this version, including: Binary STL file support, a new rapid uniform lattice creation option, new bulk form STL writing, and new cell types.

1.3.0.0

Bug fixes

1.2.0.0

Bug fixes and added cell types (FCC with added Z struts)

1.1.0.0

Full scripts and GUIs now available.

1.0.0.0