From c7620068ed4223fc12cc3220212fec46aeb3867c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 23 Feb 2025 22:57:37 +0100 Subject: [PATCH] added missing curvepoint_pretty --- drawing.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index 9c7bd000..8826acb8 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2790,6 +2790,16 @@ EX void curvepoint(const hyperpoint& H1) { curvedata.push_back(glhr::pointtogl(H1)); } +EX void curvepoint_pretty(const hyperpoint& h1, const hyperpoint& h2, int lev) { + if(lev >= 0 && pmodel != mdPixel) { + hyperpoint h3 = midz(h1, h2); + curvepoint_pretty(h1, h3, lev-1); + curvepoint_pretty(h3, h2, lev-1); + } + else curvepoint(h2); + } + + EX void curvepoint_first() { curvedata.push_back(curvedata[curvestart]); }