diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-06-04 10:15:21 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-06-04 10:15:21 -0600 |
commit | 4a2dd35a34d456b9164e90b4fb1a06b1d009869f (patch) | |
tree | a896e926bebae2e1a64b341b800169f1224df359 /libdimension/csg.c | |
parent | ca7780971fe39c8a7e0e867e0d8bd9f3b5a21e33 (diff) | |
download | dimension-4a2dd35a34d456b9164e90b4fb1a06b1d009869f.tar.xz |
Rename `precompute' to `init'.
Diffstat (limited to 'libdimension/csg.c')
-rw-r--r-- | libdimension/csg.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libdimension/csg.c b/libdimension/csg.c index 2445abf..eb7f2c5 100644 --- a/libdimension/csg.c +++ b/libdimension/csg.c @@ -90,7 +90,7 @@ dmnsn_csg_union_inside_fn(const dmnsn_object *csg, dmnsn_vector point) } static void -dmnsn_csg_union_precompute_fn(dmnsn_object *csg) +dmnsn_csg_union_init_fn(dmnsn_object *csg) { dmnsn_object **params = csg->ptr; dmnsn_object *A = params[0]; @@ -99,8 +99,8 @@ dmnsn_csg_union_precompute_fn(dmnsn_object *csg) dmnsn_csg_cascade(csg, A); dmnsn_csg_cascade(csg, B); - dmnsn_object_precompute(A); - dmnsn_object_precompute(B); + dmnsn_object_init(A); + dmnsn_object_init(B); csg->trans = dmnsn_identity_matrix(); csg->bounding_box.min @@ -121,7 +121,7 @@ dmnsn_new_csg_union(dmnsn_object *A, dmnsn_object *B) csg->ptr = params; csg->intersection_fn = &dmnsn_csg_union_intersection_fn; csg->inside_fn = &dmnsn_csg_union_inside_fn; - csg->precompute_fn = &dmnsn_csg_union_precompute_fn; + csg->init_fn = &dmnsn_csg_union_init_fn; csg->free_fn = &dmnsn_csg_free_fn; return csg; @@ -215,7 +215,7 @@ dmnsn_csg_intersection_inside_fn(const dmnsn_object *csg, dmnsn_vector point) } static void -dmnsn_csg_intersection_precompute_fn(dmnsn_object *csg) +dmnsn_csg_intersection_init_fn(dmnsn_object *csg) { dmnsn_object **params = csg->ptr; dmnsn_object *A = params[0]; @@ -224,8 +224,8 @@ dmnsn_csg_intersection_precompute_fn(dmnsn_object *csg) dmnsn_csg_cascade(csg, A); dmnsn_csg_cascade(csg, B); - dmnsn_object_precompute(A); - dmnsn_object_precompute(B); + dmnsn_object_init(A); + dmnsn_object_init(B); csg->trans = dmnsn_identity_matrix(); csg->bounding_box.min @@ -246,7 +246,7 @@ dmnsn_new_csg_intersection(dmnsn_object *A, dmnsn_object *B) csg->ptr = params; csg->intersection_fn = &dmnsn_csg_intersection_intersection_fn; csg->inside_fn = &dmnsn_csg_intersection_inside_fn; - csg->precompute_fn = &dmnsn_csg_intersection_precompute_fn; + csg->init_fn = &dmnsn_csg_intersection_init_fn; csg->free_fn = &dmnsn_csg_free_fn; return csg; @@ -271,7 +271,7 @@ dmnsn_csg_difference_inside_fn(const dmnsn_object *csg, dmnsn_vector point) } static void -dmnsn_csg_difference_precompute_fn(dmnsn_object *csg) +dmnsn_csg_difference_init_fn(dmnsn_object *csg) { dmnsn_object **params = csg->ptr; dmnsn_object *A = params[0]; @@ -280,8 +280,8 @@ dmnsn_csg_difference_precompute_fn(dmnsn_object *csg) dmnsn_csg_cascade(csg, A); dmnsn_csg_cascade(csg, B); - dmnsn_object_precompute(A); - dmnsn_object_precompute(B); + dmnsn_object_init(A); + dmnsn_object_init(B); csg->trans = dmnsn_identity_matrix(); csg->bounding_box = A->bounding_box; @@ -299,7 +299,7 @@ dmnsn_new_csg_difference(dmnsn_object *A, dmnsn_object *B) csg->ptr = params; csg->intersection_fn = &dmnsn_csg_difference_intersection_fn; csg->inside_fn = &dmnsn_csg_difference_inside_fn; - csg->precompute_fn = &dmnsn_csg_difference_precompute_fn; + csg->init_fn = &dmnsn_csg_difference_init_fn; csg->free_fn = &dmnsn_csg_free_fn; return csg; @@ -324,7 +324,7 @@ dmnsn_csg_merge_inside_fn(const dmnsn_object *csg, dmnsn_vector point) } static void -dmnsn_csg_merge_precompute_fn(dmnsn_object *csg) +dmnsn_csg_merge_init_fn(dmnsn_object *csg) { dmnsn_object **params = csg->ptr; dmnsn_object *A = params[0]; @@ -333,8 +333,8 @@ dmnsn_csg_merge_precompute_fn(dmnsn_object *csg) dmnsn_csg_cascade(csg, A); dmnsn_csg_cascade(csg, B); - dmnsn_object_precompute(A); - dmnsn_object_precompute(B); + dmnsn_object_init(A); + dmnsn_object_init(B); csg->trans = dmnsn_identity_matrix(); csg->bounding_box.min @@ -355,7 +355,7 @@ dmnsn_new_csg_merge(dmnsn_object *A, dmnsn_object *B) csg->ptr = params; csg->intersection_fn = &dmnsn_csg_merge_intersection_fn; csg->inside_fn = &dmnsn_csg_merge_inside_fn; - csg->precompute_fn = &dmnsn_csg_merge_precompute_fn; + csg->init_fn = &dmnsn_csg_merge_init_fn; csg->free_fn = &dmnsn_csg_free_fn; return csg; |