diff -r 5d5c11af0268 -r 1c70d3447d20 src/linetypes/cylinder.h --- a/src/linetypes/cylinder.h Sun Jun 10 16:04:38 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -#pragma once -#include "modelobject.h" - -class LDCylinder : public LDMatrixObject -{ -public: - static const LDObjectType SubclassType = LDObjectType::Cylinder; - - LDCylinder() = default; - LDCylinder(int segments, int divisions, const Matrix& transformationMatrix, const Vertex& position); - - virtual LDObjectType type() const override - { - return SubclassType; - } - - virtual QString asText() const override; - virtual void getVertices(DocumentManager *context, QSet& verts) const override; - bool isRasterizable() const override { return true; } - void rasterize( - DocumentManager* context, - Winding parentWinding, - Model& model, - bool deep, - bool render - ) override; - QVector rasterizePolygons(DocumentManager* context, Winding parentWinding) override; - QString objectListText() const override; - int triangleCount(DocumentManager*) const override { return 2 * m_segments; } - QString typeName() const override { return "cylinder"; } - void serialize(class Serializer& serializer) override; - -private: - QString buildFilename() const; - void buildPrimitiveBody(Model& model) const; - - int m_segments; - int m_divisions; -};