# Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# BoundaryDiscretizeGraphics

discretizes a 2D or 3D graphic g into a BoundaryMeshRegion.

BoundaryDiscretizeGraphics[g,patt]
discretizes only the elements in g that match the pattern patt.

## Details and OptionsDetails and Options

• BoundaryDiscretizeGraphics is also known as boundary evaluation.
• BoundaryDiscretizeGraphics discretizes full-dimensional graphics primitives into a boundary representation consisting of piecewise linear elements used in BoundaryMeshRegion.
• Only full-dimensional parts (areas in 2D and volumes in 3D) will be discretized.
• The graphic g can be Graphics, Graphics3D, or individual graphics primitives.
• BoundaryDiscretizeGraphics effectively treats multiple primitives in Graphics and Graphics3D as a union operation.
• Bounded piecewise linear primitives in Graphics (these can be represented exactly):
•  Triangle[…] filled triangle (2D) Polygon[…] filled polygon (2D) Rectangle[…] filled rectangle (2D) Parallelogram[…] filled parallelogram (2D) Simplex[…] simplex (2D)
• In addition, SSSTriangle, SASTriangle, ASATriangle, and AASTriangle evaluate to Triangle and can be represented exactly.
• Unbounded piecewise linear primitives in Graphics (only a finite range can be represented):
•  HalfPlane[…] half-space (2D) ConicHullRegion[…] linear cone (2D)
• Nonlinear primitives in Graphics (only an approximation can be represented):
•  Disk[…] disk, filled ellipse, sectors (2D) FilledCurve[…] filled closed curve (2D)
• Bounded piecewise linear primitives in Graphics3D (these can be represented exactly):
•  Cuboid[…] filled cuboid (3D) Parallelepiped[…] filled parallelepiped (3D) Tetrahedron[…] filled tetrahedron (3D) Hexahedron[…] filled hexahedron (3D) Pyramid[…] filled pyramid (3D) Prism[…] filled prism (3D) Simplex[…] simplex (3D)
• Unbounded piecewise linear primitives in Graphics3D (only a finite range can be represented):
•  ConicHullRegion[…] linear cone (3D)
• Nonlinear primitives in Graphics3D (only an approximation can be represented):
•  Ball[…] ball or filled sphere (3D) Ellipsoid[…] filled ellipsoid (3D) Cylinder[…] filled cylinder (3D) Cone[…] filled cone (3D)
• BoundaryDiscretizeGraphics has the same options as BoundaryMeshRegion, with the following additions and changes:
•  AccuracyGoal Automatic digits of accuracy sought MaxCellMeasure Automatic maximum cell measure Method Automatic method to use PlotRange Automatic the range to include PerformanceGoal \$PerformanceGoal whether to consider speed or quality PrecisionGoal Automatic digits of precision sought
• With AccuracyGoal->a and , an attempt will be made to keep the maximum distance between the region reg or the discretized region dreg and any point in RegionSymmetricDifference[reg,dreg] to less than , where is the length of the diagonal of the plot range.

## ExamplesExamplesopen allclose all

### Basic Examples  (3)Basic Examples  (3)

Discretize a 2D special region including Disk:

 Out[2]=
 Out[3]=

Discretize 3D special regions including Cone:

 Out[1]=
 Out[2]=

Discretize a whole 2D Graphics scene, where multiple primitives are taken as a union:

 Out[1]=
 Out[2]=