diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-14 10:18:18 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-09-14 10:28:53 +0300 |
commit | 66e260367ac774d563874203b260b0ed0e04c93d (patch) | |
tree | eb4bc3df675c97f8fad0ef56ee272ae8549be9d7 /contrib/python/contourpy/src/base.h | |
parent | 47df7453282e2d3835d93fd3c4c24f9cbf8adca5 (diff) | |
download | ydb-66e260367ac774d563874203b260b0ed0e04c93d.tar.gz |
Intermediate changes
commit_hash:ab55b3b972e940f79570e58af046841fae66b70c
Diffstat (limited to 'contrib/python/contourpy/src/base.h')
-rw-r--r-- | contrib/python/contourpy/src/base.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/contrib/python/contourpy/src/base.h b/contrib/python/contourpy/src/base.h index e626e99431..6b4d99d17e 100644 --- a/contrib/python/contourpy/src/base.h +++ b/contrib/python/contourpy/src/base.h @@ -24,11 +24,13 @@ template <typename Derived> class BaseContourGenerator : public ContourGenerator { public: - ~BaseContourGenerator(); + virtual ~BaseContourGenerator(); static FillType default_fill_type(); static LineType default_line_type(); + py::tuple filled(double lower_level, double upper_level) override; + py::tuple get_chunk_count() const; // Return (y_chunk_count, x_chunk_count) py::tuple get_chunk_size() const; // Return (y_chunk_size, x_chunk_size) @@ -41,8 +43,10 @@ public: ZInterp get_z_interp() const; - py::sequence filled(double lower_level, double upper_level); - py::sequence lines(double level); + py::sequence lines(double level) override; + + py::list multi_filled(const LevelArray levels) override; + py::list multi_lines(const LevelArray levels) override; static bool supports_fill_type(FillType fill_type); static bool supports_line_type(LineType line_type); @@ -149,8 +153,6 @@ protected: void interp( index_t point0, double x1, double y1, double z1, bool is_upper, double*& points) const; - bool is_filled() const; - bool is_point_in_chunk(index_t point, const ChunkLocal& local) const; bool is_quad_in_bounds( @@ -166,6 +168,10 @@ protected: void move_to_next_boundary_edge(index_t& quad, index_t& forward, index_t& left) const; + // Common initialisation for filled/multi_filled and lines/multi_lines calls. + void pre_filled(); + void pre_lines(); + void set_look_flags(index_t hole_start_quad); void write_cache_quad(index_t quad) const; |