From 876ceec0dcc8a4c961daec81ad24c6a77e8b7de5 Mon Sep 17 00:00:00 2001 From: Andrey Bychkov Date: Mon, 23 Oct 2023 20:14:17 +0300 Subject: [PATCH] fix Scatter3D graphicMeshSmooth --- libs/graphic3d/scatter3d.cpp | 5 +++++ libs/graphic3d/scatter3d.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/libs/graphic3d/scatter3d.cpp b/libs/graphic3d/scatter3d.cpp index 445c25d..10c1b6d 100644 --- a/libs/graphic3d/scatter3d.cpp +++ b/libs/graphic3d/scatter3d.cpp @@ -41,6 +41,11 @@ Scatter3D::Mesh Scatter3D::graphicMesh(int index) const { } +bool Scatter3D::graphicMeshSmooth(int index) const { + return graphics[index].series->isMeshSmooth(); +} + + bool Scatter3D::labelAutoRotation() const { return canvas->axisX()->labelAutoRotation() == 0; } diff --git a/libs/graphic3d/scatter3d.h b/libs/graphic3d/scatter3d.h index e8ee6ec..54b65b2 100644 --- a/libs/graphic3d/scatter3d.h +++ b/libs/graphic3d/scatter3d.h @@ -58,6 +58,8 @@ public: float graphicPointSize(int index) const; Mesh graphicMesh() const { return graphicMesh(curGraphic); } Mesh graphicMesh(int index) const; + bool graphicMeshSmooth() const { return graphicMeshSmooth(curGraphic); } + bool graphicMeshSmooth(int index) const; bool labelAutoRotation() const; public slots: