rm-gxf-computing-rusts 0.0.36 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/gfx.linux-x64-gnu.node +0 -0
- package/src/gfx.win32-x64-msvc.node +0 -0
- package/src/index.d.ts +84 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export interface ArgumentBox3 {
|
|
|
5
5
|
max: Vector3F64
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
export interface ArgumentBox3 {
|
|
9
|
+
min: Vector3F64
|
|
10
|
+
max: Vector3F64
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
export interface ArgumentBoxInfo {
|
|
9
14
|
box3: ArgumentBox3
|
|
10
15
|
positionArr: Array<Vector3F64>
|
|
@@ -24,6 +29,22 @@ export interface ArgumentLine {
|
|
|
24
29
|
objPositionArr?: Array<Array<number>>
|
|
25
30
|
}
|
|
26
31
|
|
|
32
|
+
export interface ArgumentLine {
|
|
33
|
+
start?: Vector3F64
|
|
34
|
+
end?: Vector3F64
|
|
35
|
+
missingCheckResults: Array<Quads>
|
|
36
|
+
existSegments: Array<Quads>
|
|
37
|
+
intersectionSegments?: Array<Array<Index>>
|
|
38
|
+
objPositionArr?: Array<Array<number>>
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ArgumentLine2 {
|
|
42
|
+
start?: Vector3F64
|
|
43
|
+
end?: Vector3F64
|
|
44
|
+
checkResults: Array<Quads>
|
|
45
|
+
existSegments: Array<Quads>
|
|
46
|
+
}
|
|
47
|
+
|
|
27
48
|
export interface ArgumentLine2 {
|
|
28
49
|
start?: Vector3F64
|
|
29
50
|
end?: Vector3F64
|
|
@@ -40,6 +61,19 @@ export interface CheckLineSideVisibilityOption {
|
|
|
40
61
|
trajectorys: Record<string, Vector3F64>
|
|
41
62
|
}
|
|
42
63
|
|
|
64
|
+
export interface CheckLineSideVisibilityOption {
|
|
65
|
+
view?: boolean
|
|
66
|
+
pcdDir: string
|
|
67
|
+
lines: Array<Line>
|
|
68
|
+
trajectorys: Record<string, Vector3F64>
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface CheckResult {
|
|
72
|
+
originalVertices: Array<Square>
|
|
73
|
+
allCenterPoints: Array<Point>
|
|
74
|
+
offsets?: Array<number>
|
|
75
|
+
}
|
|
76
|
+
|
|
43
77
|
export interface CheckResult {
|
|
44
78
|
originalVertices: Array<Square>
|
|
45
79
|
allCenterPoints: Array<Point>
|
|
@@ -82,6 +116,20 @@ export interface Index {
|
|
|
82
116
|
index: number
|
|
83
117
|
}
|
|
84
118
|
|
|
119
|
+
export interface Index {
|
|
120
|
+
index: number
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface Line {
|
|
124
|
+
start: Vector3F64
|
|
125
|
+
end: Vector3F64
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface Line {
|
|
129
|
+
start: Vector3F64
|
|
130
|
+
end: Vector3F64
|
|
131
|
+
}
|
|
132
|
+
|
|
85
133
|
export interface Line {
|
|
86
134
|
start: Vector3F64
|
|
87
135
|
end: Vector3F64
|
|
@@ -98,6 +146,12 @@ export interface LineData {
|
|
|
98
146
|
checkResults: Array<CheckResult>
|
|
99
147
|
}
|
|
100
148
|
|
|
149
|
+
export interface LineData {
|
|
150
|
+
start: Vector3F64
|
|
151
|
+
end: Vector3F64
|
|
152
|
+
checkResults: Array<CheckResult>
|
|
153
|
+
}
|
|
154
|
+
|
|
101
155
|
export declare function modelPreview(option: Parameter): ModelPreviewResults
|
|
102
156
|
|
|
103
157
|
export interface ModelPreviewResults {
|
|
@@ -136,6 +190,19 @@ export interface PcBackfaceTestOptions {
|
|
|
136
190
|
distProjection: boolean
|
|
137
191
|
}
|
|
138
192
|
|
|
193
|
+
export interface PcBackfaceTestOptions {
|
|
194
|
+
view?: boolean
|
|
195
|
+
pcdDir: string
|
|
196
|
+
lines: LineDataList
|
|
197
|
+
trajectorys: Record<string, Trajectory>
|
|
198
|
+
distProjection: boolean
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface Quads {
|
|
202
|
+
originalVertices: Array<Array<Vector3F64>>
|
|
203
|
+
allCenterPoints: Array<Vector3F64>
|
|
204
|
+
}
|
|
205
|
+
|
|
139
206
|
export interface Quads {
|
|
140
207
|
originalVertices: Array<Array<Vector3F64>>
|
|
141
208
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -223,6 +290,23 @@ export interface Trajectory {
|
|
|
223
290
|
qw: number
|
|
224
291
|
}
|
|
225
292
|
|
|
293
|
+
export interface Trajectory {
|
|
294
|
+
x: number
|
|
295
|
+
y: number
|
|
296
|
+
z: number
|
|
297
|
+
qx: number
|
|
298
|
+
qy: number
|
|
299
|
+
qz: number
|
|
300
|
+
qw: number
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** 三维向量,包含 x、y、z 分量 */
|
|
304
|
+
export interface Vector3F64 {
|
|
305
|
+
x: number
|
|
306
|
+
y: number
|
|
307
|
+
z: number
|
|
308
|
+
}
|
|
309
|
+
|
|
226
310
|
/** 三维向量,包含 x、y、z 分量 */
|
|
227
311
|
export interface Vector3F64 {
|
|
228
312
|
x: number
|