F3l Features
Data Features.
Bounding
- AABB
- OBB
let obb = OBBcompute;
// Get OBB 8 corners
let p0 = obb.center
- obb.primary * obb.length
- obb.secondary * obb.length
- obb.tertiary * obb.length;
let p1 = p0 + obb.primary * obb.length * 2.;
let p2 = p0 + obb.secondary * obb.length * 2.;
let p3 = p0 + obb.tertiary * obb.length * 2.;
let p4 = p2 + obb.primary * obb.length * 2.;
let p5 = p1 + obb.tertiary * obb.length * 2.;
let p6 = p2 + obb.tertiary * obb.length * 2.;
let p7 = p4 + obb.tertiary * obb.length * 2.;
Normal Estimate
- For each point search neighbors.
- Compute eigenvector of neighbors.
- The smallest eigenvalue one is which normal.
Normal Search Method [KDTree]
// Radius
let mut estimator = new;
// KNN
let mut estimator = new;
// Compute!
if !estimator.compute
let normals = estimator.normals;