fossil_cut_bodies
Source: src/lib/fossil_cut_bodies.f90
Dependencies
Contents
- piece_bodies_t
- merge_posed_bodies
- label_piece_bodies
- merge_posed_surfaces
- merge_posed_curves
- overlap_3d
- sort_by_key
- overlap_2d
- label_piece_bodies_3d
- label_piece_bodies_2d
- label_core
- cut_cells_3d_bodies
- cut_cells_2d_bodies
- sweep_overlap
- coplanar_same_side
- shell_inside
- on_triangles
- parity_3d
- pierces
- tri_normal
- collinear_overlap
- on_segments
- parity_2d
Derived Types
piece_bodies_t
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
np | integer(kind=I4P) | ||
nw | integer(kind=I4P) | ||
wall_body | integer(kind=I4P) | allocatable | |
wall_sub_body | integer(kind=I4P) | allocatable | |
start | integer(kind=I4P) | allocatable | |
body | integer(kind=I4P) | allocatable | |
sub_body | integer(kind=I4P) | allocatable |
Interfaces
merge_posed_bodies
Module procedures: merge_posed_surfaces, merge_posed_curves
label_piece_bodies
Module procedures: label_piece_bodies_3d, label_piece_bodies_2d
Subroutines
merge_posed_surfaces
subroutine merge_posed_surfaces(surfaces, poses, merged, facet_body, facet_sub_body, status, overlap, contacts)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
surfaces | type(surface_stl_object) | in | ||
poses | type(rigid_pose_t) | in | ||
merged | type(surface_stl_object) | inout | ||
facet_body | integer(kind=I4P) | out | allocatable | |
facet_sub_body | integer(kind=I4P) | out | allocatable | |
status | integer(kind=I4P) | out | optional | |
overlap | logical | out | optional | |
contacts | integer(kind=I4P) | out | optional |
Call graph
merge_posed_curves
subroutine merge_posed_curves(curves, poses, merged, segment_body, segment_sub_body, status, overlap, contacts)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
curves | type(curve_object) | in | ||
poses | type(rigid_pose_2d_t) | in | ||
merged | type(curve_object) | inout | ||
segment_body | integer(kind=I4P) | out | allocatable | |
segment_sub_body | integer(kind=I4P) | out | allocatable | |
status | integer(kind=I4P) | out | optional | |
overlap | logical | out | optional | |
contacts | integer(kind=I4P) | out | optional |
Call graph
overlap_3d
subroutine overlap_3d(surfaces, merged, offset, ov, contacts)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
surfaces | type(surface_stl_object) | in | ||
merged | type(surface_stl_object) | in | ||
offset | integer(kind=I4P) | in | ||
ov | logical | out | ||
contacts | integer(kind=I4P) | out |
Call graph
sort_by_key
subroutine sort_by_key(key, idx)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
key | real(kind=R8P) | in | ||
idx | integer(kind=I4P) | inout |
Call graph
overlap_2d
subroutine overlap_2d(merged, offset, owner, u, v, ov, contacts)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
merged | type(curve_object) | in | ||
offset | integer(kind=I4P) | in | ||
owner | integer(kind=I4P) | in | ||
u | real(kind=R8P) | in | ||
v | real(kind=R8P) | in | ||
ov | logical | out | ||
contacts | integer(kind=I4P) | out |
Call graph
label_piece_bodies_3d
subroutine label_piece_bodies_3d(walls, facet_body, facet_sub_body, np, piece_bodies, status)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
walls | type(cut_walls_3d_t) | in | ||
facet_body | integer(kind=I4P) | in | ||
facet_sub_body | integer(kind=I4P) | in | ||
np | integer(kind=I4P) | in | ||
piece_bodies | type(piece_bodies_t) | out | ||
status | integer(kind=I4P) | out | optional |
Call graph
label_piece_bodies_2d
subroutine label_piece_bodies_2d(walls, segment_body, segment_sub_body, np, piece_bodies, status)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
walls | type(cut_walls_2d_t) | in | ||
segment_body | integer(kind=I4P) | in | ||
segment_sub_body | integer(kind=I4P) | in | ||
np | integer(kind=I4P) | in | ||
piece_bodies | type(piece_bodies_t) | out | ||
status | integer(kind=I4P) | out | optional |
Call graph
label_core
subroutine label_core(nw, piece, src, src_body, src_sub, np, pb, st)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
nw | integer(kind=I4P) | in | ||
piece | integer(kind=I4P) | in | ||
src | integer(kind=I4P) | in | ||
src_body | integer(kind=I4P) | in | ||
src_sub | integer(kind=I4P) | in | ||
np | integer(kind=I4P) | in | ||
pb | type(piece_bodies_t) | out | ||
st | integer(kind=I4P) | out |
Call graph
cut_cells_3d_bodies
subroutine cut_cells_3d_bodies(surfaces, poses, x, y, z, cut, status, links, walls, edges, moments_order, quadrature, device, resident, piece_bodies, merged, facet_body, facet_sub_body, contacts)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
surfaces | type(surface_stl_object) | in | ||
poses | type(rigid_pose_t) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in | ||
cut | type(cut_cells_3d_t) | inout | ||
status | integer(kind=I4P) | out | optional | |
links | type(cut_links_t) | inout | optional | |
walls | type(cut_walls_3d_t) | inout | optional | |
edges | logical | in | optional | |
moments_order | integer(kind=I4P) | in | optional | |
quadrature | logical | in | optional | |
device | logical | in | optional | |
resident | logical | in | optional | |
piece_bodies | type(piece_bodies_t) | out | optional | |
merged | type(surface_stl_object) | inout | optional | |
facet_body | integer(kind=I4P) | out | allocatable, optional | |
facet_sub_body | integer(kind=I4P) | out | allocatable, optional | |
contacts | integer(kind=I4P) | out | optional |
Call graph
cut_cells_2d_bodies
subroutine cut_cells_2d_bodies(curves, poses, x, y, cut, status, intervals, moments_order, boundaries, quadrature, device, resident, piece_bodies, walls, merged, segment_body, segment_sub_body, contacts)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
curves | type(curve_object) | in | ||
poses | type(rigid_pose_2d_t) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
cut | type(cut_cells_2d_t) | inout | ||
status | integer(kind=I4P) | out | optional | |
intervals | logical | in | optional | |
moments_order | integer(kind=I4P) | in | optional | |
boundaries | logical | in | optional | |
quadrature | logical | in | optional | |
device | logical | in | optional | |
resident | logical | in | optional | |
piece_bodies | type(piece_bodies_t) | out | optional | |
walls | type(cut_walls_2d_t) | out | optional | |
merged | type(curve_object) | inout | optional | |
segment_body | integer(kind=I4P) | out | allocatable, optional | |
segment_sub_body | integer(kind=I4P) | out | allocatable, optional | |
contacts | integer(kind=I4P) | out | optional |
Call graph
Functions
sweep_overlap
Returns: logical
function sweep_overlap(tri, owner) result(ov)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
tri | real(kind=R8P) | in | ||
owner | integer(kind=I4P) | in |
Call graph
coplanar_same_side
Attributes: pure
Returns: logical
function coplanar_same_side(ta, tb) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ta | real(kind=R8P) | in | ||
tb | real(kind=R8P) | in |
Call graph
shell_inside
Returns: logical
function shell_inside(surface, off, tri, t0, t1, tmin, tmax) result(inside)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
surface | type(surface_stl_object) | in | ||
off | integer(kind=I4P) | in | ||
tri | real(kind=R8P) | in | ||
t0 | integer(kind=I4P) | in | ||
t1 | integer(kind=I4P) | in | ||
tmin | real(kind=R8P) | in | ||
tmax | real(kind=R8P) | in |
Call graph
on_triangles
Attributes: pure
Returns: logical
function on_triangles(p, tri, t0, t1) result(on)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
p | real(kind=R8P) | in | ||
tri | real(kind=R8P) | in | ||
t0 | integer(kind=I4P) | in | ||
t1 | integer(kind=I4P) | in |
Call graph
parity_3d
Attributes: pure
Returns: logical
function parity_3d(p, tri, t0, t1) result(inside)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
p | real(kind=R8P) | in | ||
tri | real(kind=R8P) | in | ||
t0 | integer(kind=I4P) | in | ||
t1 | integer(kind=I4P) | in |
Call graph
pierces
Attributes: pure
Returns: logical
function pierces(ta, tb) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ta | real(kind=R8P) | in | ||
tb | real(kind=R8P) | in |
Call graph
tri_normal
Attributes: pure
Returns: real(kind=R8P)
function tri_normal(t) result(n)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
t | real(kind=R8P) | in |
Call graph
collinear_overlap
Attributes: pure
Returns: logical
function collinear_overlap(au, av, bu, bv, cu, cv, du, dv) result(yes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
au | real(kind=R8P) | in | ||
av | real(kind=R8P) | in | ||
bu | real(kind=R8P) | in | ||
bv | real(kind=R8P) | in | ||
cu | real(kind=R8P) | in | ||
cv | real(kind=R8P) | in | ||
du | real(kind=R8P) | in | ||
dv | real(kind=R8P) | in |
Call graph
on_segments
Attributes: pure
Returns: logical
function on_segments(pu, pv, u, v, nxt, i0, i1) result(on)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
pu | real(kind=R8P) | in | ||
pv | real(kind=R8P) | in | ||
u | real(kind=R8P) | in | ||
v | real(kind=R8P) | in | ||
nxt | integer(kind=I4P) | in | ||
i0 | integer(kind=I4P) | in | ||
i1 | integer(kind=I4P) | in |
Call graph
parity_2d
Attributes: pure
Returns: logical
function parity_2d(pu, pv, u, v, nxt, i0, i1) result(inside)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
pu | real(kind=R8P) | in | ||
pv | real(kind=R8P) | in | ||
u | real(kind=R8P) | in | ||
v | real(kind=R8P) | in | ||
nxt | integer(kind=I4P) | in | ||
i0 | integer(kind=I4P) | in | ||
i1 | integer(kind=I4P) | in |
Call graph