rm-gxf-computing-rusts 0.0.23 → 0.0.25
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 +76 -0
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
package/src/index.d.ts
CHANGED
|
@@ -9,6 +9,19 @@ 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
|
+
export interface CheckResult {
|
|
20
|
+
originalVertices: Array<Square>
|
|
21
|
+
allCenterPoints: Array<Point>
|
|
22
|
+
offsets?: Array<number>
|
|
23
|
+
}
|
|
24
|
+
|
|
12
25
|
export interface CheckResult {
|
|
13
26
|
originalVertices: Array<Square>
|
|
14
27
|
allCenterPoints: Array<Point>
|
|
@@ -29,6 +42,20 @@ export interface Index {
|
|
|
29
42
|
index: number
|
|
30
43
|
}
|
|
31
44
|
|
|
45
|
+
export interface Index {
|
|
46
|
+
index: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface Line {
|
|
50
|
+
start: Vector3F64
|
|
51
|
+
end: Vector3F64
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface Line {
|
|
55
|
+
start: Vector3F64
|
|
56
|
+
end: Vector3F64
|
|
57
|
+
}
|
|
58
|
+
|
|
32
59
|
export interface Line {
|
|
33
60
|
start: Vector3F64
|
|
34
61
|
end: Vector3F64
|
|
@@ -45,6 +72,20 @@ export interface LineData {
|
|
|
45
72
|
checkResults: Array<CheckResult>
|
|
46
73
|
}
|
|
47
74
|
|
|
75
|
+
export interface LineData {
|
|
76
|
+
start: Vector3F64
|
|
77
|
+
end: Vector3F64
|
|
78
|
+
checkResults: Array<CheckResult>
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface ParseLineResult {
|
|
82
|
+
start?: Vector3F64
|
|
83
|
+
end?: Vector3F64
|
|
84
|
+
missingCheckResults: Array<Quads>
|
|
85
|
+
existSegments: Array<Quads>
|
|
86
|
+
intersectionSegments: Array<Array<Index>>
|
|
87
|
+
}
|
|
88
|
+
|
|
48
89
|
export interface ParseLineResult {
|
|
49
90
|
start?: Vector3F64
|
|
50
91
|
end?: Vector3F64
|
|
@@ -61,6 +102,14 @@ export interface PcBackfaceTestOptions {
|
|
|
61
102
|
distProjection: boolean
|
|
62
103
|
}
|
|
63
104
|
|
|
105
|
+
export interface PcBackfaceTestOptions {
|
|
106
|
+
view?: boolean
|
|
107
|
+
pcdDir: string
|
|
108
|
+
lines: LineDataList
|
|
109
|
+
trajectorys: Record<string, Trajectory>
|
|
110
|
+
distProjection: boolean
|
|
111
|
+
}
|
|
112
|
+
|
|
64
113
|
export interface PcObjectEcognizerOption {
|
|
65
114
|
view?: boolean
|
|
66
115
|
pcdUrl: string
|
|
@@ -84,6 +133,11 @@ export interface Quads {
|
|
|
84
133
|
allCenterPoints: Array<Vector3F64>
|
|
85
134
|
}
|
|
86
135
|
|
|
136
|
+
export interface Quads {
|
|
137
|
+
originalVertices: Array<Array<Vector3F64>>
|
|
138
|
+
allCenterPoints: Array<Vector3F64>
|
|
139
|
+
}
|
|
140
|
+
|
|
87
141
|
export interface Results {
|
|
88
142
|
results: Array<Array<Array<number>>>
|
|
89
143
|
positions: Array<Vector3F64>
|
|
@@ -151,6 +205,11 @@ export interface SquareBackfaceTestOptions {
|
|
|
151
205
|
lines: Array<ParseLineResult>
|
|
152
206
|
}
|
|
153
207
|
|
|
208
|
+
export interface SquareBackfaceTestOptions {
|
|
209
|
+
view?: boolean
|
|
210
|
+
lines: Array<ParseLineResult>
|
|
211
|
+
}
|
|
212
|
+
|
|
154
213
|
export interface Trajectory {
|
|
155
214
|
x: number
|
|
156
215
|
y: number
|
|
@@ -161,6 +220,23 @@ export interface Trajectory {
|
|
|
161
220
|
qw: number
|
|
162
221
|
}
|
|
163
222
|
|
|
223
|
+
export interface Trajectory {
|
|
224
|
+
x: number
|
|
225
|
+
y: number
|
|
226
|
+
z: number
|
|
227
|
+
qx: number
|
|
228
|
+
qy: number
|
|
229
|
+
qz: number
|
|
230
|
+
qw: number
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/** 三维向量,包含 x、y、z 分量 */
|
|
234
|
+
export interface Vector3F64 {
|
|
235
|
+
x: number
|
|
236
|
+
y: number
|
|
237
|
+
z: number
|
|
238
|
+
}
|
|
239
|
+
|
|
164
240
|
/** 三维向量,包含 x、y、z 分量 */
|
|
165
241
|
export interface Vector3F64 {
|
|
166
242
|
x: number
|