Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
TriangulateMesh
  • See Also
    • DelaunayMesh
    • BoundaryMeshRegion
    • DiscretizeRegion
    • BoundaryDiscretizeRegion
  • Related Guides
    • Mesh-Based Geometric Regions
    • See Also
      • DelaunayMesh
      • BoundaryMeshRegion
      • DiscretizeRegion
      • BoundaryDiscretizeRegion
    • Related Guides
      • Mesh-Based Geometric Regions

TriangulateMesh[mr]

generates a triangulation of the mesh region mr.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Options  
MaxCellMeasure  
MeshCellHighlight  
MeshCellLabel  
Show More Show More
MeshCellMarker  
MeshCellShapeFunction  
MeshCellStyle  
MeshQualityGoal  
MeshRefinementFunction  
PlotTheme  
Applications  
Properties & Relations  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • DelaunayMesh
    • BoundaryMeshRegion
    • DiscretizeRegion
    • BoundaryDiscretizeRegion
  • Related Guides
    • Mesh-Based Geometric Regions
    • See Also
      • DelaunayMesh
      • BoundaryMeshRegion
      • DiscretizeRegion
      • BoundaryDiscretizeRegion
    • Related Guides
      • Mesh-Based Geometric Regions

TriangulateMesh

TriangulateMesh[mr]

generates a triangulation of the mesh region mr.

Details and Options

  • TriangulateMesh is also known as triangulation, tetrahedralization, simplicial decomposition, mesh generation and mesh refinement.
  • Typically used to generate a partition of a region into lines (1D), triangles (2D) or tetrahedra (3D) optimized to some criteria.
  • TriangulateMesh has the same options as MeshRegion, with the following additions and changes:
  • MaxCellMeasure Automaticmaximum cell measure
    MeshQualityGoal Automaticquality goal for mesh cells
    MeshRefinementFunction Nonefunction that returns True if a mesh cell needs refinement
    MethodAutomaticmethod to use
    PerformanceGoal$PerformanceGoalwhether to consider speed or quality
  • Possible settings for the Method option include:
  • "ConformingDelaunay"triangulation that satisfies the Delaunay condition
    "ConstrainedDelaunay"triangulation that preserves original 1D boundary cells and almost satisfies the Delaunay condition
    "ConstrainedQuality"triangulation that adds fewer 0D cells and almost satisfies the Delaunay condition
  • A triangulation of a mesh mr satisfies the Delaunay condition if no original point on the boundary of mr is inside the circumsphere of any simplex in .

Examples

open all close all

Basic Examples  (3)

Triangulate a BoundaryMeshRegion in 1D:

Control the cell quality and sizes by using options:

Triangulate a BoundaryMeshRegion in 2D:

Control the cell quality and sizes by using options:

Triangulate a BoundaryMeshRegion in 3D:

Control the cell quality and sizes by using options:

Scope  (4)

Triangulate a BoundaryMeshRegion in 1D:

In 2D:

In 3D:

Triangulate a MeshRegion in 1D:

In 2D:

In 3D:

TriangulateMesh works individually on dimensional components:

MaxCellMeasure controls the maximum size a cell in the triangulation can be:

The measure used is arc length for 1D meshes, area for 2D, and volume for 3D:

Options  (28)

MaxCellMeasure  (6)

Set different length constraints for a 1D region:

Set different area constraints for a 2D region:

The areas for the different triangles:

Set an edge length constraint for a 2D region:

The lengths for different edges:

Set a volume constraint for a 3D region:

The volumes for different tetrahedra:

Set a face area constraint for a 3D region:

The areas for different faces:

Set an edge length constraint for a 3D region:

The lengths for different edges:

MeshCellHighlight  (3)

MeshCellHighlight allows you to specify highlighting for parts of a TriangulateMesh:

By making faces transparent, the internal structure of a 3D MeshRegion can be seen:

Individual cells can be highlighted using their cell index:

Or by the cell itself:

MeshCellLabel  (3)

MeshCellLabel can be used to label parts of a TriangulateMesh:

Label the vertices and edges of a polygon:

Individual cells can be labeled using their cell index:

Or by the cell itself:

MeshCellMarker  (1)

MeshCellMarker can be used to assign values to parts of a TriangulateMesh:

Use MeshCellLabel to show the markers:

MeshCellShapeFunction  (2)

MeshCellShapeFunction allows you to specify functions for parts of a TriangulateMesh:

Individual cells can be drawn using their cell index:

Or by the cell itself:

MeshCellStyle  (3)

MeshCellStyle allows you to specify styling for parts of a TriangulateMesh:

By making faces transparent, the internal structure of a 3D MeshRegion can be seen:

Individual cells can be highlighted using their cell index:

Or by the cell itself:

MeshQualityGoal  (4)

The default setting is Automatic:

Generate a "Minimal" quality triangulation:

Generate a "Maximal" quality triangulation:

Explicitly set a quantitative quality goal:

MeshRefinementFunction  (4)

Use MeshRefinementFunction to make the edges smaller left of the origin:

Use MeshRefinementFunction to make the triangles in the first quadrant smaller:

Set a continuously varying area constraint:

Discretize the region more finely in the first orthant:

PlotTheme  (2)

Use a theme with grid lines and a legend:

Use a theme to draw a wireframe:

Applications  (4)

Triangulate a polygon:

A minimal triangulation:

Triangulate the basic 3D primitives:

Minimal triangulations:

Triangulate inside the boundary of Monaco:

Triangulate using a minimal number of triangles:

Triangulate so that the maximum area is at most :

A nonlinear transformation of a region can be approximated by transforming vertices:

Because there are few vertices in the mesh, the transformation is poorly approximated:

By triangulating, a more accurate approximation may be made:

Properties & Relations  (2)

The output of TriangulateMesh is always a MeshRegion:

The cells in the output of TriangulateMesh are always simplices:

In 2D, simplices are triangles:

See Also

DelaunayMesh  BoundaryMeshRegion  DiscretizeRegion  BoundaryDiscretizeRegion

Function Repository: PowerTriangulation

Related Guides

    ▪
  • Mesh-Based Geometric Regions

History

Introduced in 2014 (10.0) | Updated in 2015 (10.2) ▪ 2020 (12.2)

Wolfram Research (2014), TriangulateMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/TriangulateMesh.html (updated 2020).

Text

Wolfram Research (2014), TriangulateMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/TriangulateMesh.html (updated 2020).

CMS

Wolfram Language. 2014. "TriangulateMesh." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/TriangulateMesh.html.

APA

Wolfram Language. (2014). TriangulateMesh. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TriangulateMesh.html

BibTeX

@misc{reference.wolfram_2025_triangulatemesh, author="Wolfram Research", title="{TriangulateMesh}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/TriangulateMesh.html}", note=[Accessed: 01-March-2026]}

BibLaTeX

@online{reference.wolfram_2025_triangulatemesh, organization={Wolfram Research}, title={TriangulateMesh}, year={2020}, url={https://reference.wolfram.com/language/ref/TriangulateMesh.html}, note=[Accessed: 01-March-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English