DiscreteGeometry
Discrete 2-D or 3-D geometry description
Description
DiscreteGeometry describes a 2-D or 3-D geometry in the form of a discrete
geometry object. PDEModel, StructuralModel, and
ThermalModel objects have a Geometry property, which can be an
AnalyticGeometry or DiscreteGeometry
object.
Creation
Create a discrete geometry for your model by using one of the following approaches:
Use
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.Use
geometryFromMeshto reconstruct a 2-D or 3-D geometry from mesh and attach it to the model.Use
multicuboid,multicylinder, ormultisphereto create a 3-D geometry. Then assign the resulting geometry to theGeometryproperty 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;
Use
extrudeto create a 3-D geometry by vertically extruding a 2-D geometry.
Properties
Object Functions
addCell | Combine two geometries by adding one inside a cell of another |
addFace | Fill void regions in 2-D and split cells in 3-D geometry |
addVertex | Add vertex on geometry boundary |
addVoid | Create void regions inside 3-D geometry |
cellEdges | Find edges belonging to boundaries of specified cells |
cellFaces | Find faces belonging to specified cells |
extrude | Vertically extrude 2-D geometry or specified faces of 3-D geometry |
faceEdges | Find edges belonging to specified faces |
facesAttachedToEdges | Find faces attached to specified edges |
mergeCells | Merge geometry cells |
nearestEdge | Find edges nearest to specified point |
nearestFace | Find faces nearest to specified point |
rotate | Rotate geometry |
scale | Scale geometry |
translate | Translate geometry |
Examples
Version History
Introduced in R2015a
See Also
Functions
addFace|addVertex|mergeCells|geometryFromMesh|importGeometry|multicuboid|multicylinder|multisphere

