|
1 | | -""" |
2 | | - $(SIGNATURES) |
3 | | - Calculate intersections between tetrahedron with given piecewise linear |
4 | | - function data and plane |
5 | | -
|
6 | | - Adapted from [gltools](https://github.com/j-fu/gltools/blob/master/glm-3d.c#L341). |
7 | | - |
8 | | - A non-empty intersection is either a triangle or a planar quadrilateral, |
9 | | - defined by either 3 or 4 intersection points between tetrahedron edges |
10 | | - and the plane. |
11 | | -
|
12 | | - Input: |
13 | | - - coordinates: 3xN array of grid point coordinates |
14 | | - - node_indices: 4 element array of node indices (pointing into coordinates and function_values) |
15 | | - - planeq_values: 4 element array of plane equation evaluated at the node coordinates |
16 | | - - function_values: N element array of function values |
17 | | -
|
18 | | - Mutates: |
19 | | - - ixcoord: 3x4 array of plane - tetedge intersection coordinates |
20 | | - - ixvalues: 4 element array of function values at plane - tetdedge intersections |
21 | | -
|
22 | | - Returns: |
23 | | - - nxs,ixcoord,ixvalues |
24 | | - |
25 | | - This method can be used both for the evaluation of plane sections and for |
26 | | - the evaluation of function isosurfaces. |
27 | | -""" |
28 | 1 | function assign_coordinates_at_point_in_plane!( |
29 | 2 | ixcoord, |
30 | 3 | ixvalues, |
@@ -60,6 +33,35 @@ function assign_coordinates_at_intersection!( |
60 | 33 | return nothing |
61 | 34 | end |
62 | 35 |
|
| 36 | + |
| 37 | +""" |
| 38 | + $(SIGNATURES) |
| 39 | + Calculate intersections between tetrahedron with given piecewise linear |
| 40 | + function data and plane |
| 41 | +
|
| 42 | + Adapted from [gltools](https://github.com/j-fu/gltools/blob/master/glm-3d.c#L341). |
| 43 | + |
| 44 | + A non-empty intersection is either a triangle or a planar quadrilateral, |
| 45 | + defined by either 3 or 4 intersection points between tetrahedron edges |
| 46 | + and the plane. |
| 47 | +
|
| 48 | + Input: |
| 49 | + - coordinates: 3xN array of grid point coordinates |
| 50 | + - node_indices: 4 element array of node indices (pointing into coordinates and function_values) |
| 51 | + - planeq_values: 4 element array of plane equation evaluated at the node coordinates |
| 52 | + - function_values: N element array of function values |
| 53 | +
|
| 54 | + Mutates: |
| 55 | + - ixcoord: 3x4 array of plane - tetedge intersection coordinates |
| 56 | + - ixvalues: 4 element array of function values at plane - tetdedge intersections |
| 57 | +
|
| 58 | + Returns: |
| 59 | + - amount_intersections,ixcoord,ixvalues |
| 60 | + |
| 61 | + This method can be used both for the evaluation of plane sections and for |
| 62 | + the evaluation of function isosurfaces. |
| 63 | +""" |
| 64 | + |
63 | 65 | function calculate_plane_tetrahedron_intersection!( |
64 | 66 | ixcoord, |
65 | 67 | ixvalues, |
|
0 commit comments