rm-gxf-computing-rusts 0.0.43 → 0.0.45
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 +3 -121
- package/src/index.js +0 -1
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export declare class SquareBackfacePointCloudTest {
|
|
4
|
-
constructor()
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export interface ArgumentBox3 {
|
|
9
|
-
min: Vector3F64
|
|
10
|
-
max: Vector3F64
|
|
4
|
+
constructor(option: PcBackfaceTestOptions)
|
|
5
|
+
push(data: LineData): void
|
|
6
|
+
compute(): Array<number>
|
|
11
7
|
}
|
|
12
8
|
|
|
13
9
|
export interface ArgumentBox3 {
|
|
@@ -20,20 +16,6 @@ export interface ArgumentBoxInfo {
|
|
|
20
16
|
positionArr: Array<Vector3F64>
|
|
21
17
|
}
|
|
22
18
|
|
|
23
|
-
export interface ArgumentBoxInfo {
|
|
24
|
-
box3: ArgumentBox3
|
|
25
|
-
positionArr: Array<Vector3F64>
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface ArgumentLine {
|
|
29
|
-
start?: Vector3F64
|
|
30
|
-
end?: Vector3F64
|
|
31
|
-
missingCheckResults: Array<Quads>
|
|
32
|
-
existSegments: Array<Quads>
|
|
33
|
-
intersectionSegments?: Array<Array<Index>>
|
|
34
|
-
objPositionArr?: Array<Array<number>>
|
|
35
|
-
}
|
|
36
|
-
|
|
37
19
|
export interface ArgumentLine {
|
|
38
20
|
start?: Vector3F64
|
|
39
21
|
end?: Vector3F64
|
|
@@ -50,13 +32,6 @@ export interface ArgumentLine2 {
|
|
|
50
32
|
existSegments: Array<Quads>
|
|
51
33
|
}
|
|
52
34
|
|
|
53
|
-
export interface ArgumentLine2 {
|
|
54
|
-
start?: Vector3F64
|
|
55
|
-
end?: Vector3F64
|
|
56
|
-
checkResults: Array<Quads>
|
|
57
|
-
existSegments: Array<Quads>
|
|
58
|
-
}
|
|
59
|
-
|
|
60
35
|
export declare function checkLineSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
61
36
|
|
|
62
37
|
export interface CheckLineSideVisibilityOption {
|
|
@@ -66,13 +41,6 @@ export interface CheckLineSideVisibilityOption {
|
|
|
66
41
|
trajectorys: Record<string, Vector3F64>
|
|
67
42
|
}
|
|
68
43
|
|
|
69
|
-
export interface CheckLineSideVisibilityOption {
|
|
70
|
-
view?: boolean
|
|
71
|
-
pcdDir: string
|
|
72
|
-
lines: Array<Line>
|
|
73
|
-
trajectorys: Record<string, Vector3F64>
|
|
74
|
-
}
|
|
75
|
-
|
|
76
44
|
export interface CheckResult {
|
|
77
45
|
originalVertices: Array<Square>
|
|
78
46
|
allCenterPoints: Array<Point>
|
|
@@ -84,17 +52,6 @@ export interface DepthFilter {
|
|
|
84
52
|
depthThreshold: number
|
|
85
53
|
}
|
|
86
54
|
|
|
87
|
-
export interface DepthFilter {
|
|
88
|
-
searchRadius: number
|
|
89
|
-
depthThreshold: number
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface HasObjectInFrontOptions {
|
|
93
|
-
view?: boolean
|
|
94
|
-
lines: Array<ArgumentLine2>
|
|
95
|
-
boxInfos: Array<ArgumentBoxInfo>
|
|
96
|
-
}
|
|
97
|
-
|
|
98
55
|
export interface HasObjectInFrontOptions {
|
|
99
56
|
view?: boolean
|
|
100
57
|
lines: Array<ArgumentLine2>
|
|
@@ -106,15 +63,6 @@ export interface HasQquareBehindOptions {
|
|
|
106
63
|
lines: Array<ArgumentLine>
|
|
107
64
|
}
|
|
108
65
|
|
|
109
|
-
export interface HasQquareBehindOptions {
|
|
110
|
-
view?: boolean
|
|
111
|
-
lines: Array<ArgumentLine>
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface Index {
|
|
115
|
-
index: number
|
|
116
|
-
}
|
|
117
|
-
|
|
118
66
|
export interface Index {
|
|
119
67
|
index: number
|
|
120
68
|
}
|
|
@@ -129,11 +77,6 @@ export interface Line {
|
|
|
129
77
|
end: Vector3F64
|
|
130
78
|
}
|
|
131
79
|
|
|
132
|
-
export interface Line {
|
|
133
|
-
start: Vector3F64
|
|
134
|
-
end: Vector3F64
|
|
135
|
-
}
|
|
136
|
-
|
|
137
80
|
export interface LineData {
|
|
138
81
|
start: Vector3F64
|
|
139
82
|
end: Vector3F64
|
|
@@ -148,12 +91,6 @@ export interface ModelPreviewResults {
|
|
|
148
91
|
height: number
|
|
149
92
|
}
|
|
150
93
|
|
|
151
|
-
export interface ModelPreviewResults {
|
|
152
|
-
data: Array<number>
|
|
153
|
-
width: number
|
|
154
|
-
height: number
|
|
155
|
-
}
|
|
156
|
-
|
|
157
94
|
export interface Parameter {
|
|
158
95
|
view?: boolean
|
|
159
96
|
width: number
|
|
@@ -162,22 +99,6 @@ export interface Parameter {
|
|
|
162
99
|
outUrl?: string
|
|
163
100
|
}
|
|
164
101
|
|
|
165
|
-
export interface Parameter {
|
|
166
|
-
view?: boolean
|
|
167
|
-
width: number
|
|
168
|
-
height: number
|
|
169
|
-
url: string
|
|
170
|
-
outUrl?: string
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface PcBackfaceTestOptions {
|
|
174
|
-
view?: boolean
|
|
175
|
-
pcdDir: string
|
|
176
|
-
lines: LineDataList
|
|
177
|
-
trajectorys: Record<string, Trajectory>
|
|
178
|
-
distProjection: boolean
|
|
179
|
-
}
|
|
180
|
-
|
|
181
102
|
export interface PcBackfaceTestOptions {
|
|
182
103
|
view?: boolean
|
|
183
104
|
pcdDir: string
|
|
@@ -191,17 +112,6 @@ export interface Quads {
|
|
|
191
112
|
allCenterPoints: Array<Vector3F64>
|
|
192
113
|
}
|
|
193
114
|
|
|
194
|
-
export interface Quads {
|
|
195
|
-
originalVertices: Array<Array<Vector3F64>>
|
|
196
|
-
allCenterPoints: Array<Vector3F64>
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export interface Results {
|
|
200
|
-
results: Array<Array<Array<number>>>
|
|
201
|
-
positions: Array<Vector3F64>
|
|
202
|
-
objIds: Array<Array<string>>
|
|
203
|
-
}
|
|
204
|
-
|
|
205
115
|
export interface Results {
|
|
206
116
|
results: Array<Array<Array<number>>>
|
|
207
117
|
positions: Array<Vector3F64>
|
|
@@ -236,34 +146,6 @@ export interface SamplePointsByImageOption {
|
|
|
236
146
|
edgeCorrosionSize?: number
|
|
237
147
|
}
|
|
238
148
|
|
|
239
|
-
export interface SamplePointsByImageOption {
|
|
240
|
-
view?: boolean
|
|
241
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
242
|
-
pcdPath: string
|
|
243
|
-
/** 是否使用pcd片段 */
|
|
244
|
-
pcdChunk?: boolean
|
|
245
|
-
/** 图片url列表 */
|
|
246
|
-
imageUrls: Array<string>
|
|
247
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
248
|
-
minZ?: number
|
|
249
|
-
/** 当前使用版本 */
|
|
250
|
-
version?: string
|
|
251
|
-
/** 点云蔟过滤 */
|
|
252
|
-
clusterFilter?: boolean
|
|
253
|
-
/** 点云蔟分类距离 */
|
|
254
|
-
distanceThreshold?: number
|
|
255
|
-
/** 深度过滤 */
|
|
256
|
-
depthFilter?: DepthFilter
|
|
257
|
-
/** 过滤类型列表 */
|
|
258
|
-
excludeCategoryList?: Array<string>
|
|
259
|
-
/** 形状使用轮廓 */
|
|
260
|
-
contourMode?: boolean
|
|
261
|
-
/** 边缘腐蚀大小 */
|
|
262
|
-
edgeCorrosionSize?: number
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
266
|
-
|
|
267
149
|
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
268
150
|
|
|
269
151
|
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
package/src/index.js
CHANGED
|
@@ -591,6 +591,5 @@ module.exports.SquareBackfacePointCloudTest = nativeBinding.SquareBackfacePointC
|
|
|
591
591
|
module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
592
592
|
module.exports.modelPreview = nativeBinding.modelPreview
|
|
593
593
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
594
|
-
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
595
594
|
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|
|
596
595
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|