src/ldrawalgorithm.h

changeset 340
e17e07661f4c
parent 338
719b909a7d2b
equal deleted inserted replaced
339:4787d05e9c89 340:e17e07661f4c
13 13
14 std::pair<Triangle, Triangle> splitTriangles( 14 std::pair<Triangle, Triangle> splitTriangles(
15 const Quadrilateral& q, 15 const Quadrilateral& q,
16 ldraw::Diagonal diagonal); 16 ldraw::Diagonal diagonal);
17 17
18 std::vector<ModelAction> makeUnofficial(const Model *model); 18 std::vector<ModelAction> makeUnofficial(const QTextDocument *model);
19 19
20 constexpr float circleAngle(unsigned int divisions, unsigned int i) 20 constexpr float circleAngle(unsigned int divisions, unsigned int i)
21 { 21 {
22 constexpr float ofs = 0.5 * pi; 22 constexpr float ofs = 0.5 * pi;
23 float factor = -2.0f * pi / static_cast<float>(divisions); 23 float factor = -2.0f * pi / static_cast<float>(divisions);

mercurial