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); |