rm-gxf-computing-rusts 0.0.55 → 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 +14 -0
- package/src/index.js +4 -0
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
|
@@ -5,18 +5,21 @@ export declare class LineHelper {
|
|
|
5
5
|
static checkSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
6
6
|
/** 2.0 点云可见方向检测 */
|
|
7
7
|
static visibleDirection(option: PCVisibleDirectOption): Array<number>
|
|
8
|
+
static visibleDirectionAsync(option: PCVisibleDirectOption): Promise<Array<number>>
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export declare class SquareBackfacePointCloudTest {
|
|
11
12
|
constructor(option: PcBackfaceTestOptions)
|
|
12
13
|
push(data: LineData): void
|
|
13
14
|
compute(): Array<number>
|
|
15
|
+
computeAsync(): Promise<Array<number>>
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export declare class SquareHasObjectInFront {
|
|
17
19
|
constructor(option: HasObjectInFrontOptions)
|
|
18
20
|
push(data: ArgumentLine2): void
|
|
19
21
|
compute(): Array<number>
|
|
22
|
+
computeAsync(): Promise<Array<number>>
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
export interface ArgumentBox3 {
|
|
@@ -127,9 +130,14 @@ export interface ModelPreviewResults {
|
|
|
127
130
|
height: number
|
|
128
131
|
}
|
|
129
132
|
|
|
133
|
+
export declare function onProgress(fun?: (((err: Error | null, arg: number) => any)) | undefined | null): void
|
|
134
|
+
|
|
130
135
|
/** 着色全景 */
|
|
131
136
|
export declare function panorama(option: PanoramaOption): PanoramaResults
|
|
132
137
|
|
|
138
|
+
/** 着色全景 */
|
|
139
|
+
export declare function panoramaAsync(option: PanoramaOption): Promise<PanoramaResults>
|
|
140
|
+
|
|
133
141
|
export interface PanoramaOption {
|
|
134
142
|
view?: boolean
|
|
135
143
|
baseUrl: string
|
|
@@ -179,6 +187,9 @@ export interface Results {
|
|
|
179
187
|
/** 通过图片对点云投影采样 */
|
|
180
188
|
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
181
189
|
|
|
190
|
+
/** 通过图片对点云投影采样 */
|
|
191
|
+
export declare function samplePointsByImageAsync(option: SamplePointsByImageOption): Promise<Results>
|
|
192
|
+
|
|
182
193
|
export interface SamplePointsByImageOption {
|
|
183
194
|
view?: boolean
|
|
184
195
|
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
@@ -210,6 +221,9 @@ export declare function setPrintProgress(enabled: boolean): void
|
|
|
210
221
|
/** 检测小方块背面是否有点云 */
|
|
211
222
|
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
212
223
|
|
|
224
|
+
/** 检测小方块背面是否有点云 */
|
|
225
|
+
export declare function squareBackfacePointCloudTestAsync(option: PcBackfaceTestOptions): Promise<Array<number>>
|
|
226
|
+
|
|
213
227
|
/** 检测 小方块 前面是否有 box 且没有其他小方块 */
|
|
214
228
|
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
215
229
|
|
package/src/index.js
CHANGED
|
@@ -591,10 +591,14 @@ module.exports.LineHelper = nativeBinding.LineHelper
|
|
|
591
591
|
module.exports.SquareBackfacePointCloudTest = nativeBinding.SquareBackfacePointCloudTest
|
|
592
592
|
module.exports.SquareHasObjectInFront = nativeBinding.SquareHasObjectInFront
|
|
593
593
|
module.exports.modelPreview = nativeBinding.modelPreview
|
|
594
|
+
module.exports.onProgress = nativeBinding.onProgress
|
|
594
595
|
module.exports.panorama = nativeBinding.panorama
|
|
596
|
+
module.exports.panoramaAsync = nativeBinding.panoramaAsync
|
|
595
597
|
module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
598
|
+
module.exports.samplePointsByImageAsync = nativeBinding.samplePointsByImageAsync
|
|
596
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
|