Feature Result Structure
Defines the result data set of FindSurface.
Syntax
typedef struct {
FS_FEATURE_TYPE type;
float rms;
union {
struct {
float ll[3];
float lr[3];
float ur[3];
float ul[3];
} plane_param;
struct {
float c[3];
float r;
} sphere_param;
struct {
float b[3];
float t[3];
float r;
} cylinder_param;
struct {
float b[3];
float t[3];
float br;
float tr;
} cone_param;
struct {
float c[3];
float n[3];
float mr;
float tr;
} torus_param;
struct {
float o[3];
float x[3];
float y[3];
float z[3];
} box_param;
};
} FS_FEATURE_RESULT;
Members
type
- Specifies the feature type that FindSurface has found. One of FS_FEATURE_TYPE enmeration value be assigned except FS_TYPE_ANY.
rms
- Resultant RMS fit error of the inliers.
plane_param
-
Item |
Description |
ll |
The coordinates of lower left corner |
lr |
The coordinates of lower right corner |
ur |
The coordinates of upper right corner |
ul |
The coordinates of upper left corner |
sphere_param
-
Item |
Description |
c |
The coordinates of center |
r |
The radius |
cylinder_param
-
Item |
Description |
b |
The coordinates of center of bottom circle |
t |
The coordinates of center of top circle |
r |
The radius |
cone_param
-
Item |
Description |
b |
The coordinates of center of bottom circle |
t |
The coordinates of center of top circle |
br |
The radius of bottom (larger) circle |
tr |
The radius of top (smaller) circle |
torus_param
-
Item |
Description |
c |
The coordinates of center |
n |
The axis (normal vector) |
mr |
The mean radius |
tr |
The tube (circle) radius |
box_param
-
Item |
Description |
o |
The coordinates of origin (The closest point from sensor) |
x |
The coordinates of x-corner |
y |
The coordinates of y-corner |
z |
The coordinates of z-corner |
Notes
This structure is used by findSurface function.
See also
findSurface