rm-gxf-computing-rusts 0.0.51 → 0.0.53

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-gxf-computing-rusts",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "",
5
5
  "author": "初秋",
6
6
  "type": "commonjs",
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
package/src/main.js CHANGED
@@ -186,4 +186,4 @@ module.exports.squareHasObjectInFront = gxf.squareHasObjectInFront
186
186
  module.exports.panorama = gxf.panorama
187
187
  module.exports.SquareBackfacePointCloudTest = gxf.SquareBackfacePointCloudTest
188
188
  module.exports.SquareHasObjectInFront = gxf.SquareHasObjectInFront
189
-
189
+ module.exports.test = gxf.test