| Server IP : 35.80.110.71 / Your IP : 216.73.216.143 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/matplotlib/tri/__pycache__/ |
Upload File : |
�
G8�c�$ � �, � d dl Zd dlmZ G d� d� Zy)� N)�_apic �v � e Zd ZdZd
d�Zd� Zed� � Zd� Zd� Z e
d� � Ze
d � � Zd
� Z
ed� � Zd� Zy)�
Triangulationa"
An unstructured triangular grid consisting of npoints points and
ntri triangles. The triangles can either be specified by the user
or automatically generated using a Delaunay triangulation.
Parameters
----------
x, y : (npoints,) array-like
Coordinates of grid points.
triangles : (ntri, 3) array-like of int, optional
For each triangle, the indices of the three points that make
up the triangle, ordered in an anticlockwise manner. If not
specified, the Delaunay triangulation is calculated.
mask : (ntri,) array-like of bool, optional
Which triangles are masked out.
Attributes
----------
triangles : (ntri, 3) array of int
For each triangle, the indices of the three points that make
up the triangle, ordered in an anticlockwise manner. If you want to
take the *mask* into account, use `get_masked_triangles` instead.
mask : (ntri, 3) array of bool
Masked out triangles.
is_delaunay : bool
Whether the Triangulation is a calculated Delaunay
triangulation (where *triangles* was not specified) or not.
Notes
-----
For a Triangulation to be valid it must not have duplicate points,
triangles formed from colinear points, or overlapping triangles.
Nc �P � ddl m} t j |t j �� | _ t j |t j �� | _ | j
j | j j k7 s| j
j dk7 r9t d| j
j �d| j j ��� �d | _
d | _ d | _ d| _
|�(|j ||� \ | _ | _ d| _
�nH t j |t j"