Best Practice - File Preparation For 3D Printing With FDM and PolyJet
Best Practice - File Preparation For 3D Printing With FDM and PolyJet
File Preparation
for 3D Printing
with
FDM® and PolyJet™
DOC-08545 Rev. C
Best Practices File Preparation for 3D Printing with FDM and PolyJet
Copyrights
© Copyright 2017–2019 Stratasys. All rights reserved.
No part of this document may be photocopied, reproduced, or translated into any human or
computer language in any form, nor stored in a database or retrieval system, without prior
permission in writing from Stratasys. This document may be printed for internal use only. All
copies, shall contain a full copy of this copyright notice.
Trademarks
Stratasys, GrabCAD Print, PolyJet, Objet Studio are trademarks of Stratasys and/or
subsidiaries or affiliates and may be registered. All other product names and trademarks are
the property of their respective owners.
Liability
Stratasys shall not be liable for errors contained herein or for incidental or consequential
damages in connection with the furnishing, performance, or use of this material. Stratasys
makes no warranty of any kind with regard to this material, including, but not limited to, the
implied warranties of merchantability and fitness for a particular purpose. It is the responsibility
of the system owner/material buyer to determine that Stratasys material is safe, lawful, and
technically suitable for the intended application as well as identify the proper disposal (or
recycling) method consistent with local environmental regulations. Except as provided in
Stratasys' standard conditions of sale, Stratasys shall not be responsible for any loss resulting
from any use of its products described herein.
Disclaimer
Customer acknowledges the contents of this document and that Stratasys parts, materials, and
supplies are subject to its standard terms and conditions, available on
http://www.stratasys.com/legal/terms-and-conditions-of-sale, which are incorporated herein by
reference.in certain jurisdictions.
The specifications and/or information on which this document is based are subject to change
without notice.
January 2019
DOC-08545 Rev. C
Contents
About This Guide.......................................................... 4
STLs and 3D Printing ................................................... 5
Overview (Standard Triangulation / Tessellation Language)............ 5
STL Settings..................................................................................... 5
Resolution ................................................................................................5
Angular Tolerance & Chord Tolerance/Deviation......................................7
STL Output Types ............................................................................ 9
Exporting Multi-Part STLs ................................................................ 9
Assemblies and Tolerances......................................................................9
Multi-Material/Color Capabilities.............................................................10
Using SolidWorks for STL Generation ........................................... 12
Manipulating Meshes.................................................. 15
Overview ........................................................................................ 15
Common Problems and Fixes in CAD to STL Conversion............. 15
Inverted Normals/Flip Triangles..............................................................16
Zero Thickness .......................................................................................20
Bad Edges..............................................................................................23
Non-Manifold Objects.............................................................................36
Overlapping Shells & Offset/ Noise Shells .............................................36
Additional Boolean Operations ...............................................................43
STL Settings
When STL files are created, there are a range of parameters that need to be considered.
Resolution
The quality of the printed part is defined by the density of the triangle mesh. The main goal is to
achieve a balance between file size and a fully-defined model with smooth curved geometries,
But, the more triangles the larger the file size.
For a simple model such as a box, surfaces can be approximated with twelve triangles.
A mesh resolution of 0.005 millimeters generally produces a good quality STL file. (A resolution
of 0.001mm may be suitable for certain geometries to ensure that high accuracy and design
intent is captured). Reducing mesh resolution below this does not necessarily mean that model
accuracy is improved.
It is recommended that:
• you create large parts or highly detailed parts with a higher resolution than small
parts.
• designs that have many contours or curved surfaces need a higher resolution
than flat, geometric surfaces.
• the resolution of the part should be double the resolution of the printer. These
settings may not be achievable with all CAD software packages.
If the STL model appears coarse and faceted on screen, you will see it in the finished model.
The printed part will not print any better or smoother than the STL.
File translated with coarse tolerance File translated with fine tolerance
If the facets are clearly visible on screen, then the printed models will also be faceted.
These settings control the maximum distance allowed between the edge of a facet and the
actual surface of the designed CAD model.
The effect of changing the chord deviation parameter during STL generation is shown in below.
Tolerance
Additionally, the minimum clearance needed for mating parts when not producing the
components fully assembled is:
• PolyJet—0.1–0.15 mm
• FDM—The clearance is equal to the tolerance of the printer on which that the parts are
printed. For example, when building a 127 mm (5 in) front and back housing on the Fortus
400mc, the minimum clearance needed for an interlocking feature is 0.25 mm (0.01 in)
between mating surfaces.
Multi-Material/Color Capabilities
Using PolyJet technology, models can be printed from different Model materials and a wide
range of colors (on certain printer models). To make this possible, each component must be a
separate STL file. This is achieved by designing the part in CAD as separate bodies or shells
and exporting them as individual shells or STL files. Then, these are loaded into the printer
software as an assembly, or separated into shells with the printer software, where the material
and color selection will be applied.
In the following example, a multi-material model has been designed in CAD.
Grip—over-molded,
made of flexible material
Handle—made of rigid
plastic
When this model is converted to STL, only one shell exists. To print the part using
multi-materials, you need to perform extensive STL processing.
The part should be designed using multi-body CAD modeling, where each solid body in the
model is converted to different shells or STL files.
In this way, six shells or STL files are formed enabling the assignment of different materials in
the printer software.
3. Click Options.
4. In the Output as area, select Binary.
Saving the file as binary, will result in a smaller size file that is quicker to process
in downstream applications.
As a rule, the higher the resolution, the larger the size of the file, and the longer
it takes to generate.
6. Make sure that the following check boxes are not selected:
• Do not translate STL output data to positive space
This ensures that the parts maintain their original position in global space, relative to
the origin.
• Save all components of an assembly in a single file
This ensures that each component is saved as a separate STL file.
This check box is not relevant when saving multi-bodied models, since the
model is saved as single STL file with multiple shells.
7. Click OK.
8. In the Save As dialog box, click Save.
9. In the confirmation message, click Yes.
Manipulating Meshes
This section covers the following topics:
• Overview
• Common Errors in CAD to STL Conversion
• Additional Tools and Techniques
Overview
While all CAD software allows you to create of STL files, this process does not always
generate a printable file. These files may require additional actions to improve the quality of the
STL file and ensure that it is ready for printing.
With STL manipulation software you can:
• Analyze the STL model and check for errors.
• Fix the models in order to produce watertight models.
• Perform several simple actions to change the model, such as sectioning the model to fit
onto multiple build trays, adding labels onto the model, and other pre-print preparations.
This section describes the STL manipulation using Materialise Magics software,
however, the workflow and functions are compatible with other STL manipulation
software.
Using the Auto Fix tool is not recommended because it does not allow you to specify
the parameters for the fixing operations and adversely affect the desired geometry.
The following common errors and fixes are covered in this section:
• Inverted Normal/Flip Triangles
• Zero Thickness
• Bad Edges
• Overlapping Shells & Offset/Noise Shells
• Non-Manifold Objects
• Boolean Operations
The two triangles above, though they are identical, are facing in opposite directions. If the
direction for all or part of the model is incorrect it can cause problems for the printer to identify
a model as watertight or which surfaces to apply the appropriate material or color.
As shown below an inverted normal is a triangle or group of triangles, whose normals do not
create a solid body, or are not consistent with adjacent triangles.
In Materialise Magics, surfaces colored gray represent the outward facing triangles and the
inward facing triangles are colored red,
2. In the Diagnostics tab, click Update to bring the diagnostics up to date, and to verify if
further fixing is required.
4. When the done, in the Fix Wizard, Diagnostics section, click Update to update the
diagnostics and to view the results.
5. Select the Fix Wizard tool and click Update to view the updated diagnostics.
6. Perform any additional fixing, if necessary.
7. Close the Fix Wizard tool.
Zero Thickness
Error Sometimes, a modeled CAD body is represented as a surface with no volume. Models that are
Description printed in 3D must have a volume that is larger than zero.
For example, the part shown below is a sheet of material, which has no volume, even though it
is a three dimensional form.
For the file to be printable it must have a volume. A minimum of 0.6 mm thickness is
recommended.
Solution Use one of the following tools to fix the thickness:
• Surface to Solid tool—
a. From the Tools ribbon, select Surface to Solid.
b. When the dialog box appears, select the Offset based tab.
e. Click Apply.
The modified part shown below is printable, because it has a positive volume.
Bad Edges
Error Printable models must be watertight. All the triangles must be connected to their neighboring
Description triangles, with no gaps. Gaps between triangles are referred to as Bad Edges.
There are two types of bad edges:
• Near Bad Edges—
Edges of triangles that are very close (but not connected) to a neighbor triangle.
In the figure below the eyelids are very close to the eye, but they are not connected.
To fix the near bad edges, you use stitching, which is determined by the Stitching Tolerance
value.
Solution Use the following tools to fix the real or near bad edges:
• Stitching for near bad edges—
a. From the Fix ribbon, select Automatic Stitching.
b. Run the Fix Wizard diagnostic tool to verify that the automatic stitching succeeded.
If the automatic stitching does not fix all the near bad edges, use manual stitching,
as follows:
c. In the right pane, Fix Pages section, increase the tolerance to cover wider surface
gaps.
d. Run the Fix Wizard diagnostic tool to verify that the automatic stitching succeeded.
e. Repeat the manual stitching operation until the near bad edges are resolved.
In cases of very severe bad edge, you can delete the triangles in the affected area
and perform a Fill Hole operation with bridge section, as described below.
Materialise Magics can only automatically recognize planar holes. This means holes that
are mostly along the same plane. Holes which follow more complicated contours will not be
recognized and will be shown as a bad contour.
b. Run the Fix Wizard diagnostic tool to verify that the automatic stitching succeeded.
iv. Using the mouse cursor, click the outside edge of the hole. The hole is
automatically filled.
iv. Using the mouse cursor, click the outside edge of the hole. The hole is
automatically filled.
ii. Select the plane on which you want the operation to be performed.
iii. Click Fill Hole Mode.
iv. Using the mouse cursor, click the outside edge of the hole. The hole is
automatically filled.
Hole fix without Tangent selected Hole fix with Tangent selected
vii. Repeat these steps for large or complex holes to create a series of smaller holes
that can be automatically filled using the planar method, as shown below.
Non-Manifold Objects
Error Non-manifold objects are parts with one triangle edge that touches more than two faces, as
Description shown below.
The problematic edge, highlighted in yellow, causes an issue. Does it belong to the left or right
box?
Solution To ensure that this is not an issue, verify that this model is made of two distinct shells.
Overlapping Shells
Solution 1 In most cases, the simplest way to deal with these problems is to run the Noise Shells tool. If,
subsequently, when checking for errors there are individual multiple shells they should be
identified before deciding to remove them or incorporate them into an existing shell on a case
by case basis.
Solution 2 You can view areas within the model using the Multi Section tool, which enables easy editing
and identification of noise shells inside the model. You can access the Multi Section tab from
the View Pages section (right pane). Select a row, and then, click the Clip option and select the
desired display. In the sectioned view, you can select individual triangles and delete them.
5. Use the Visibility icon to toggle on/off the visibility of noise shells.
6. Once the shells that can be discarded have been identified, select them by clicking the
corresponding row.
Solution 3 Another option for fixing the overlapping issue is using the Unite Boolean operation. This
operation merges the selected files into one file and trims all the surfaces to make one shell of
both parts. There is no limit on the number of files that can be united.
Other Boolean operations are Intersect and Subtract. For an explanation on each of these
operation, see the next section.
To resolve the errors using the Unite operations:
1. In the Tools ribbon, Boolean button, select Boolean.
• To preserve the original geometry, clear the Unload Originals check box.
Subtract (Cut)
Unite
Overview
There are several ways to create 3D models from BMP images. This section explains how to
do this by converting a BMP file to an STL file. This method is useful in a wide range of
applications. It opens possibilities for creating and simulating coins, medals, printing plates,
stamps, height maps, bump mapping, textures, dactylography (fingerprinting), and many
others.
In this method, the gray shades in the 2D image (in BMP format) are translated into a 3D height
map, as shown below. The two-dimensional array (the color) of each element is interpreted as
a height value in order to store information on the height of each point. For example, the white
points are flat, the gray points are higher and the black points are the highest. This is how
Materialise Magics converts grayscale images to physical textures. Other software packages
that use this techniques, such as Adobe Photoshop®, typically use images with black/white
inverted. For the cleanest and sharpest results, use an image with as few gradients as
possible, that is monochrome rather than grayscale or color.
Many 2D file types can be converted to a 3D model. For best results, use BMP files.
Model created
from a JPG file
Model created
from a BMP file
Convert the 1. Open the image in Microsoft Paint or in any other program that can save a file in bitmap
Image to (BMP) format.
BMP 2. Edit the image and remove or add features to minimize downstream STL editing.
Format
3. Save the image as a BMP file.
7. In the following window, File Name field, navigate to the BMP file you saved, and select it.
Edit the 11. Display the View tab, and orient the model for editing.
Model
13. Depending on the features that need editing, select a circle or polyline cut, and select
Apply.
• To hide cut sections from the Parts List, select the Visibility icon .
• To delete cut sections from the Parts List, right-click on the part, and select Unload
Selected Parts.
Fix the 15. From the Fix tab, select Fix Wizard.
Model
16. In the following window, side menu, make sure that Diagnostics is selected.
17. Select Update.
Save the 19. From the File tab, select Save as > Save Selected Part As.
File
File Types
• VRML files—
VRML (Virtual Reality Modeling Language) is a standard file format for representing 3D
interactive vector graphics supported by many of today's 3D modeling applications. Unlike
the STL file, VRML describes an object's geometry and visual characteristics. VRML is a
text file format where, for example, vertices and edges for a 3D polygon can be specified
along with the surface color, UV mapped textures, shininess, transparency, and so on.
VRML defines shape, color and texture for individual components and discrete surfaces.
VRML is applicable when printing with PolyJet technology.
VRML files can be created in a number of software packages. This section focuses on the
Materialise Magics software application as it can be used for STL file fixing and has a
procedure workflow that is most intuitive for CAD users.
• OBJ files—
Similar to the VRML format, an OBJ file saves the geometries approximation in the form of
tessellations (just like an STL file). It also enables the surface geometry to be precisely
captured using freeform curves, where the user defines a collection of freeform curves that
run along the surface of the model. The surface is then approximated from these curves.
These freeform curves are more complicated than a mesh of polygonal faces, however
curved lines can be exactly described with simple mathematical functions, which results in
a much smaller file size. With the OBJ file, geometry can also be specified by tiling the
surface with freeform patches instead of polygons. These patches are good for describing
surfaces that are organic in form like a car body (not planes, spheres, cylinders/cones) and
enable you to save precise NURBS (Non-Uniform Rational B Spline) freeform surfaces.
The advantages of using freeform surfaces are similar to the advantages of using freeform
curves. They are more precise than freeform curves, since they encode the surface
exactly, not approximately. Additionally, they lead to smaller file sizes.
The OBJ file format lets you store color and texture information in a companion file format,
Material Template Library (MTL). This partner file has the extension *.MTL.
MTL files contain ASCII text that defines the surface light reflecting properties and material
properties, such as material type, color, ambient color, diffuse color, specular color,
transparency, etc. This determines what the model will look like when it is rendered.
With these two files together it is possible to render a multi-color textured model.
In addition to supporting these material properties, the MTL format also supports texture
maps, which is a more convenient method of specifying colors and textures. It does this by
using a separate texture/2D image file in the same way as VRML.
The STLs considerations described earlier in this document on pages 5-7, apply
also to VRML and OBJ files.
3. Select the file you wish to import and click Open to load it.
If there are errors, see section “Common Problems and Fixes in CAD to STL Conversion”
on page 15.
5. From the Texture ribbon, select Paint Part.
Selection
tools
9. Select the desired color from the color swatch and click OK.
Use the Define Custom Colors button for a greater variety of shades or to enter a
specific RGB value.
10. In the Paint Part dialog box, click Color Marked and click OK.
11. Repeat the steps above for the other areas on the model, until you complete all desired
color selection.
You can use different selection tools to color different surfaces or individual triangles, as
shown below.
The coordinates of the 2D image have attributes like color and texture. When rendering the 3D
model, every surface point is assigned a coordinate in this 2-dimensional image.
To improve UV mapping and downstream editing, ensure that mesh density of the underlying
model is even and triangles are formed with similar edge lengths.
In certain geometries, wrapping may cause distortion. In the figure below, the leather texture
becomes distorted at the end of the model.
If required, the distortion can be resolved by performing the texturing process in an alternate
software package (such as Blender™) that allows unwrapping the surface of the 3D object so
that it lays on a flat 2D plane, applying the texture, and then reforming the object. This process
can result visible seams.
3. Select the file you wish to import, and click Open to load it.
If there are errors, see section “Common Problems and Fixes in CAD to STL Conversion”
on page 15.
5. Select an appropriate selection tool.
Selection
tools
Any image can be used as a texture. Seamless textures, such as wood grain,
leather and stone are available online and are preferred for texture wrapping.
The image is automatically applied to the selected surface and the Textures dialog box
appears.
Any untextured surfaces appears in the printed model as gray (or white if you're
using older software versions).
10. In the Position section, adjust the position of the texture, as required.
12. To repeat the texture image, select the Tile image button.
Exporting to File
You need to export the part as a VRML or OBJ file to ensure that the colors and textures
selected can be replicated in the final part.
To export the files:
1. Save the Magics project. Use the File > Save as > Save Project as option.
This enables you to edit the files in the future.
2. In the Part List tab, make sure that the part is selected.
5. In following dialog box, from Save as type drop-down, select the VRML or OBJ file type.
6. Make sure that the units match the units in the CAD file.
When importing into the Stratasys file preparation software (for example, Objet
Studio or GrabCAD Print), make sure that the units match the ones in the models.