rm-gxf-computing-rusts 0.0.44 → 0.0.46
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 +4 -144
- package/src/index.js +1 -1
- package/src/main.js +2 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ export declare class SquareBackfacePointCloudTest {
|
|
|
6
6
|
compute(): Array<number>
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export declare class SquareHasObjectInFront {
|
|
10
|
+
constructor(option: HasObjectInFrontOptions)
|
|
11
|
+
push(data: ArgumentLine2): void
|
|
12
|
+
compute(): Array<number>
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export interface ArgumentBox3 {
|
|
@@ -21,20 +22,6 @@ export interface ArgumentBoxInfo {
|
|
|
21
22
|
positionArr: Array<Vector3F64>
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
export interface ArgumentBoxInfo {
|
|
25
|
-
box3: ArgumentBox3
|
|
26
|
-
positionArr: Array<Vector3F64>
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface ArgumentLine {
|
|
30
|
-
start?: Vector3F64
|
|
31
|
-
end?: Vector3F64
|
|
32
|
-
missingCheckResults: Array<Quads>
|
|
33
|
-
existSegments: Array<Quads>
|
|
34
|
-
intersectionSegments?: Array<Array<Index>>
|
|
35
|
-
objPositionArr?: Array<Array<number>>
|
|
36
|
-
}
|
|
37
|
-
|
|
38
25
|
export interface ArgumentLine {
|
|
39
26
|
start?: Vector3F64
|
|
40
27
|
end?: Vector3F64
|
|
@@ -51,13 +38,6 @@ export interface ArgumentLine2 {
|
|
|
51
38
|
existSegments: Array<Quads>
|
|
52
39
|
}
|
|
53
40
|
|
|
54
|
-
export interface ArgumentLine2 {
|
|
55
|
-
start?: Vector3F64
|
|
56
|
-
end?: Vector3F64
|
|
57
|
-
checkResults: Array<Quads>
|
|
58
|
-
existSegments: Array<Quads>
|
|
59
|
-
}
|
|
60
|
-
|
|
61
41
|
export declare function checkLineSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
62
42
|
|
|
63
43
|
export interface CheckLineSideVisibilityOption {
|
|
@@ -67,19 +47,6 @@ export interface CheckLineSideVisibilityOption {
|
|
|
67
47
|
trajectorys: Record<string, Vector3F64>
|
|
68
48
|
}
|
|
69
49
|
|
|
70
|
-
export interface CheckLineSideVisibilityOption {
|
|
71
|
-
view?: boolean
|
|
72
|
-
pcdDir: string
|
|
73
|
-
lines: Array<Line>
|
|
74
|
-
trajectorys: Record<string, Vector3F64>
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface CheckResult {
|
|
78
|
-
originalVertices: Array<Square>
|
|
79
|
-
allCenterPoints: Array<Point>
|
|
80
|
-
offsets?: Array<number>
|
|
81
|
-
}
|
|
82
|
-
|
|
83
50
|
export interface CheckResult {
|
|
84
51
|
originalVertices: Array<Square>
|
|
85
52
|
allCenterPoints: Array<Point>
|
|
@@ -91,17 +58,6 @@ export interface DepthFilter {
|
|
|
91
58
|
depthThreshold: number
|
|
92
59
|
}
|
|
93
60
|
|
|
94
|
-
export interface DepthFilter {
|
|
95
|
-
searchRadius: number
|
|
96
|
-
depthThreshold: number
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface HasObjectInFrontOptions {
|
|
100
|
-
view?: boolean
|
|
101
|
-
lines: Array<ArgumentLine2>
|
|
102
|
-
boxInfos: Array<ArgumentBoxInfo>
|
|
103
|
-
}
|
|
104
|
-
|
|
105
61
|
export interface HasObjectInFrontOptions {
|
|
106
62
|
view?: boolean
|
|
107
63
|
lines: Array<ArgumentLine2>
|
|
@@ -113,24 +69,10 @@ export interface HasQquareBehindOptions {
|
|
|
113
69
|
lines: Array<ArgumentLine>
|
|
114
70
|
}
|
|
115
71
|
|
|
116
|
-
export interface HasQquareBehindOptions {
|
|
117
|
-
view?: boolean
|
|
118
|
-
lines: Array<ArgumentLine>
|
|
119
|
-
}
|
|
120
|
-
|
|
121
72
|
export interface Index {
|
|
122
73
|
index: number
|
|
123
74
|
}
|
|
124
75
|
|
|
125
|
-
export interface Index {
|
|
126
|
-
index: number
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface Line {
|
|
130
|
-
start: Vector3F64
|
|
131
|
-
end: Vector3F64
|
|
132
|
-
}
|
|
133
|
-
|
|
134
76
|
export interface Line {
|
|
135
77
|
start: Vector3F64
|
|
136
78
|
end: Vector3F64
|
|
@@ -141,17 +83,6 @@ export interface Line {
|
|
|
141
83
|
end: Vector3F64
|
|
142
84
|
}
|
|
143
85
|
|
|
144
|
-
export interface Line {
|
|
145
|
-
start: Vector3F64
|
|
146
|
-
end: Vector3F64
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export interface LineData {
|
|
150
|
-
start: Vector3F64
|
|
151
|
-
end: Vector3F64
|
|
152
|
-
checkResults: Array<CheckResult>
|
|
153
|
-
}
|
|
154
|
-
|
|
155
86
|
export interface LineData {
|
|
156
87
|
start: Vector3F64
|
|
157
88
|
end: Vector3F64
|
|
@@ -166,20 +97,6 @@ export interface ModelPreviewResults {
|
|
|
166
97
|
height: number
|
|
167
98
|
}
|
|
168
99
|
|
|
169
|
-
export interface ModelPreviewResults {
|
|
170
|
-
data: Array<number>
|
|
171
|
-
width: number
|
|
172
|
-
height: number
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export interface Parameter {
|
|
176
|
-
view?: boolean
|
|
177
|
-
width: number
|
|
178
|
-
height: number
|
|
179
|
-
url: string
|
|
180
|
-
outUrl?: string
|
|
181
|
-
}
|
|
182
|
-
|
|
183
100
|
export interface Parameter {
|
|
184
101
|
view?: boolean
|
|
185
102
|
width: number
|
|
@@ -196,19 +113,6 @@ export interface PcBackfaceTestOptions {
|
|
|
196
113
|
distProjection: boolean
|
|
197
114
|
}
|
|
198
115
|
|
|
199
|
-
export interface PcBackfaceTestOptions {
|
|
200
|
-
view?: boolean
|
|
201
|
-
pcdDir: string
|
|
202
|
-
lines: LineDataList
|
|
203
|
-
trajectorys: Record<string, Trajectory>
|
|
204
|
-
distProjection: boolean
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export interface Quads {
|
|
208
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
209
|
-
allCenterPoints: Array<Vector3F64>
|
|
210
|
-
}
|
|
211
|
-
|
|
212
116
|
export interface Quads {
|
|
213
117
|
originalVertices: Array<Array<Vector3F64>>
|
|
214
118
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -220,12 +124,6 @@ export interface Results {
|
|
|
220
124
|
objIds: Array<Array<string>>
|
|
221
125
|
}
|
|
222
126
|
|
|
223
|
-
export interface Results {
|
|
224
|
-
results: Array<Array<Array<number>>>
|
|
225
|
-
positions: Array<Vector3F64>
|
|
226
|
-
objIds: Array<Array<string>>
|
|
227
|
-
}
|
|
228
|
-
|
|
229
127
|
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
230
128
|
|
|
231
129
|
export interface SamplePointsByImageOption {
|
|
@@ -254,34 +152,6 @@ export interface SamplePointsByImageOption {
|
|
|
254
152
|
edgeCorrosionSize?: number
|
|
255
153
|
}
|
|
256
154
|
|
|
257
|
-
export interface SamplePointsByImageOption {
|
|
258
|
-
view?: boolean
|
|
259
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
260
|
-
pcdPath: string
|
|
261
|
-
/** 是否使用pcd片段 */
|
|
262
|
-
pcdChunk?: boolean
|
|
263
|
-
/** 图片url列表 */
|
|
264
|
-
imageUrls: Array<string>
|
|
265
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
266
|
-
minZ?: number
|
|
267
|
-
/** 当前使用版本 */
|
|
268
|
-
version?: string
|
|
269
|
-
/** 点云蔟过滤 */
|
|
270
|
-
clusterFilter?: boolean
|
|
271
|
-
/** 点云蔟分类距离 */
|
|
272
|
-
distanceThreshold?: number
|
|
273
|
-
/** 深度过滤 */
|
|
274
|
-
depthFilter?: DepthFilter
|
|
275
|
-
/** 过滤类型列表 */
|
|
276
|
-
excludeCategoryList?: Array<string>
|
|
277
|
-
/** 形状使用轮廓 */
|
|
278
|
-
contourMode?: boolean
|
|
279
|
-
/** 边缘腐蚀大小 */
|
|
280
|
-
edgeCorrosionSize?: number
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
284
|
-
|
|
285
155
|
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
286
156
|
|
|
287
157
|
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
@@ -296,16 +166,6 @@ export interface Trajectory {
|
|
|
296
166
|
qw: number
|
|
297
167
|
}
|
|
298
168
|
|
|
299
|
-
export interface Trajectory {
|
|
300
|
-
x: number
|
|
301
|
-
y: number
|
|
302
|
-
z: number
|
|
303
|
-
qx: number
|
|
304
|
-
qy: number
|
|
305
|
-
qz: number
|
|
306
|
-
qw: number
|
|
307
|
-
}
|
|
308
|
-
|
|
309
169
|
/** 三维向量,包含 x、y、z 分量 */
|
|
310
170
|
export interface Vector3F64 {
|
|
311
171
|
x: number
|
package/src/index.js
CHANGED
|
@@ -588,9 +588,9 @@ if (!nativeBinding) {
|
|
|
588
588
|
|
|
589
589
|
module.exports = nativeBinding
|
|
590
590
|
module.exports.SquareBackfacePointCloudTest = nativeBinding.SquareBackfacePointCloudTest
|
|
591
|
+
module.exports.SquareHasObjectInFront = nativeBinding.SquareHasObjectInFront
|
|
591
592
|
module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
592
593
|
module.exports.modelPreview = nativeBinding.modelPreview
|
|
593
594
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
594
|
-
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
595
595
|
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|
|
596
596
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|
package/src/main.js
CHANGED
|
@@ -185,3 +185,5 @@ module.exports.samplePointsByImage = samplePointsByImage
|
|
|
185
185
|
module.exports.modelPreview = modelPreview
|
|
186
186
|
module.exports.squareHasObjectInFront = gxf.squareHasObjectInFront
|
|
187
187
|
module.exports.SquareBackfacePointCloudTest = gxf.SquareBackfacePointCloudTest
|
|
188
|
+
module.exports.SquareHasObjectInFront = gxf.SquareHasObjectInFront
|
|
189
|
+
|