Discrete 2-D or 3-D geometry description
DiscreteGeometry describes a 2-D or 3-D geometry in the
form of a discrete geometry object.
ThermalModel objects have a
Geometry property, which can be an
Create a discrete geometry for your model by using one of the following approaches:
importGeometryto import a 2-D or 3-D geometry from an STL file or a 3-D geometry from a STEP file and attach it to the model.
geometryFromMeshto reconstruct a 2-D or 3-D geometry from mesh and attach it to the model.
multisphereto create a 3-D geometry. Then assign the resulting geometry to the
Geometryproperty of the model. For example, create a PDE model and add the following geometry formed by three spheres to the model.
model = createpde; gm = multisphere([1,2,3]); model.Geometry = gm;
extrudeto create a 3-D geometry by vertically extruding a 2-D geometry.
NumCells — Number of geometry cells
Number of geometry cells, specified as a nonnegative integer.
NumEdges — Number of geometry edges
Number of geometry edges, specified as a nonnegative integer.
NumFaces — Number of geometry faces
Number of geometry faces, specified as a positive integer.
NumVertices — Number of geometry vertices
Number of geometry vertices, specified as a nonnegative integer.
Vertices — Coordinates of geometry vertices
N-by-2 numeric matrix |
N-by-3 numeric matrix
Coordinates of geometry vertices, specified as an
N-by-3 numeric matrix for a
2-D or 3-D geometry, respectively. Here,
N is the number
Introduced in R2015a