rm-gxf-computing-rusts 0.0.31 → 0.0.33
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 +55 -6
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export interface CheckResult {
|
|
|
22
22
|
offsets?: Array<number>
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export interface CheckResult {
|
|
26
|
+
originalVertices: Array<Square>
|
|
27
|
+
allCenterPoints: Array<Point>
|
|
28
|
+
offsets?: Array<number>
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
export interface DepthFilter {
|
|
26
32
|
searchRadius: number
|
|
27
33
|
depthThreshold: number
|
|
@@ -70,6 +76,22 @@ export interface Line {
|
|
|
70
76
|
end: Vector3F64
|
|
71
77
|
}
|
|
72
78
|
|
|
79
|
+
export interface Line {
|
|
80
|
+
start: Vector3F64
|
|
81
|
+
end: Vector3F64
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface Line {
|
|
85
|
+
start: Vector3F64
|
|
86
|
+
end: Vector3F64
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface LineData {
|
|
90
|
+
start: Vector3F64
|
|
91
|
+
end: Vector3F64
|
|
92
|
+
checkResults: Array<CheckResult>
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
export interface LineData {
|
|
74
96
|
start: Vector3F64
|
|
75
97
|
end: Vector3F64
|
|
@@ -81,7 +103,8 @@ export interface ParseLineResult {
|
|
|
81
103
|
end?: Vector3F64
|
|
82
104
|
missingCheckResults: Array<Quads>
|
|
83
105
|
existSegments: Array<Quads>
|
|
84
|
-
intersectionSegments
|
|
106
|
+
intersectionSegments?: Array<Array<Index>>
|
|
107
|
+
objPositionArr?: Array<Array<number>>
|
|
85
108
|
}
|
|
86
109
|
|
|
87
110
|
export interface ParseLineResult {
|
|
@@ -89,7 +112,16 @@ export interface ParseLineResult {
|
|
|
89
112
|
end?: Vector3F64
|
|
90
113
|
missingCheckResults: Array<Quads>
|
|
91
114
|
existSegments: Array<Quads>
|
|
92
|
-
intersectionSegments
|
|
115
|
+
intersectionSegments?: Array<Array<Index>>
|
|
116
|
+
objPositionArr?: Array<Array<number>>
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface PcBackfaceTestOptions {
|
|
120
|
+
view?: boolean
|
|
121
|
+
pcdDir: string
|
|
122
|
+
lines: LineDataList
|
|
123
|
+
trajectorys: Record<string, Trajectory>
|
|
124
|
+
distProjection: boolean
|
|
93
125
|
}
|
|
94
126
|
|
|
95
127
|
export interface PcBackfaceTestOptions {
|
|
@@ -178,10 +210,6 @@ export interface SamplePointsByImageOption {
|
|
|
178
210
|
depthFilter?: DepthFilter
|
|
179
211
|
/** 过滤类型列表 */
|
|
180
212
|
excludeCategoryList?: Array<string>
|
|
181
|
-
/** 形状使用轮廓 */
|
|
182
|
-
contourMode?: boolean
|
|
183
|
-
/** 边缘腐蚀大小 */
|
|
184
|
-
edgeCorrosionSize?: number
|
|
185
213
|
}
|
|
186
214
|
|
|
187
215
|
export interface SamplePointsByImageOption {
|
|
@@ -204,6 +232,10 @@ export interface SamplePointsByImageOption {
|
|
|
204
232
|
depthFilter?: DepthFilter
|
|
205
233
|
/** 过滤类型列表 */
|
|
206
234
|
excludeCategoryList?: Array<string>
|
|
235
|
+
/** 形状使用轮廓 */
|
|
236
|
+
contourMode?: boolean
|
|
237
|
+
/** 边缘腐蚀大小 */
|
|
238
|
+
edgeCorrosionSize?: number
|
|
207
239
|
}
|
|
208
240
|
|
|
209
241
|
export interface SamplePointsByImageOption {
|
|
@@ -246,6 +278,23 @@ export interface Trajectory {
|
|
|
246
278
|
qw: number
|
|
247
279
|
}
|
|
248
280
|
|
|
281
|
+
export interface Trajectory {
|
|
282
|
+
x: number
|
|
283
|
+
y: number
|
|
284
|
+
z: number
|
|
285
|
+
qx: number
|
|
286
|
+
qy: number
|
|
287
|
+
qz: number
|
|
288
|
+
qw: number
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/** 三维向量,包含 x、y、z 分量 */
|
|
292
|
+
export interface Vector3F64 {
|
|
293
|
+
x: number
|
|
294
|
+
y: number
|
|
295
|
+
z: number
|
|
296
|
+
}
|
|
297
|
+
|
|
249
298
|
/** 三维向量,包含 x、y、z 分量 */
|
|
250
299
|
export interface Vector3F64 {
|
|
251
300
|
x: number
|