rm-gxf-computing-rusts 0.0.27 → 0.0.28
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/index.d.ts +51 -4
package/package.json
CHANGED
|
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
|
|
@@ -100,6 +122,14 @@ export interface PcBackfaceTestOptions {
|
|
|
100
122
|
distProjection: boolean
|
|
101
123
|
}
|
|
102
124
|
|
|
125
|
+
export interface PcBackfaceTestOptions {
|
|
126
|
+
view?: boolean
|
|
127
|
+
pcdDir: string
|
|
128
|
+
lines: LineDataList
|
|
129
|
+
trajectorys: Record<string, Trajectory>
|
|
130
|
+
distProjection: boolean
|
|
131
|
+
}
|
|
132
|
+
|
|
103
133
|
export interface Quads {
|
|
104
134
|
originalVertices: Array<Array<Vector3F64>>
|
|
105
135
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -178,10 +208,6 @@ export interface SamplePointsByImageOption {
|
|
|
178
208
|
depthFilter?: DepthFilter
|
|
179
209
|
/** 过滤类型列表 */
|
|
180
210
|
excludeCategoryList?: Array<string>
|
|
181
|
-
/** 形状使用轮廓 */
|
|
182
|
-
contourMode?: boolean
|
|
183
|
-
/** 边缘腐蚀大小 */
|
|
184
|
-
edgeCorrosionSize?: number
|
|
185
211
|
}
|
|
186
212
|
|
|
187
213
|
export interface SamplePointsByImageOption {
|
|
@@ -204,6 +230,10 @@ export interface SamplePointsByImageOption {
|
|
|
204
230
|
depthFilter?: DepthFilter
|
|
205
231
|
/** 过滤类型列表 */
|
|
206
232
|
excludeCategoryList?: Array<string>
|
|
233
|
+
/** 形状使用轮廓 */
|
|
234
|
+
contourMode?: boolean
|
|
235
|
+
/** 边缘腐蚀大小 */
|
|
236
|
+
edgeCorrosionSize?: number
|
|
207
237
|
}
|
|
208
238
|
|
|
209
239
|
export interface SamplePointsByImageOption {
|
|
@@ -246,6 +276,23 @@ export interface Trajectory {
|
|
|
246
276
|
qw: number
|
|
247
277
|
}
|
|
248
278
|
|
|
279
|
+
export interface Trajectory {
|
|
280
|
+
x: number
|
|
281
|
+
y: number
|
|
282
|
+
z: number
|
|
283
|
+
qx: number
|
|
284
|
+
qy: number
|
|
285
|
+
qz: number
|
|
286
|
+
qw: number
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** 三维向量,包含 x、y、z 分量 */
|
|
290
|
+
export interface Vector3F64 {
|
|
291
|
+
x: number
|
|
292
|
+
y: number
|
|
293
|
+
z: number
|
|
294
|
+
}
|
|
295
|
+
|
|
249
296
|
/** 三维向量,包含 x、y、z 分量 */
|
|
250
297
|
export interface Vector3F64 {
|
|
251
298
|
x: number
|