doublearea
doublearea(V, F=None, signed=False)
Construct the doublearea of each element of a line or triangle mesh.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
V |
(n,d) numpy array
|
vertex list of a polyline or triangle mesh |
required |
F |
numpy int array, optional (default
|
if None or (m,2), interpret input as ordered polyline; if (m,3) numpy int array, interpred as face index list of a triangle mesh |
None
|
signed |
bool, optional (default False)
|
Whether to sign output using right-hand rule in 2D |
False
|
Returns:
Name | Type | Description |
---|---|---|
dblA |
(m,) numpy double array
|
vector of twice the (unsigned) area/length |
See Also
doublearea_intrinsic.
Examples:
TO-DO
Source code in src/gpytoolbox/doublearea.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|