// This source code is property of the Computer Graphics and Visualization // chair of the TU Dresden. Do not distribute! // Copyright (C) CGV TU Dresden - All Rights Reserved #pragma once #include #include class Viewer : public nse::gui::AbstractViewer { public: Viewer(); void drawContents(); private: void SetupGUI(); void MeshUpdated(bool initNewMesh = false); void ColorMeshFromIds(); bool hasColors = false; nanogui::ComboBox* shadingBtn; unsigned int smoothingIterations; nanogui::Slider* sldSmoothingStrength; unsigned int stripificationTrials; HEMesh polymesh; MeshRenderer renderer; OpenMesh::FPropHandleT faceIdProperty; OpenMesh::FPropHandleT faceColorProperty; };