summaryrefslogtreecommitdiffstats
path: root/libdimension/csg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/csg.c')
-rw-r--r--libdimension/csg.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libdimension/csg.c b/libdimension/csg.c
index ee77739..0f6c4c1 100644
--- a/libdimension/csg.c
+++ b/libdimension/csg.c
@@ -46,17 +46,14 @@ dmnsn_csg_union_intersection_fn(const dmnsn_object *csg,
dmnsn_intersection *intersection)
{
dmnsn_prtree *prtree = csg->ptr;
- return dmnsn_prtree_search(prtree, line, intersection);
+ return dmnsn_prtree_intersection(prtree, line, intersection);
}
static bool
dmnsn_csg_union_inside_fn(const dmnsn_object *csg, dmnsn_vector point)
{
- DMNSN_ARRAY_FOREACH (dmnsn_object **, child, csg->children) {
- if (((*child)->inside_fn)(*child, point))
- return true;
- }
- return false;
+ dmnsn_prtree *prtree = csg->ptr;
+ return dmnsn_prtree_inside(prtree, point);
}
static void