TriangleSetTriangleAreas
TriangleSetTriangleAreas[expr,areas]
constrains triangle areas for refinement.
更多信息和选项
- To use TriangleSetTriangleAreas, you first need to load it using Needs["TriangleLink`"].
- TriangleSetTriangleAreas constrains the triangle area in a refinement of a Triangle instance.
范例
基本范例 (1)
To use TriangleLink, it must first be loaded:
You start by specifying the coordinates and displaying them:
Then you create the input instance and set the points:
Next, the list of segments is created:
Set the segments in the input instance of Triangle:
Triangulate the input with an area constraint:
This extracts the points and elements from the triangulation:
With the following support function, you can visualize the triangles:
To compute the area of each of the triangles of the object, you write a support function first:
The area of each triangle can then be computed in the following manner:
The total area can then be computed:
To refine some triangles, choose a selection of coordinates. For example, all coordinates where the component is larger than 0.7:
The refinement elements are then found:
The triangles that should not change during refinement are the complement of all triangles and the triangle selected for refinement:
Each triangle that is to be refined gets a new area assigned. Those triangles that should remain unchanged are assigned a :
Set a Triangle instance with the new triangle areas:
By specifying the string "r", the Triangle instance is refined. The string "a" implies that volume constraints are to be fulfilled:
With the following support function, you can visualize the triangles: