triangulation
Syntax
Description
creates a TR
= triangulation(gm
)triangulation
object from the specified
fegeometry
object. The geometry must have one cell in 3-D or one face
in 2-D.
Examples
2-D Triangulation
Create a 2-D triangulation
object from the unit square geometry.
First, create an fegeometry
object representing the unit square.
gm = fegeometry(@squareg)
gm = fegeometry with properties: NumCells: 0 NumFaces: 1 NumEdges: 4 NumVertices: 4 Vertices: [4x2 double] Mesh: []
Create a triangulation
object from the fegeometry
object.
TR = triangulation(gm)
TR = triangulation with properties: Points: [48x2 double] ConnectivityList: [46x3 double]
3-D Triangulation
Create a 3-D triangulation
object from a cylinder.
First, create an fegeometry
object representing a cylinder.
gm = fegeometry(multicylinder(5,2))
gm = fegeometry with properties: NumCells: 1 NumFaces: 3 NumEdges: 2 NumVertices: 2 Vertices: [2x3 double] Mesh: []
Create a triangulation
object from the fegeometry
object.
TR = triangulation(gm)
TR = triangulation with properties: Points: [98x3 double] ConnectivityList: [192x3 double]
Input Arguments
gm
— Single-domain geometry
fegeometry
object
Single-domain geometry, specified as an fegeometry
object. If you
specify a 2-D geometry, it must have one face. If you specify a 3-D geometry, it must
have one cell.
Output Arguments
TR
— Triangulation
triangulation
object
Triangulation, returned as a triangulation
object. For details,
see triangulation
.
Version History
Introduced in R2023b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)