-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstdl.lua
More file actions
128 lines (92 loc) · 3.04 KB
/
stdl.lua
File metadata and controls
128 lines (92 loc) · 3.04 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---@meta
---@alias PipeConnectorType table
PipeConnectorType = {}
---@alias Solid table
Solid = {}
---@alias Point3D table
Point3D = {}
---@alias Point2D table
Point2D = {}
---@alias Vector3D table
Vector3D = {}
---@alias Axis3D table
Axis3D = {}
---@alias GeometrySet2D table
GeometrySet2D = {}
function Solid:Shift(x, y, z) end
function FillArea(outerBoundary) end
---@alias Placement3D Placement3D
function Placement3D(point, z_axis_direction, x_axis_direction) end
---@return Solid
function CreateBlock(xSize, ySize, zSize) end
---@return Solid
function CreateRectangle2D(center, angle, width, height) end
--
---@return Solid
function CreateLineSegment2D(startPoint, endPoint) end
---@return Solid
function CreatePolyline2D(points) end
---@param width number
---@param depth number
---@param height number
---@param placement? Placement3D
---@return Solid
function CreateRectangularPyramid(width, depth, height, placement) end
---@return Solid
function CreateRightCircularCylinder(radius, height) end
---@return Solid
function Unite(solids) end
---@return Solid
function Subtract(solid1, solid2) end
---@return Solid
function Intersect(solid1, solid2) end
--------- Класс ModelGeometry ---------
---Модельная геометрия
---@class ModelGeometry
ModelGeometry = {}
--------- Класс ParameterGroup ---------
---Группа параметров стиля
---@class ParameterGroup
ParameterGroup = {}
--------- Класс Parameter ---------
---Параметр стиля объекта
---@class Parameter
Parameter = {}
--------- Класс Port ---------
---Порт
---@class Port
Port = {}
---Устанавливает положение порта
---@param placement Placement3D
---@return Port
function Port:SetPlacement(placement) end
--------- Пространство имён Style ---------
---Пространство имён
Style = {}
---Устанавливает детальную геометрию для стиля объекта
---@param geometry ModelGeometry
---@return nil
function Style.SetDetailedGeometry(geometry) end
---Устанавливает условную геометрию для стиля объекта
---@param geometry ModelGeometry
---@return nil
function Style.SetSymbolicGeometry(geometry) end
---Устанавливает символьную геометрию для стиля объекта
---@param geometry ModelGeometry
---@return nil
function Style.SetSymbolGeometry(geometry) end
---Возвращает таблицу значений параметров
---@return table
function Style.GetParameterValues() end
---Возвращает группу параметров по имени
---@param groupName string
---@return ParameterGroup
function Style.GetParameterGroup(groupName) end
---Возвращает параметр по имени группы и параметра
---@param groupName string
---@param paramName string
---@return Parameter
function Style.GetParameter(groupName, paramName) end
---@param name string
---@return Port
function Style.GetPort(name) end