Skip to content

Commit

Permalink
Using enums for output in curve_intersection.h/pxd.
Browse files Browse the repository at this point in the history
Also

- Removing unused `_bool_patch.h` and `cimport bool_t` (these
  were left over after many functions were removed from the ABI
  in `curve_intersection`)
- Switching from a `bool_t` to a `bint` in `_curve_intersection_speedup.pyx`
  • Loading branch information
dhermes committed Jan 11, 2018
1 parent c356c32 commit ef856af
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 304 deletions.
6 changes: 3 additions & 3 deletions src/bezier/_curve_intersection.pxd
Expand Up @@ -13,7 +13,7 @@
"""Cython wrapper for ``curve_intersection.f90``."""


from libcpp cimport bool as bool_t
from bezier._status cimport Status


cdef extern from "bezier/curve_intersection.h":
Expand All @@ -28,10 +28,10 @@ cdef extern from "bezier/curve_intersection.h":
double *new_s, double *new_t)
void bbox_intersect(
int *num_nodes1, double *nodes1,
int *num_nodes2, double *nodes2, int *enum_)
int *num_nodes2, double *nodes2, BoxIntersectionType *enum_)
void curve_intersections(
int *num_nodes_first, double *nodes_first,
int *num_nodes_second, double *nodes_second,
int *intersections_size, double *intersections,
int *num_intersections, int *status)
int *num_intersections, Status *status)
void free_curve_intersections_workspace()

0 comments on commit ef856af

Please sign in to comment.