|
Algorithm 1. Spatial Topological Relation Analysis Algorithm. |
| Input: 3D point cloud of each object |
| Output: The spatial topological relations between the objects |
| Initialize: Create convex hull and AABB of each object from point cloud |
| begin
|
| for each object A do
|
| for each object B
do
|
| for each point in object A do
|
| if
is not in
|
| then
, and
continue
|
| Compute the relative position of p by formula (4) |
| Check , and for loop termination |
| end
|
| end
|
| end
|
| for each object A do
|
| for each object B do
|
| if
and
then
|
| else if
|
| if
then
|
| else
|
| else if
|
| if
then
|
| else
|
| else if
, , and
|
| then
|
| else
|
| end |
| end |
| end |