minimum_distance
minimum_distance(v1, f1, v2, f2)
Compute the minimum distance between two triangle meshes in 3D.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
v1 |
(n1,3) array
|
Vertices of first mesh. |
required |
f1 |
(m1,3) array
|
Faces of first mesh. |
required |
v2 |
(n2,3) array
|
Vertices of second mesh. |
required |
f2 |
(m2,3) array
|
Faces of second mesh. |
required |
Returns:
Name | Type | Description |
---|---|---|
d |
float
|
Minimum distance value. |
Notes
This function could be extended with polyline and pointcloud functionality without much trouble.
Examples:
# meshes in v,f and u,g
# Minimum distance value
d = gpytoolbox.minimum_distance(v,f,u,g)
Source code in src/gpytoolbox/minimum_distance.py
5 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|