#ifndef CONTOURPY_COMMON_H #define CONTOURPY_COMMON_H #include #include namespace contourpy { namespace py = pybind11; // quad/point index type, the same as for numpy array shape/indices (== npy_intp). Also used for // chunks. typedef py::ssize_t index_t; // Count of points, lines and holes. typedef py::size_t count_t; // Offsets into point arrays. typedef uint32_t offset_t; // Input numpy array classes. typedef py::array_t CoordinateArray; typedef py::array_t MaskArray; typedef py::array_t LevelArray; // Doesn't have to be contiguous. // Output numpy array classes. typedef py::array_t PointArray; typedef py::array_t CodeArray; typedef py::array_t OffsetArray; } // namespace contourpy #endif // CONTOURPY_COMMON_H