Wed, 30 May 2018 22:31:06 +0300
added draw plane feature (doesn't work with circle draw quite right yet)
1301
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
1 | /* |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
2 | * LDForge: LDraw parts authoring CAD |
1326 | 3 | * Copyright (C) 2013 - 2018 Teemu Piippo |
1301
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
4 | * |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
5 | * This program is free software: you can redistribute it and/or modify |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
6 | * it under the terms of the GNU General Public License as published by |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
7 | * the Free Software Foundation, either version 3 of the License, or |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
8 | * (at your option) any later version. |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
9 | * |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
10 | * This program is distributed in the hope that it will be useful, |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
13 | * GNU General Public License for more details. |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
14 | * |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
15 | * You should have received a copy of the GNU General Public License |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
17 | */ |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
18 | |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
19 | #pragma once |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
20 | #include "../main.h" |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
21 | |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
22 | bool isflat(class Model* model, Axis* axis); |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
23 | Matrix flipmatrix(Axis axis); |
4a4e9fb9da76
moved inverting code into a new file
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
24 | void invert(LDObject* obj, class DocumentManager* context); |
1305
31627acdd4b5
Bfc red/green view almost completely fixed
Teemu Piippo <teemu@hecknology.net>
parents:
1301
diff
changeset
|
25 | void invertPolygon(LDPolygon& polygon); |