TriangleLink`
TriangleLink`

TriangleSetRegions

TriangleSetRegions[expr,pts,index,attrs]

sets the regions in a Triangle expression.

更多信息和选项

  • To use TriangleSetRegions, you first need to load it using Needs["TriangleLink`"].
  • TriangleSetRegions allows you to set different regions in Triangle instances.

范例

基本范例  (1)

To use TriangleLink, it must first be loaded:

Start by specifying the coordinates and displaying them:

Then create the input instance and set the points:

Next, the list of segments is created:

Set the segments in the input instance of Triangle:

This sets up variables that specify a point within a material domain, as well as a region attribute and a region constraint:

The material variables are set in the Triangle instance:

Retrieve the region values in a Triangle instance:

This carries out the triangulation, returning a new Triangle instance:

This extracts the points and elements from the triangulation:

With the following support function, you can visualize the triangles:

All elements are now attributed: