rm-gxf-computing-rusts 0.0.51 → 0.0.52
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 +38 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export declare class SquareBackfacePointCloudTest {
|
|
4
|
+
constructor(option: PcBackfaceTestOptions)
|
|
5
|
+
push(data: LineData): void
|
|
6
|
+
compute(): Array<number>
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare class SquareHasObjectInFront {
|
|
10
|
+
constructor(option: HasObjectInFrontOptions)
|
|
11
|
+
push(data: ArgumentLine2): void
|
|
12
|
+
compute(): Array<number>
|
|
13
|
+
}
|
|
14
|
+
|
|
3
15
|
export interface ArgumentBox3 {
|
|
4
16
|
min: Vector3F64
|
|
5
17
|
max: Vector3F64
|
|
@@ -26,6 +38,8 @@ export interface ArgumentLine2 {
|
|
|
26
38
|
existSegments: Array<Quads>
|
|
27
39
|
}
|
|
28
40
|
|
|
41
|
+
export declare function checkLineSideVisibility(option: CheckLineSideVisibilityOption): Array<number>
|
|
42
|
+
|
|
29
43
|
export interface CheckLineSideVisibilityOption {
|
|
30
44
|
view?: boolean
|
|
31
45
|
pcdDir: string
|
|
@@ -99,12 +113,18 @@ export interface LineData {
|
|
|
99
113
|
checkResults: Array<CheckResult>
|
|
100
114
|
}
|
|
101
115
|
|
|
116
|
+
/** 模型 缩略图 */
|
|
117
|
+
export declare function modelPreview(option: Parameter): ModelPreviewResults
|
|
118
|
+
|
|
102
119
|
export interface ModelPreviewResults {
|
|
103
120
|
data: Array<number>
|
|
104
121
|
width: number
|
|
105
122
|
height: number
|
|
106
123
|
}
|
|
107
124
|
|
|
125
|
+
/** 着色全景 */
|
|
126
|
+
export declare function panorama(option: PanoramaOption): PanoramaResults
|
|
127
|
+
|
|
108
128
|
export interface PanoramaOption {
|
|
109
129
|
view?: boolean
|
|
110
130
|
baseUrl: string
|
|
@@ -138,6 +158,9 @@ export interface PcVisibleDirectOption {
|
|
|
138
158
|
trajectorys: Record<string, Vector3F64>
|
|
139
159
|
}
|
|
140
160
|
|
|
161
|
+
/** 点云可见方向检测 */
|
|
162
|
+
export declare function pointCloudVisibleDirection(option: PcVisibleDirectOption): Array<number>
|
|
163
|
+
|
|
141
164
|
export interface Quads {
|
|
142
165
|
originalVertices: Array<Array<Vector3F64>>
|
|
143
166
|
allCenterPoints: Array<Vector3F64>
|
|
@@ -149,6 +172,9 @@ export interface Results {
|
|
|
149
172
|
objIds: Array<Array<string>>
|
|
150
173
|
}
|
|
151
174
|
|
|
175
|
+
/** 通过图片对点云投影采样 */
|
|
176
|
+
export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
|
|
177
|
+
|
|
152
178
|
export interface SamplePointsByImageOption {
|
|
153
179
|
view?: boolean
|
|
154
180
|
/** pcd url,pcd_chunk为true时,该值为目录 */
|
|
@@ -175,6 +201,18 @@ export interface SamplePointsByImageOption {
|
|
|
175
201
|
edgeCorrosionSize?: number
|
|
176
202
|
}
|
|
177
203
|
|
|
204
|
+
/** 检测小方块背面是否有点云 */
|
|
205
|
+
export declare function squareBackfacePointCloudTest(option: PcBackfaceTestOptions): Array<number>
|
|
206
|
+
|
|
207
|
+
/** 检测 小方块 前面是否有 box 且没有其他小方块 */
|
|
208
|
+
export declare function squareHasObjectInFront(option: HasObjectInFrontOptions): Array<number>
|
|
209
|
+
|
|
210
|
+
/** 检测 小方块 是否被 其他小方块遮挡 */
|
|
211
|
+
export declare function squareHasSquareBehind(option: HasQquareBehindOptions): Array<number>
|
|
212
|
+
|
|
213
|
+
/** 着色全景 */
|
|
214
|
+
export declare function test(): void
|
|
215
|
+
|
|
178
216
|
export interface Trajectory {
|
|
179
217
|
x: number
|
|
180
218
|
y: number
|
package/src/index.js
CHANGED
|
@@ -597,3 +597,4 @@ module.exports.samplePointsByImage = nativeBinding.samplePointsByImage
|
|
|
597
597
|
module.exports.squareBackfacePointCloudTest = nativeBinding.squareBackfacePointCloudTest
|
|
598
598
|
module.exports.squareHasObjectInFront = nativeBinding.squareHasObjectInFront
|
|
599
599
|
module.exports.squareHasSquareBehind = nativeBinding.squareHasSquareBehind
|
|
600
|
+
module.exports.test = nativeBinding.test
|