1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#![warn(missing_docs)]
#![warn(unused_extern_crates)]
#![warn(unused_qualifications)]
use kiss3d::resource::GPUVec;
use na::Point3;
use nalgebra as na;
#[derive(Debug)]
pub struct BBox2D {
xmin: Point3<f32>,
}
#[derive(Debug)]
pub struct BBox3D {
xmin: Point3<f32>,
}
#[derive(Debug, Clone, Default)]
pub struct PointCloud {
pub data: Vec<Point3<f32>>,
}
impl PointCloud {
pub fn new() -> Self {
Self { data: vec![] }
}
pub fn append(&mut self, other: &mut Vec<Point3<f32>>) {
self.data.append(other);
}
pub fn push(&mut self, point: Point3<f32>) {
self.data.push(point);
}
}
pub type PointCloudGPU = GPUVec<Point3<f32>>;
#[macro_use]
pub mod viewer;
pub mod annotation;
pub mod pclparser;
pub mod renderer;