rm-gxf-computing-rusts 0.0.54 → 0.0.55
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 +10 -139
- package/src/index.js +2 -2
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
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
|
+
}
|
|
9
|
+
|
|
3
10
|
export declare class SquareBackfacePointCloudTest {
|
|
4
11
|
constructor(option: PcBackfaceTestOptions)
|
|
5
12
|
push(data: LineData): void
|
|
@@ -17,16 +24,6 @@ export interface ArgumentBox3 {
|
|
|
17
24
|
max: Vector3F64
|
|
18
25
|
}
|
|
19
26
|
|
|
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
27
|
export interface ArgumentBoxInfo {
|
|
31
28
|
box3: ArgumentBox3
|
|
32
29
|
positionArr: Array<Vector3F64>
|
|
@@ -41,15 +38,6 @@ export interface ArgumentLine {
|
|
|
41
38
|
objPositionArr?: Array<Array<number>>
|
|
42
39
|
}
|
|
43
40
|
|
|
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
41
|
export interface ArgumentLine2 {
|
|
54
42
|
start?: Vector3F64
|
|
55
43
|
end?: Vector3F64
|
|
@@ -57,22 +45,6 @@ export interface ArgumentLine2 {
|
|
|
57
45
|
existSegments: Array<Quads>
|
|
58
46
|
}
|
|
59
47
|
|
|
60
|
-
export interface ArgumentLine2 {
|
|
61
|
-
start?: Vector3F64
|
|
62
|
-
end?: Vector3F64
|
|
63
|
-
checkResults: Array<Quads>
|
|
64
|
-
existSegments: Array<Quads>
|
|
65
|
-
}
|
|
66
|
-
|
|
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
48
|
export interface CheckLineSideVisibilityOption {
|
|
77
49
|
view?: boolean
|
|
78
50
|
pcdDir: string
|
|
@@ -91,28 +63,12 @@ export interface DepthFilter {
|
|
|
91
63
|
depthThreshold: number
|
|
92
64
|
}
|
|
93
65
|
|
|
94
|
-
export interface DepthFilter {
|
|
95
|
-
searchRadius: number
|
|
96
|
-
depthThreshold: number
|
|
97
|
-
}
|
|
98
|
-
|
|
99
66
|
export interface HasObjectInFrontOptions {
|
|
100
67
|
view?: boolean
|
|
101
68
|
lines: Array<ArgumentLine2>
|
|
102
69
|
boxInfos: Array<ArgumentBoxInfo>
|
|
103
70
|
}
|
|
104
71
|
|
|
105
|
-
export interface HasObjectInFrontOptions {
|
|
106
|
-
view?: boolean
|
|
107
|
-
lines: Array<ArgumentLine2>
|
|
108
|
-
boxInfos: Array<ArgumentBoxInfo>
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface HasQquareBehindOptions {
|
|
112
|
-
view?: boolean
|
|
113
|
-
lines: Array<ArgumentLine>
|
|
114
|
-
}
|
|
115
|
-
|
|
116
72
|
export interface HasQquareBehindOptions {
|
|
117
73
|
view?: boolean
|
|
118
74
|
lines: Array<ArgumentLine>
|
|
@@ -137,29 +93,6 @@ export interface ImageInfo {
|
|
|
137
93
|
url: string
|
|
138
94
|
}
|
|
139
95
|
|
|
140
|
-
export interface ImageInfo {
|
|
141
|
-
x: number
|
|
142
|
-
y: number
|
|
143
|
-
z: number
|
|
144
|
-
qx: number
|
|
145
|
-
qy: number
|
|
146
|
-
qz: number
|
|
147
|
-
qw: number
|
|
148
|
-
cq: number
|
|
149
|
-
fx: number
|
|
150
|
-
fy: number
|
|
151
|
-
cx: number
|
|
152
|
-
cy: number
|
|
153
|
-
width: number
|
|
154
|
-
height: number
|
|
155
|
-
dist: Array<number>
|
|
156
|
-
url: string
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface Index {
|
|
160
|
-
index: number
|
|
161
|
-
}
|
|
162
|
-
|
|
163
96
|
export interface Index {
|
|
164
97
|
index: number
|
|
165
98
|
}
|
|
@@ -194,12 +127,6 @@ export interface ModelPreviewResults {
|
|
|
194
127
|
height: number
|
|
195
128
|
}
|
|
196
129
|
|
|
197
|
-
export interface ModelPreviewResults {
|
|
198
|
-
data: Array<number>
|
|
199
|
-
width: number
|
|
200
|
-
height: number
|
|
201
|
-
}
|
|
202
|
-
|
|
203
130
|
/** 着色全景 */
|
|
204
131
|
export declare function panorama(option: PanoramaOption): PanoramaResults
|
|
205
132
|
|
|
@@ -210,17 +137,6 @@ export interface PanoramaOption {
|
|
|
210
137
|
imageGroups: Array<Array<ImageInfo>>
|
|
211
138
|
}
|
|
212
139
|
|
|
213
|
-
export interface PanoramaOption {
|
|
214
|
-
view?: boolean
|
|
215
|
-
baseUrl: string
|
|
216
|
-
keys?: Array<string>
|
|
217
|
-
imageGroups: Array<Array<ImageInfo>>
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface PanoramaResults {
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
140
|
export interface PanoramaResults {
|
|
225
141
|
|
|
226
142
|
}
|
|
@@ -233,14 +149,6 @@ export interface Parameter {
|
|
|
233
149
|
outUrl?: string
|
|
234
150
|
}
|
|
235
151
|
|
|
236
|
-
export interface Parameter {
|
|
237
|
-
view?: boolean
|
|
238
|
-
width: number
|
|
239
|
-
height: number
|
|
240
|
-
url: string
|
|
241
|
-
outUrl?: string
|
|
242
|
-
}
|
|
243
|
-
|
|
244
152
|
export interface PcBackfaceTestOptions {
|
|
245
153
|
view?: boolean
|
|
246
154
|
pcdDir: string
|
|
@@ -253,17 +161,10 @@ export interface PcVisibleDirectOption {
|
|
|
253
161
|
view?: boolean
|
|
254
162
|
pcdDir: string
|
|
255
163
|
lines: Array<Line>
|
|
164
|
+
hitMinimumValue?: number
|
|
256
165
|
trajectorys: Record<string, Vector3F64>
|
|
257
166
|
}
|
|
258
167
|
|
|
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
168
|
export interface Quads {
|
|
268
169
|
originalVertices: Array<Array<Vector3F64>>
|
|
269
170
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -275,12 +176,6 @@ export interface Results {
|
|
|
275
176
|
objIds: Array<Array<string>>
|
|
276
177
|
}
|
|
277
178
|
|
|
278
|
-
export interface Results {
|
|
279
|
-
results: Array<Array<Array<number>>>
|
|
280
|
-
positions: Array<Vector3F64>
|
|
281
|
-
objIds: Array<Array<string>>
|
|
282
|
-
}
|
|
283
|
-
|
|
284
179
|
/** 通过图片对点云投影采样 */
|
|
285
180
|
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
286
181
|
|
|
@@ -310,31 +205,7 @@ export interface SamplePointsByImageOption {
|
|
|
310
205
|
edgeCorrosionSize?: number
|
|
311
206
|
}
|
|
312
207
|
|
|
313
|
-
export
|
|
314
|
-
view?: boolean
|
|
315
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
316
|
-
pcdPath: string
|
|
317
|
-
/** 是否使用pcd片段 */
|
|
318
|
-
pcdChunk?: boolean
|
|
319
|
-
/** 图片url列表 */
|
|
320
|
-
imageUrls: Array<string>
|
|
321
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
322
|
-
minZ?: number
|
|
323
|
-
/** 当前使用版本 */
|
|
324
|
-
version?: string
|
|
325
|
-
/** 点云蔟过滤 */
|
|
326
|
-
clusterFilter?: boolean
|
|
327
|
-
/** 点云蔟分类距离 */
|
|
328
|
-
distanceThreshold?: number
|
|
329
|
-
/** 深度过滤 */
|
|
330
|
-
depthFilter?: DepthFilter
|
|
331
|
-
/** 过滤类型列表 */
|
|
332
|
-
excludeCategoryList?: Array<string>
|
|
333
|
-
/** 形状使用轮廓 */
|
|
334
|
-
contourMode?: boolean
|
|
335
|
-
/** 边缘腐蚀大小 */
|
|
336
|
-
edgeCorrosionSize?: number
|
|
337
|
-
}
|
|
208
|
+
export declare function setPrintProgress(enabled: boolean): void
|
|
338
209
|
|
|
339
210
|
/** 检测小方块背面是否有点云 */
|
|
340
211
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
@@ -345,7 +216,7 @@ export declare function squareHasObjectInFront(option: HasObjectInFrontOptions):
|
|
|
345
216
|
/** 检测 小方块 是否被 其他小方块遮挡 */
|
|
346
217
|
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
347
218
|
|
|
348
|
-
/**
|
|
219
|
+
/** 测试 */
|
|
349
220
|
export declare function test(): void
|
|
350
221
|
|
|
351
222
|
export interface Trajectory {
|
package/src/index.js
CHANGED
|
@@ -587,13 +587,13 @@ 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
594
|
module.exports.panorama = nativeBinding.panorama
|
|
595
|
-
module.exports.pointCloudVisibleDirection = nativeBinding.pointCloudVisibleDirection
|
|
596
595
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
596
|
+
module.exports.setPrintProgress = nativeBinding.setPrintProgress
|
|
597
597
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
598
598
|
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|
|
599
599
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|