Skip to content

fossil_body_distance ​

Source: src/lib/fossil_body_distance.f90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
MAX_CHILDRENinteger(kind=I4P)parameter
PRUNE_RELreal(kind=R8P)parameter

Subroutines ​

tri_tri_distance ​

fortran
subroutine tri_tri_distance(a, b, d2, pa, pb, meet)

Arguments

NameTypeIntentAttributesDescription
areal(kind=R8P)in
breal(kind=R8P)in
d2real(kind=R8P)out
pareal(kind=R8P)out
pbreal(kind=R8P)out
meetlogicalout

Call graph

closest_segment_segment ​

Attributes: pure

fortran
subroutine closest_segment_segment(p1, q1, p2, q2, c1, c2)

Arguments

NameTypeIntentAttributesDescription
p1real(kind=R8P)in
q1real(kind=R8P)in
p2real(kind=R8P)in
q2real(kind=R8P)in
c1real(kind=R8P)out
c2real(kind=R8P)out

Call graph

body_distance ​

fortran
subroutine body_distance(fa, ta, fb, tb, d2, ia, ib, pa, pb, meet, pose_a, pose_b)

Arguments

NameTypeIntentAttributesDescription
fatype(facet_object)in
tatype(aabb_tree_object)intarget
fbtype(facet_object)in
tbtype(aabb_tree_object)intarget
d2real(kind=R8P)out
iainteger(kind=I4P)out
ibinteger(kind=I4P)out
pareal(kind=R8P)out
pbreal(kind=R8P)out
meetlogicalout
pose_atype(rigid_pose_t)inoptional
pose_btype(rigid_pose_t)inoptional

Call graph

body_safe_step ​

fortran
subroutine body_safe_step(fa, ta, fb, tb, pose_a, pose_b, ka, tha, dta, kb, thb, dtb, tolerance, cap, step, pairs)

Arguments

NameTypeIntentAttributesDescription
fatype(facet_object)in
tatype(aabb_tree_object)intarget
fbtype(facet_object)in
tbtype(aabb_tree_object)intarget
pose_atype(rigid_pose_t)in
pose_btype(rigid_pose_t)in
kareal(kind=R8P)in
thareal(kind=R8P)in
dtareal(kind=R8P)in
kbreal(kind=R8P)in
thbreal(kind=R8P)in
dtbreal(kind=R8P)in
tolerancereal(kind=R8P)in
capreal(kind=R8P)in
stepreal(kind=R8P)out
pairsinteger(kind=I4P)outoptional

Call graph

pair_safe_step ​

fortran
subroutine pair_safe_step(fa, fb, i, j, pose_a, pose_b, ka, tha, dta, kb, thb, dtb, half, step, np)

Arguments

NameTypeIntentAttributesDescription
fatype(facet_object)in
fbtype(facet_object)in
iinteger(kind=I4P)in
jinteger(kind=I4P)in
pose_atype(rigid_pose_t)in
pose_btype(rigid_pose_t)in
kareal(kind=R8P)in
thareal(kind=R8P)in
dtareal(kind=R8P)in
kbreal(kind=R8P)in
thbreal(kind=R8P)in
dtbreal(kind=R8P)in
halfreal(kind=R8P)in
stepreal(kind=R8P)inout
npinteger(kind=I4P)inout

Call graph

body_distance_brute ​

fortran
subroutine body_distance_brute(fa, fb, d2, ia, ib, pa, pb, meet, pose_a, pose_b)

Arguments

NameTypeIntentAttributesDescription
fatype(facet_object)in
fbtype(facet_object)in
d2real(kind=R8P)out
iainteger(kind=I4P)out
ibinteger(kind=I4P)out
pareal(kind=R8P)out
pbreal(kind=R8P)out
meetlogicalout
pose_atype(rigid_pose_t)inoptional
pose_btype(rigid_pose_t)inoptional

Call graph

try_pair ​

fortran
subroutine try_pair(fa, fb, i, j, d2, ia, ib, pa, pb, meet, pose_a, pose_b)

Arguments

NameTypeIntentAttributesDescription
fatype(facet_object)in
fbtype(facet_object)in
iinteger(kind=I4P)in
jinteger(kind=I4P)in
d2real(kind=R8P)inout
iainteger(kind=I4P)inout
ibinteger(kind=I4P)inout
pareal(kind=R8P)inout
pbreal(kind=R8P)inout
meetlogicalinout
pose_atype(rigid_pose_t)inoptional
pose_btype(rigid_pose_t)inoptional

Call graph

moved_box ​

fortran
subroutine moved_box(pose, lo, hi)

Arguments

NameTypeIntentAttributesDescription
posetype(rigid_pose_t)in
lotype(vector_R8P)inout
hitype(vector_R8P)inout

Call graph

Functions ​

coplanar_meet ​

Returns: logical

fortran
function coplanar_meet(a, b, drop) result(meet)

Arguments

NameTypeIntentAttributesDescription
areal(kind=R8P)in
breal(kind=R8P)in
dropinteger(kind=I4P)in

Call graph

closest_on_triangle ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function closest_on_triangle(p, t) result(c)

Arguments

NameTypeIntentAttributesDescription
preal(kind=R8P)in
treal(kind=R8P)in

Call graph

node_plain_step ​

Returns: real(kind=R8P)

fortran
function node_plain_step(x, y, pose_a, pose_b, ka, tha, dta, kb, thb, dtb, half) result(st)

Arguments

NameTypeIntentAttributesDescription
xtype(aabb_node_object)in
ytype(aabb_node_object)in
pose_atype(rigid_pose_t)in
pose_btype(rigid_pose_t)in
kareal(kind=R8P)in
thareal(kind=R8P)in
dtareal(kind=R8P)in
kbreal(kind=R8P)in
thbreal(kind=R8P)in
dtbreal(kind=R8P)in
halfreal(kind=R8P)in

Call graph

box_rho ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function box_rho(k, pose, lo, hi) result(r)

Arguments

NameTypeIntentAttributesDescription
kreal(kind=R8P)in
posetype(rigid_pose_t)in
lotype(vector_R8P)in
hitype(vector_R8P)in

Call graph

axis_distance ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function axis_distance(k, y) result(r)

Arguments

NameTypeIntentAttributesDescription
kreal(kind=R8P)in
yreal(kind=R8P)in

Call graph

node_live ​

Returns: logical

fortran
function node_live(t, n) result(ok)

Arguments

NameTypeIntentAttributesDescription
ttype(aabb_tree_object)intarget
ninteger(kind=I4P)in

Call graph

node_box_volume ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function node_box_volume(x) result(v)

Arguments

NameTypeIntentAttributesDescription
xtype(aabb_node_object)in

Call graph

box_distance2 ​

Attributes: pure

Returns: real(kind=R8P)

fortran
function box_distance2(lo1, hi1, lo2, hi2) result(d2)

Arguments

NameTypeIntentAttributesDescription
lo1type(vector_R8P)in
hi1type(vector_R8P)in
lo2type(vector_R8P)in
hi2type(vector_R8P)in

Call graph