Feature Result Structure

Defines the result data set of FindSurface.

Syntax

typedef struct {
    FS_FEATURE_TYPE type;
    float rms;

    union {
        struct {
            float ll[3]; /* lower left corner */
            float lr[3]; /* lower right corner */
            float ur[3]; /* upper right corner */
            float ul[3]; /* upper left corner */
        } plane_param;

        struct {
            float c[3]; /* center */
            float r;    /* radius of the sphere */
        } sphere_param;

        struct {
            float b[3]; /* center of bottom circle */
            float t[3]; /* center of top circle */
            float r;    /* radius of the cylinder */
        } cylinder_param;

        struct {
            float b[3]; /* center of bottom circle */
            float t[3]; /* center of top circle */
            float br;   /* bottom (larger) radius */
            float tr;   /* top (smaller) radius of the cone */
        } cone_param;

        struct {
            float c[3]; /* center */
            float n[3]; /* axis (normal vector) */
            float mr;   /* mean radius */
            float tr;   /* tube (circle) radius of the torus */
        } torus_param;

        /* reserved */
        struct {
            float o[3]; /* box origin */
            float x[3]; /* box x-corner */
            float y[3]; /* box y-corner */
            float z[3]; /* box z-corner */
        } box_param;
    };
} FS_FEATURE_RESULT;

Members

type

rms

plane_param

sphere_param

cylinder_param

cone_param

torus_param

box_param

Notes

This structure is used by findSurface function.

See also

findSurface