rm-gxf-computing-rusts 0.0.54 → 0.0.57
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 +5 -5
- package/src/gfx.linux-x64-gnu.node +0 -0
- package/src/gfx.win32-x64-msvc.node +0 -0
- package/src/index.d.ts +22 -137
- package/src/index.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rm-gxf-computing-rusts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "初秋",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"import": {
|
|
15
15
|
"types": "./src/index.d.ts",
|
|
16
|
-
"default": "./src/
|
|
16
|
+
"default": "./src/index.js"
|
|
17
17
|
},
|
|
18
18
|
"require": {
|
|
19
19
|
"types": "./src/index.d.ts",
|
|
20
|
-
"default": "./src/
|
|
20
|
+
"default": "./src/index.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"./utils": {
|
|
24
24
|
"import": {
|
|
25
25
|
"types": "./src/index.d.ts",
|
|
26
|
-
"default": "./src/
|
|
26
|
+
"default": "./src/index.js"
|
|
27
27
|
},
|
|
28
28
|
"require": {
|
|
29
29
|
"types": "./src/index.d.ts",
|
|
30
|
-
"default": "./src/
|
|
30
|
+
"default": "./src/index.js"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export declare class LineHelper {
|
|
4
|
+
/** 1.0 */
|
|
5
|
+
static checkSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
6
|
+
/** 2.0 点云可见方向检测 */
|
|
7
|
+
static visibleDirection(option: PCVisibleDirectOption): Array<number>
|
|
8
|
+
static visibleDirectionAsync(option: PCVisibleDirectOption): Promise<Array<number>>
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
export declare class SquareBackfacePointCloudTest {
|
|
4
12
|
constructor(option: PcBackfaceTestOptions)
|
|
5
13
|
push(data: LineData): void
|
|
6
14
|
compute(): Array<number>
|
|
15
|
+
computeAsync(): Promise<Array<number>>
|
|
7
16
|
}
|
|
8
17
|
|
|
9
18
|
export declare class SquareHasObjectInFront {
|
|
10
19
|
constructor(option: HasObjectInFrontOptions)
|
|
11
20
|
push(data: ArgumentLine2): void
|
|
12
21
|
compute(): Array<number>
|
|
22
|
+
computeAsync(): Promise<Array<number>>
|
|
13
23
|
}
|
|
14
24
|
|
|
15
25
|
export interface ArgumentBox3 {
|
|
@@ -17,16 +27,6 @@ export interface ArgumentBox3 {
|
|
|
17
27
|
max: Vector3F64
|
|
18
28
|
}
|
|
19
29
|
|
|
20
|
-
export interface ArgumentBox3 {
|
|
21
|
-
min: Vector3F64
|
|
22
|
-
max: Vector3F64
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface ArgumentBoxInfo {
|
|
26
|
-
box3: ArgumentBox3
|
|
27
|
-
positionArr: Array<Vector3F64>
|
|
28
|
-
}
|
|
29
|
-
|
|
30
30
|
export interface ArgumentBoxInfo {
|
|
31
31
|
box3: ArgumentBox3
|
|
32
32
|
positionArr: Array<Vector3F64>
|
|
@@ -41,22 +41,6 @@ export interface ArgumentLine {
|
|
|
41
41
|
objPositionArr?: Array<Array<number>>
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export interface ArgumentLine {
|
|
45
|
-
start?: Vector3F64
|
|
46
|
-
end?: Vector3F64
|
|
47
|
-
missingCheckResults: Array<Quads>
|
|
48
|
-
existSegments: Array<Quads>
|
|
49
|
-
intersectionSegments?: Array<Array<Index>>
|
|
50
|
-
objPositionArr?: Array<Array<number>>
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ArgumentLine2 {
|
|
54
|
-
start?: Vector3F64
|
|
55
|
-
end?: Vector3F64
|
|
56
|
-
checkResults: Array<Quads>
|
|
57
|
-
existSegments: Array<Quads>
|
|
58
|
-
}
|
|
59
|
-
|
|
60
44
|
export interface ArgumentLine2 {
|
|
61
45
|
start?: Vector3F64
|
|
62
46
|
end?: Vector3F64
|
|
@@ -64,15 +48,6 @@ export interface ArgumentLine2 {
|
|
|
64
48
|
existSegments: Array<Quads>
|
|
65
49
|
}
|
|
66
50
|
|
|
67
|
-
export declare function checkLineSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
68
|
-
|
|
69
|
-
export interface CheckLineSideVisibilityOption {
|
|
70
|
-
view?: boolean
|
|
71
|
-
pcdDir: string
|
|
72
|
-
lines: Array<Line>
|
|
73
|
-
trajectorys: Record<string, Vector3F64>
|
|
74
|
-
}
|
|
75
|
-
|
|
76
51
|
export interface CheckLineSideVisibilityOption {
|
|
77
52
|
view?: boolean
|
|
78
53
|
pcdDir: string
|
|
@@ -91,17 +66,6 @@ export interface DepthFilter {
|
|
|
91
66
|
depthThreshold: number
|
|
92
67
|
}
|
|
93
68
|
|
|
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
69
|
export interface HasObjectInFrontOptions {
|
|
106
70
|
view?: boolean
|
|
107
71
|
lines: Array<ArgumentLine2>
|
|
@@ -113,30 +77,6 @@ export interface HasQquareBehindOptions {
|
|
|
113
77
|
lines: Array<ArgumentLine>
|
|
114
78
|
}
|
|
115
79
|
|
|
116
|
-
export interface HasQquareBehindOptions {
|
|
117
|
-
view?: boolean
|
|
118
|
-
lines: Array<ArgumentLine>
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface ImageInfo {
|
|
122
|
-
x: number
|
|
123
|
-
y: number
|
|
124
|
-
z: number
|
|
125
|
-
qx: number
|
|
126
|
-
qy: number
|
|
127
|
-
qz: number
|
|
128
|
-
qw: number
|
|
129
|
-
cq: number
|
|
130
|
-
fx: number
|
|
131
|
-
fy: number
|
|
132
|
-
cx: number
|
|
133
|
-
cy: number
|
|
134
|
-
width: number
|
|
135
|
-
height: number
|
|
136
|
-
dist: Array<number>
|
|
137
|
-
url: string
|
|
138
|
-
}
|
|
139
|
-
|
|
140
80
|
export interface ImageInfo {
|
|
141
81
|
x: number
|
|
142
82
|
y: number
|
|
@@ -160,10 +100,6 @@ export interface Index {
|
|
|
160
100
|
index: number
|
|
161
101
|
}
|
|
162
102
|
|
|
163
|
-
export interface Index {
|
|
164
|
-
index: number
|
|
165
|
-
}
|
|
166
|
-
|
|
167
103
|
export interface Line {
|
|
168
104
|
start: Vector3F64
|
|
169
105
|
end: Vector3F64
|
|
@@ -194,21 +130,13 @@ export interface ModelPreviewResults {
|
|
|
194
130
|
height: number
|
|
195
131
|
}
|
|
196
132
|
|
|
197
|
-
export
|
|
198
|
-
data: Array<number>
|
|
199
|
-
width: number
|
|
200
|
-
height: number
|
|
201
|
-
}
|
|
133
|
+
export declare function onProgress(fun?: (((err: Error | null, arg: number) => any)) | undefined | null): void
|
|
202
134
|
|
|
203
135
|
/** 着色全景 */
|
|
204
136
|
export declare function panorama(option: PanoramaOption): PanoramaResults
|
|
205
137
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
baseUrl: string
|
|
209
|
-
keys?: Array<string>
|
|
210
|
-
imageGroups: Array<Array<ImageInfo>>
|
|
211
|
-
}
|
|
138
|
+
/** 着色全景 */
|
|
139
|
+
export declare function panoramaAsync(option: PanoramaOption): Promise<PanoramaResults>
|
|
212
140
|
|
|
213
141
|
export interface PanoramaOption {
|
|
214
142
|
view?: boolean
|
|
@@ -221,18 +149,6 @@ export interface PanoramaResults {
|
|
|
221
149
|
|
|
222
150
|
}
|
|
223
151
|
|
|
224
|
-
export interface PanoramaResults {
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export interface Parameter {
|
|
229
|
-
view?: boolean
|
|
230
|
-
width: number
|
|
231
|
-
height: number
|
|
232
|
-
url: string
|
|
233
|
-
outUrl?: string
|
|
234
|
-
}
|
|
235
|
-
|
|
236
152
|
export interface Parameter {
|
|
237
153
|
view?: boolean
|
|
238
154
|
width: number
|
|
@@ -253,17 +169,10 @@ export interface PcVisibleDirectOption {
|
|
|
253
169
|
view?: boolean
|
|
254
170
|
pcdDir: string
|
|
255
171
|
lines: Array<Line>
|
|
172
|
+
hitMinimumValue?: number
|
|
256
173
|
trajectorys: Record<string, Vector3F64>
|
|
257
174
|
}
|
|
258
175
|
|
|
259
|
-
/** 点云可见方向检测 */
|
|
260
|
-
export declare function pointCloudVisibleDirection(option: PcVisibleDirectOption): Array<number>
|
|
261
|
-
|
|
262
|
-
export interface Quads {
|
|
263
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
264
|
-
allCenterPoints: Array<Vector3F64>
|
|
265
|
-
}
|
|
266
|
-
|
|
267
176
|
export interface Quads {
|
|
268
177
|
originalVertices: Array<Array<Vector3F64>>
|
|
269
178
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -275,40 +184,11 @@ export interface Results {
|
|
|
275
184
|
objIds: Array<Array<string>>
|
|
276
185
|
}
|
|
277
186
|
|
|
278
|
-
export interface Results {
|
|
279
|
-
results: Array<Array<Array<number>>>
|
|
280
|
-
positions: Array<Vector3F64>
|
|
281
|
-
objIds: Array<Array<string>>
|
|
282
|
-
}
|
|
283
|
-
|
|
284
187
|
/** 通过图片对点云投影采样 */
|
|
285
188
|
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
286
189
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
290
|
-
pcdPath: string
|
|
291
|
-
/** 是否使用pcd片段 */
|
|
292
|
-
pcdChunk?: boolean
|
|
293
|
-
/** 图片url列表 */
|
|
294
|
-
imageUrls: Array<string>
|
|
295
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
296
|
-
minZ?: number
|
|
297
|
-
/** 当前使用版本 */
|
|
298
|
-
version?: string
|
|
299
|
-
/** 点云蔟过滤 */
|
|
300
|
-
clusterFilter?: boolean
|
|
301
|
-
/** 点云蔟分类距离 */
|
|
302
|
-
distanceThreshold?: number
|
|
303
|
-
/** 深度过滤 */
|
|
304
|
-
depthFilter?: DepthFilter
|
|
305
|
-
/** 过滤类型列表 */
|
|
306
|
-
excludeCategoryList?: Array<string>
|
|
307
|
-
/** 形状使用轮廓 */
|
|
308
|
-
contourMode?: boolean
|
|
309
|
-
/** 边缘腐蚀大小 */
|
|
310
|
-
edgeCorrosionSize?: number
|
|
311
|
-
}
|
|
190
|
+
/** 通过图片对点云投影采样 */
|
|
191
|
+
export declare function samplePointsByImageAsync(option: SamplePointsByImageOption): Promise<Results>
|
|
312
192
|
|
|
313
193
|
export interface SamplePointsByImageOption {
|
|
314
194
|
view?: boolean
|
|
@@ -336,16 +216,21 @@ export interface SamplePointsByImageOption {
|
|
|
336
216
|
edgeCorrosionSize?: number
|
|
337
217
|
}
|
|
338
218
|
|
|
219
|
+
export declare function setPrintProgress(enabled: boolean): void
|
|
220
|
+
|
|
339
221
|
/** 检测小方块背面是否有点云 */
|
|
340
222
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
341
223
|
|
|
224
|
+
/** 检测小方块背面是否有点云 */
|
|
225
|
+
export declare function squareBackfacePointCloudTestAsync(option: PcBackfaceTestOptions): Promise<Array<number>>
|
|
226
|
+
|
|
342
227
|
/** 检测 小方块 前面是否有 box 且没有其他小方块 */
|
|
343
228
|
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
344
229
|
|
|
345
230
|
/** 检测 小方块 是否被 其他小方块遮挡 */
|
|
346
231
|
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
347
232
|
|
|
348
|
-
/**
|
|
233
|
+
/** 测试 */
|
|
349
234
|
export declare function test(): void
|
|
350
235
|
|
|
351
236
|
export interface Trajectory {
|
package/src/index.js
CHANGED
|
@@ -587,14 +587,18 @@ if (!nativeBinding) {
|
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
module.exports = nativeBinding
|
|
590
|
+
module.exports.LineHelper = nativeBinding.LineHelper
|
|
590
591
|
module.exports.SquareBackfacePointCloudTest = nativeBinding.SquareBackfacePointCloudTest
|
|
591
592
|
module.exports.SquareHasObjectInFront = nativeBinding.SquareHasObjectInFront
|
|
592
|
-
module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
593
593
|
module.exports.modelPreview = nativeBinding.modelPreview
|
|
594
|
+
module.exports.onProgress = nativeBinding.onProgress
|
|
594
595
|
module.exports.panorama = nativeBinding.panorama
|
|
595
|
-
module.exports.
|
|
596
|
+
module.exports.panoramaAsync = nativeBinding.panoramaAsync
|
|
596
597
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
598
|
+
module.exports.samplePointsByImageAsync = nativeBinding.samplePointsByImageAsync
|
|
599
|
+
module.exports.setPrintProgress = nativeBinding.setPrintProgress
|
|
597
600
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
601
|
+
module.exports.squareBackfacePointCloudTestAsync = nativeBinding.squareBackfacePointCloudTestAsync
|
|
598
602
|
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|
|
599
603
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|
|
600
604
|
module.exports.test = nativeBinding.test
|