rm-gxf-computing-rusts 0.0.32 → 0.0.34
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 +90 -76
- package/src/index.js +2 -0
- package/src/main.js +13 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export interface ArgumentBox3 {
|
|
4
|
+
min: Vector3F64
|
|
5
|
+
max: Vector3F64
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ArgumentBox3 {
|
|
9
|
+
min: Vector3F64
|
|
10
|
+
max: Vector3F64
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ArgumentBoxInfo {
|
|
14
|
+
box3: ArgumentBox3
|
|
15
|
+
positionArr: Array<Vector3F64>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ArgumentBoxInfo {
|
|
19
|
+
box3: ArgumentBox3
|
|
20
|
+
positionArr: Array<Vector3F64>
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ArgumentLine {
|
|
24
|
+
start?: Vector3F64
|
|
25
|
+
end?: Vector3F64
|
|
26
|
+
missingCheckResults: Array<Quads>
|
|
27
|
+
existSegments: Array<Quads>
|
|
28
|
+
intersectionSegments?: Array<Array<Index>>
|
|
29
|
+
objPositionArr?: Array<Array<number>>
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ArgumentLine {
|
|
33
|
+
start?: Vector3F64
|
|
34
|
+
end?: Vector3F64
|
|
35
|
+
missingCheckResults: Array<Quads>
|
|
36
|
+
existSegments: Array<Quads>
|
|
37
|
+
intersectionSegments?: Array<Array<Index>>
|
|
38
|
+
objPositionArr?: Array<Array<number>>
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ArgumentLine2 {
|
|
42
|
+
start?: Vector3F64
|
|
43
|
+
end?: Vector3F64
|
|
44
|
+
checkResults: Array<Quads>
|
|
45
|
+
existSegments: Array<Quads>
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface ArgumentLine2 {
|
|
49
|
+
start?: Vector3F64
|
|
50
|
+
end?: Vector3F64
|
|
51
|
+
checkResults: Array<Quads>
|
|
52
|
+
existSegments: Array<Quads>
|
|
53
|
+
}
|
|
54
|
+
|
|
3
55
|
export declare function checkLineSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
4
56
|
|
|
5
57
|
export interface CheckLineSideVisibilityOption {
|
|
@@ -38,24 +90,26 @@ export interface DepthFilter {
|
|
|
38
90
|
depthThreshold: number
|
|
39
91
|
}
|
|
40
92
|
|
|
41
|
-
export interface
|
|
42
|
-
|
|
43
|
-
|
|
93
|
+
export interface HasObjectInFrontOptions {
|
|
94
|
+
view?: boolean
|
|
95
|
+
lines: Array<ArgumentLine2>
|
|
96
|
+
boxInfos: Array<ArgumentBoxInfo>
|
|
44
97
|
}
|
|
45
98
|
|
|
46
|
-
export interface
|
|
47
|
-
|
|
48
|
-
|
|
99
|
+
export interface HasObjectInFrontOptions {
|
|
100
|
+
view?: boolean
|
|
101
|
+
lines: Array<ArgumentLine2>
|
|
102
|
+
boxInfos: Array<ArgumentBoxInfo>
|
|
49
103
|
}
|
|
50
104
|
|
|
51
105
|
export interface HasQquareBehindOptions {
|
|
52
106
|
view?: boolean
|
|
53
|
-
lines: Array<
|
|
107
|
+
lines: Array<ArgumentLine>
|
|
54
108
|
}
|
|
55
109
|
|
|
56
110
|
export interface HasQquareBehindOptions {
|
|
57
111
|
view?: boolean
|
|
58
|
-
lines: Array<
|
|
112
|
+
lines: Array<ArgumentLine>
|
|
59
113
|
}
|
|
60
114
|
|
|
61
115
|
export interface Index {
|
|
@@ -98,20 +152,34 @@ export interface LineData {
|
|
|
98
152
|
checkResults: Array<CheckResult>
|
|
99
153
|
}
|
|
100
154
|
|
|
101
|
-
export
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
155
|
+
export declare function modelPreview(option: Parameter): ModelPreviewResults
|
|
156
|
+
|
|
157
|
+
export interface ModelPreviewResults {
|
|
158
|
+
data: Array<number>
|
|
159
|
+
width: number
|
|
160
|
+
height: number
|
|
107
161
|
}
|
|
108
162
|
|
|
109
|
-
export interface
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
163
|
+
export interface ModelPreviewResults {
|
|
164
|
+
data: Array<number>
|
|
165
|
+
width: number
|
|
166
|
+
height: number
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface Parameter {
|
|
170
|
+
view?: boolean
|
|
171
|
+
width: number
|
|
172
|
+
height: number
|
|
173
|
+
url: string
|
|
174
|
+
outUrl?: string
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface Parameter {
|
|
178
|
+
view?: boolean
|
|
179
|
+
width: number
|
|
180
|
+
height: number
|
|
181
|
+
url: string
|
|
182
|
+
outUrl?: string
|
|
115
183
|
}
|
|
116
184
|
|
|
117
185
|
export interface PcBackfaceTestOptions {
|
|
@@ -152,64 +220,8 @@ export interface Results {
|
|
|
152
220
|
objIds: Array<Array<string>>
|
|
153
221
|
}
|
|
154
222
|
|
|
155
|
-
export interface Results {
|
|
156
|
-
results: Array<Array<Array<number>>>
|
|
157
|
-
positions: Array<Vector3F64>
|
|
158
|
-
objIds: Array<Array<string>>
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface Results {
|
|
162
|
-
results: Array<Array<Array<number>>>
|
|
163
|
-
positions: Array<Vector3F64>
|
|
164
|
-
objIds: Array<Array<string>>
|
|
165
|
-
}
|
|
166
|
-
|
|
167
223
|
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
168
224
|
|
|
169
|
-
export interface SamplePointsByImageOption {
|
|
170
|
-
view?: boolean
|
|
171
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
172
|
-
pcdPath: string
|
|
173
|
-
/** 是否使用pcd片段 */
|
|
174
|
-
pcdChunk?: boolean
|
|
175
|
-
/** 图片url列表 */
|
|
176
|
-
imageUrls: Array<string>
|
|
177
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
178
|
-
minZ?: number
|
|
179
|
-
/** 当前使用版本 */
|
|
180
|
-
version?: string
|
|
181
|
-
/** 点云蔟过滤 */
|
|
182
|
-
clusterFilter?: boolean
|
|
183
|
-
/** 点云蔟分类距离 */
|
|
184
|
-
distanceThreshold?: number
|
|
185
|
-
/** 深度过滤 */
|
|
186
|
-
depthFilter?: DepthFilter
|
|
187
|
-
/** 过滤类型列表 */
|
|
188
|
-
excludeCategoryList?: Array<string>
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface SamplePointsByImageOption {
|
|
192
|
-
view?: boolean
|
|
193
|
-
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
194
|
-
pcdPath: string
|
|
195
|
-
/** 是否使用pcd片段 */
|
|
196
|
-
pcdChunk?: boolean
|
|
197
|
-
/** 图片url列表 */
|
|
198
|
-
imageUrls: Array<string>
|
|
199
|
-
/** 点云z轴小于该值的过滤掉 */
|
|
200
|
-
minZ?: number
|
|
201
|
-
/** 当前使用版本 */
|
|
202
|
-
version?: string
|
|
203
|
-
/** 点云蔟过滤 */
|
|
204
|
-
clusterFilter?: boolean
|
|
205
|
-
/** 点云蔟分类距离 */
|
|
206
|
-
distanceThreshold?: number
|
|
207
|
-
/** 深度过滤 */
|
|
208
|
-
depthFilter?: DepthFilter
|
|
209
|
-
/** 过滤类型列表 */
|
|
210
|
-
excludeCategoryList?: Array<string>
|
|
211
|
-
}
|
|
212
|
-
|
|
213
225
|
export interface SamplePointsByImageOption {
|
|
214
226
|
view?: boolean
|
|
215
227
|
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
@@ -264,6 +276,8 @@ export interface SamplePointsByImageOption {
|
|
|
264
276
|
|
|
265
277
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
266
278
|
|
|
279
|
+
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
280
|
+
|
|
267
281
|
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
268
282
|
|
|
269
283
|
export interface Trajectory {
|
package/src/index.js
CHANGED
|
@@ -588,6 +588,8 @@ if (!nativeBinding) {
|
|
|
588
588
|
|
|
589
589
|
module.exports = nativeBinding
|
|
590
590
|
module.exports.checkLineSideVisibility = nativeBinding.checkLineSideVisibility
|
|
591
|
+
module.exports.modelPreview = nativeBinding.modelPreview
|
|
591
592
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
592
593
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
594
|
+
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|
|
593
595
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|
package/src/main.js
CHANGED
|
@@ -169,7 +169,20 @@ function samplePointsByImage(params) {
|
|
|
169
169
|
return gxf.samplePointsByImage(params)
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @param {import("./index").ModelPreviewResults} params
|
|
175
|
+
* @returns
|
|
176
|
+
*/
|
|
177
|
+
function modelPreview(params) {
|
|
178
|
+
return gxf.modelPreview(params)
|
|
179
|
+
}
|
|
180
|
+
|
|
172
181
|
module.exports.checkLineSideVisibility = checkLineSideVisibility
|
|
173
182
|
module.exports.squareBackfacePointCloudTest = squareBackfacePointCloudTest
|
|
174
183
|
module.exports.squareHasSquareBehind = squareHasSquareBehind
|
|
175
184
|
module.exports.samplePointsByImage = samplePointsByImage
|
|
185
|
+
module.exports.modelPreview = modelPreview
|
|
186
|
+
module.exports.squareHasObjectInFront = gxf.squareHasObjectInFront
|
|
187
|
+
|
|
188
|
+
|