import geometry from stl or step file -凯发k8网页登录
import 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.
examples
input arguments
output arguments
limitations
importgeometry
does not allow you to import a multidomain 2-d or 3-d geometry where subdomains have any common points. if the subdomains of the geometry have common points, the toolbox still treats these subdomains as disconnected, without any common interface between them. each subdomain has its own mesh.because of this limitation, you cannot import nested 3-d geometries directly. as a workaround, you can import a mesh and then create a multidomain geometry from the mesh by using the
geometryfrommesh
function. see .
tips
the stl format approximates the boundary of a cad geometry by using a collection of triangles, and the
importgeometry
function 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.