<< Click to Display Table of Contents >> Navigation: MechDesigner Reference & User Interface > Dialogs > -> STL Import tab |
See also : CAD-Line dialog
Use the CAD-Line dialog > STL Import tab to:
•Import an STL file - to import 3D CAD models as a CAD-Solid when you do not have SOLIDWORKS. •Edit the STL File Units to be equal to those of the linear units of the original STL file. •Edit the Edge Angle Limit to remove “ghost” lines in MechDesigner on the CAD-Solid that represents the original STL file. See more : STL Files |
Prepare and save the STL file in your CAD software:
Before you save the STL file in your CAD software: Rotate the model to align its XY-Plane with the XY-Plane of the Mechanism-Editor. In the Save as... dialog in your CAD software: Select Binary as the STL file-type. Edit, and remember, the Linear units of the STL file. If you cannot edit the Linear units of the STL file, they are usually SI units - meters (m). |
After you import an STL file:
See CAD-Line Display Options tab to move the STL file in the X, Y, Z-axis directions. |
CAD-Line dialog > STL Import tab
|
To import an STL file:
Note: To see the CAD-Solid, enable Visibility toolbar > Show Solids in Mechanisms
Top-Tip
|
|||
Image with too many Facet-Edges |
||||
Image with Facet-Edges OK |
The STL file tessellates to approximate the surfaces of the original CAD model as a mesh of triangles. Each triangle is a small face, also called a facet. The number of facets is a function of: •the complexity of the original CAD model, and •how accurately you want the STL file to tessellate the original CAD model. If you want to import many STL files, you also want a: Small file-size for each STL file, ... AND each STL file to appear to be equal to the original CAD model, ... AND to see only those facets that are real edges in the CAD model. |
Strategy 1: Reduce the complexity of the original CAD Model to reduce the STL file-size Add a new configuration for the CAD model. In the new configuration: •Do a geometry check to find if it has any small gaps or whiskers •Suspend external fillets and internal fillets, especially if they do not have a function •Replace fillets with chamfers if functional •Suspend all fasteners •Suspend fastener holes and hole features •Suspend all cosmetic details •Replace complex models you may have downloaded from the internet with simplified models, e.g. bearings. Strategy 2: Reduce the accuracy of the STL file There parameters are in the CAD-Line > SOLIDWORKS tab. Linear Deviation : The maximum Linear deviation (distance) between the surface of the original CAD model and the tessellated surface of the STL file. Angular Deviation : The maximum angular deviation between adjacent facets of the tessellated surface of the STL file. If you do not have SolidWorks, find these parameters in your 3D-CAD before you save your model as the STL file. It is possible Linear and angular deviation are options in the Save as > STL file-type dialog. Strategy 3: Use the Edge Angle Limit parameter - see Import STL File above STL files will show their facets if the angle in Edge Angle Limit is less than the facet of the CAD-Solid. Experiment. Import the model again each time you edit Edge Angle Limit (try 80 degrees). Examples Below, the two images are of the same SOLIDWORKS part. They appear to be identical. However, there is a large difference in the number of facets and vertices. |
|
STL: Large number of Vertices |
BAD - many facets •Linear Deviation = 0.014mm and •Angular Deviation = 0.4º There are •119132 vertices •~40000 triangles •The STL file size is 3.5 Mega Bytes |
STL: Few number of Vertices |
GOOD - few facets •Linear Deviation = 0.5mm and •Angular Deviation = 5º There are: •7533 vertices •~2500 triangles •The STL file size is 0.365 Mega Bytes |