-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
TopoShapeOpCode.h
99 lines (91 loc) · 4.72 KB
/
TopoShapeOpCode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/****************************************************************************
* Copyright (c) 2018 Zheng Lei (realthunder) <realthunder.dev@gmail.com> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
****************************************************************************/
#ifndef PART_TOPOSHAPE_OPCODE_H
#define PART_TOPOSHAPE_OPCODE_H
/** Definition of commonly used TopoShape operational code
*
* The operational code (op code) is encoded into the mapped element name to
* provide more context and meaning to the shape history when tracing it back
* to its predecessors. Some op codes can be passed to the generalized shape-
* making API TopoShape::makEBoolean() to make a shape.
*/
namespace Part {
class PartExport OpCodes {
public:
/** Element name encoding scheme version number
*
* Increase this version if there is major change in encoding scheme.
* Opening a document containing a mismatched version number will cause the
* element map to be regenerated after recompute
*/
static constexpr const int Version = 15;
/** @name Op codes that are also accepted by TopoShape::makEBoolean() */
//@{
static constexpr const char *Fuse = "FUS";
static constexpr const char *Cut = "CUT";
static constexpr const char *Common = "CMN";
static constexpr const char *Section = "SEC";
static constexpr const char *Compound = "CMP";
static constexpr const char *Compsolid = "CSD";
static constexpr const char *Pipe = "PIP";
static constexpr const char *Shell = "SHL";
static constexpr const char *Wire = "WIR";
//@}
static constexpr const char *Tag = "TAG";
static constexpr const char *Copy = "CPY";
static constexpr const char *Transform = "XFM";
static constexpr const char *Gtransform = "GFM";
static constexpr const char *Face = "FAC";
static constexpr const char *FilledFace = "FFC";
static constexpr const char *Extrude = "XTR";
static constexpr const char *GeneralFuse = "GFS";
static constexpr const char *Refine = "RFI";
static constexpr const char *Boolean = "BOL";
static constexpr const char *Slice = "SLC";
static constexpr const char *Maker = "MAK";
static constexpr const char *Fillet = "FLT";
static constexpr const char *Chamfer = "CHF";
static constexpr const char *Thicken = "THK";
static constexpr const char *Offset = "OFS";
static constexpr const char *Offset2D = "OFF";
static constexpr const char *Revolve = "RVL";
static constexpr const char *Loft = "LFT";
static constexpr const char *Sweep = "SWP";
static constexpr const char *PipeShell = "PSH";
static constexpr const char *ShellFill = "SHF";
static constexpr const char *Solid = "SLD";
static constexpr const char *RuledSurface = "RSF";
static constexpr const char *Mirror = "MIR";
static constexpr const char *Sketch = "SKT";
static constexpr const char *SketchExport = "SKE";
static constexpr const char *Shapebinder = "BND";
static constexpr const char *ThruSections = "TRU";
static constexpr const char *Sewing = "SEW";
static constexpr const char *Prism = "PSM";
static constexpr const char *Draft = "DFT";
static constexpr const char *HalfSpace = "HSP";
static constexpr const char *BSplineFace = "BSF";
static constexpr const char *Split = "SPT";
static constexpr const char *Evolve = "EVO";
};
} // namespace Part
#endif // PART_TOPOSHAPE_OPCODE_H