FreeCAD

Форк
0
/
PartEnums.py 
76 строк · 2.5 Кб
1
# ***************************************************************************
2
# *                                                                         *
3
# *   Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net>     *
4
# *                                                                         *
5
# *   This program is free software; you can redistribute it and/or modify  *
6
# *   it under the terms of the GNU Lesser General Public License (LGPL)    *
7
# *   as published by the Free Software Foundation; either version 2 of     *
8
# *   the License, or (at your option) any later version.                   *
9
# *   for detail see the LICENCE text file.                                 *
10
# *                                                                         *
11
# *   This program is distributed in the hope that it will be useful,       *
12
# *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13
# *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14
# *   GNU Library General Public License for more details.                  *
15
# *                                                                         *
16
# *   You should have received a copy of the GNU Library General Public     *
17
# *   License along with this program; if not, write to the Free Software   *
18
# *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
19
# *   USA                                                                   *
20
# *                                                                         *
21
# ***************************************************************************
22

23
__title__ = "PartEnums module"
24
__author__ = "Werner Mayer"
25
__url__ = "https://www.freecad.org"
26
__doc__ = "Enum types"
27

28
from enum import IntEnum
29

30
class JoinType(IntEnum):
31
    Arc = 0
32
    Tangent = 1
33
    Intersection = 2
34

35
class Shape(IntEnum):
36
    C0 = 0
37
    G1 = 1
38
    C1 = 2
39
    G2 = 3
40
    C2 = 4
41
    C3 = 5
42
    CN = 6
43

44
class FillingStyle(IntEnum):
45
    StretchStyle = 0
46
    CoonsStyle = 1
47
    CurvedStyle = 2
48

49
class Orientation(IntEnum):
50
    FORWARD = 0
51
    REVERSED = 1
52
    INTERNAL = 2
53
    EXTERNAL = 3
54

55
class ShapeEnum(IntEnum):
56
    COMPOUND = 0
57
    COMPSOLID = 1
58
    SOLID = 2
59
    SHELL= 3
60
    FACE = 4
61
    WIRE = 5
62
    EDGE = 6
63
    VERTEX = 7
64
    SHAPE = 8
65

66
class HLRBRep_TypeOfResultingEdge(IntEnum):
67
    Undefined = 0
68
    IsoLine = 1
69
    OutLine = 2
70
    Rg1Line = 3
71
    RgNLine = 4
72
    Sharp = 5
73

74
class SingleShapeCompoundCreationPolicy(IntEnum):
75
    ReturnShape = 0
76
    ForceCompound = 1
77

78

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.