Skip to content

Commit

Permalink
prints info
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Sep 9, 2022
1 parent 86a014f commit 62ee8c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ref_oct.c
Expand Up @@ -154,8 +154,10 @@ REF_STATUS ref_oct_split_at(REF_OCT ref_oct, REF_DBL *xyz, REF_DBL h) {
RSS(ref_oct_contains(ref_oct, xyz, &node, bbox), "contains oct");
RAS(node >= 0, "not found");
RSS(ref_oct_bbox_diag(bbox, &diag), "bbox diag");
printf(" %f %f \n", h, diag);
printf(" %f %f \n x %f %f y %f %f z %f %f\n", h, diag, bbox[0], bbox[1],
bbox[2], bbox[3], bbox[4], bbox[5]);
if (diag > h) {
printf(" split %d \n", node);
RSS(ref_oct_split(ref_oct, node), "split");
RSS(ref_oct_split_at(ref_oct, xyz, h), "again");
}
Expand Down
2 changes: 1 addition & 1 deletion src/ref_oct_test.c
Expand Up @@ -53,7 +53,7 @@ int main(int argc, char *argv[]) {
RSS(ref_oct_create(&ref_oct), "make oct");
xyz[0] = 0.3;
xyz[1] = 0.4;
xyz[2] = 0.5;
xyz[2] = 0.49;
h = 0.01;
RSS(ref_oct_split_at(ref_oct, xyz, h), "split xyz h");
RSS(ref_oct_tec(ref_oct, argv[pos + 1]), "tec");
Expand Down

0 comments on commit 62ee8c4

Please sign in to comment.