fossil_feature_bvh
Source: src/lib/fossil_feature_bvh.f90
Dependencies
Contents
- build_segment_bvh
- select_by_midpoint
- segment_box_overlap
- feature_box_touch_oac
- feature_point_distance_oac
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
LEAF | integer(kind=I4P) | parameter | |
STACK | integer(kind=I4P) | parameter |
Subroutines
build_segment_bvh
fortran
subroutine build_segment_bvh(seg, box, link)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
seg | real(kind=R8P) | inout | ||
box | real(kind=R8P) | out | allocatable | |
link | integer(kind=I4P) | out | allocatable |
Call graph
select_by_midpoint
fortran
subroutine select_by_midpoint(s, axis, k)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
s | real(kind=R8P) | inout | ||
axis | integer(kind=I4P) | in | ||
k | integer(kind=I4P) | in |
Call graph
Functions
segment_box_overlap
Attributes: pure
Returns: logical
fortran
function segment_box_overlap(lo, hi, p, q, tol) result(overlap)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lo | real(kind=R8P) | in | ||
hi | real(kind=R8P) | in | ||
p | real(kind=R8P) | in | ||
q | real(kind=R8P) | in | ||
tol | real(kind=R8P) | in |
Call graph
feature_box_touch_oac
Attributes: pure
Returns: logical
fortran
function feature_box_touch_oac(seg, box, link, lo, hi, tol) result(touch)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
seg | real(kind=R8P) | in | ||
box | real(kind=R8P) | in | ||
link | integer(kind=I4P) | in | ||
lo | real(kind=R8P) | in | ||
hi | real(kind=R8P) | in | ||
tol | real(kind=R8P) | in |
Call graph
feature_point_distance_oac
Attributes: pure
Returns: real(kind=R8P)
fortran
function feature_point_distance_oac(seg, box, link, p) result(d)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
seg | real(kind=R8P) | in | ||
box | real(kind=R8P) | in | ||
link | integer(kind=I4P) | in | ||
p | real(kind=R8P) | in |
Call graph