importGeometry
R2026bImport geometry from STL or STEP file
Syntax
Description
creates a geometry object from the specified STL or STEP geometry file. A
geometry imported from an STL file can be 3-D or planar. A geometry imported
from a STEP file must be 3-D.gm = importGeometry(geometryfile)
also includes the geometry in the gm = importGeometry(model,geometryfile)model container.
importGeometry(
creates a geometry object from the specified STL or STEP geometry file and
includes the geometry in the model,___)model container.
___ = importGeometry(___,
creates a geometry object using one or more name-value arguments. Use this
syntax with any of the argument combinations from the previous syntaxes.Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
The STL format approximates the boundary of a CAD geometry by using a collection of triangles, and the
importGeometryfunction reconstructs the faces and edges from this data. Reconstruction from STL data is not precise and can result in a loss of edges and, therefore, the merging of adjacent faces. Typically, lost edges are the edges between two adjacent faces meeting at a small angle, or smooth edges bounding blend surfaces. Usually, the loss of such edges does not affect the analysis workflow.Because STL geometries are only approximations of the original CAD geometries, the areas and volumes of the STL and CAD geometries can differ.






