rm-gxf-computing-rusts 0.0.21 → 0.0.23

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.21",
3
+ "version": "0.0.23",
4
4
  "description": "",
5
5
  "author": "初秋",
6
6
  "type": "commonjs",
Binary file
Binary file
package/src/index.d.ts CHANGED
@@ -9,13 +9,6 @@ export interface CheckLineSideVisibilityOption {
9
9
  trajectorys: Record<string, Vector3F64>
10
10
  }
11
11
 
12
- export interface CheckLineSideVisibilityOption {
13
- view?: boolean
14
- pcdDir: string
15
- lines: Array<Line>
16
- trajectorys: Record<string, Vector3F64>
17
- }
18
-
19
12
  export interface CheckResult {
20
13
  originalVertices: Array<Square>
21
14
  allCenterPoints: Array<Point>
@@ -36,10 +29,6 @@ export interface Index {
36
29
  index: number
37
30
  }
38
31
 
39
- export interface Index {
40
- index: number
41
- }
42
-
43
32
  export interface Line {
44
33
  start: Vector3F64
45
34
  end: Vector3F64
@@ -50,17 +39,6 @@ export interface Line {
50
39
  end: Vector3F64
51
40
  }
52
41
 
53
- export interface Line {
54
- start: Vector3F64
55
- end: Vector3F64
56
- }
57
-
58
- export interface LineData {
59
- start: Vector3F64
60
- end: Vector3F64
61
- checkResults: Array<CheckResult>
62
- }
63
-
64
42
  export interface LineData {
65
43
  start: Vector3F64
66
44
  end: Vector3F64
@@ -75,22 +53,6 @@ export interface ParseLineResult {
75
53
  intersectionSegments: Array<Array<Index>>
76
54
  }
77
55
 
78
- export interface ParseLineResult {
79
- start?: Vector3F64
80
- end?: Vector3F64
81
- missingCheckResults: Array<Quads>
82
- existSegments: Array<Quads>
83
- intersectionSegments: Array<Array<Index>>
84
- }
85
-
86
- export interface PcBackfaceTestOptions {
87
- view?: boolean
88
- pcdDir: string
89
- lines: LineDataList
90
- trajectorys: Record<string, Trajectory>
91
- distProjection: boolean
92
- }
93
-
94
56
  export interface PcBackfaceTestOptions {
95
57
  view?: boolean
96
58
  pcdDir: string
@@ -122,42 +84,61 @@ export interface Quads {
122
84
  allCenterPoints: Array<Vector3F64>
123
85
  }
124
86
 
125
- export interface Quads {
126
- originalVertices: Array<Array<Vector3F64>>
127
- allCenterPoints: Array<Vector3F64>
87
+ export interface Results {
88
+ results: Array<Array<Array<number>>>
89
+ positions: Array<Vector3F64>
90
+ objIds: Array<Array<string>>
128
91
  }
129
92
 
130
- export declare function samplePointsByImage(option: SamplePointsByImageOption): Array<Array<Array<number>>>
93
+ export interface Results {
94
+ results: Array<Array<Array<number>>>
95
+ positions: Array<Vector3F64>
96
+ objIds: Array<Array<string>>
97
+ }
98
+
99
+ export declare function samplePointsByImage(option: SamplePointsByImageOption): Results
131
100
 
132
101
  export interface SamplePointsByImageOption {
133
102
  view?: boolean
103
+ /** pcd url,pcd_chunk为true时,该值为目录 */
134
104
  pcdPath: string
105
+ /** 是否使用pcd片段 */
135
106
  pcdChunk?: boolean
107
+ /** 图片url列表 */
136
108
  imageUrls: Array<string>
137
- groundZ: number
109
+ /** 点云z轴小于该值的过滤掉 */
110
+ minZ?: number
138
111
  /** 当前使用版本 */
139
112
  version?: string
140
113
  /** 点云蔟过滤 */
141
114
  clusterFilter?: boolean
115
+ /** 点云蔟分类距离 */
142
116
  distanceThreshold?: number
143
117
  /** 深度过滤 */
144
118
  depthFilter?: DepthFilter
119
+ /** 过滤类型列表 */
145
120
  excludeCategoryList?: Array<string>
146
121
  }
147
122
 
148
123
  export interface SamplePointsByImageOption {
149
124
  view?: boolean
125
+ /** pcd url,pcd_chunk为true时,该值为目录 */
150
126
  pcdPath: string
127
+ /** 是否使用pcd片段 */
151
128
  pcdChunk?: boolean
129
+ /** 图片url列表 */
152
130
  imageUrls: Array<string>
153
- groundZ: number
131
+ /** 点云z轴小于该值的过滤掉 */
132
+ minZ?: number
154
133
  /** 当前使用版本 */
155
134
  version?: string
156
135
  /** 点云蔟过滤 */
157
136
  clusterFilter?: boolean
137
+ /** 点云蔟分类距离 */
158
138
  distanceThreshold?: number
159
139
  /** 深度过滤 */
160
140
  depthFilter?: DepthFilter
141
+ /** 过滤类型列表 */
161
142
  excludeCategoryList?: Array<string>
162
143
  }
163
144
 
@@ -170,11 +151,6 @@ export interface SquareBackfaceTestOptions {
170
151
  lines: Array<ParseLineResult>
171
152
  }
172
153
 
173
- export interface SquareBackfaceTestOptions {
174
- view?: boolean
175
- lines: Array<ParseLineResult>
176
- }
177
-
178
154
  export interface Trajectory {
179
155
  x: number
180
156
  y: number