BRL-CAD
#include "common.h"
#include <stddef.h>
#include <math.h>
#include "bio.h"
#include "bu/cv.h"
#include "vmath.h"
#include "rtgeom.h"
#include "raytrace.h"
#include "nmg.h"
#include "db.h"
#include "../../librt_private.h"
Include dependency graph for grip.c:

Go to the source code of this file.

Data Structures

struct  grip_specific
 

Macros

#define GRIP_NULL   ((struct grip_specific *)0)
 

Functions

int rt_grp_prep (struct soltab *stp, struct rt_db_internal *ip, struct rt_i *rtip)
 
void rt_grp_print (const struct soltab *stp)
 
int rt_grp_shot (struct soltab *stp, struct xray *rp, struct application *ap, struct seg *seghead)
 
void rt_grp_norm (struct hit *hitp, struct soltab *stp, struct xray *rp)
 
void rt_grp_curve (struct curvature *cvp, struct hit *hitp, struct soltab *stp)
 
void rt_grp_uv (struct application *ap, struct soltab *stp, struct hit *hitp, struct uvcoord *uvp)
 
void rt_grp_free (struct soltab *stp)
 
int rt_grp_plot (struct bu_list *vhead, struct rt_db_internal *ip, const struct rt_tess_tol *ttol, const struct bn_tol *tol, const struct rt_view_info *info)
 
int rt_grp_import4 (struct rt_db_internal *ip, const struct bu_external *ep, const fastf_t *mat, const struct db_i *dbip)
 
int rt_grp_export4 (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip)
 
int rt_grp_import5 (struct rt_db_internal *ip, const struct bu_external *ep, const fastf_t *mat, const struct db_i *dbip)
 
int rt_grp_export5 (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip)
 
int rt_grp_describe (struct bu_vls *str, const struct rt_db_internal *ip, int verbose, double mm2local)
 
void rt_grp_ifree (struct rt_db_internal *ip)
 
int rt_grp_tess (struct nmgregion **r, struct model *m, struct rt_db_internal *ip, const struct rt_tess_tol *ttol, const struct bn_tol *tol)
 
int rt_grp_params (struct pc_pc_set *ps, const struct rt_db_internal *ip)
 

Variables

const struct bu_structparse rt_grp_parse []
 

Detailed Description

Intersect a ray with a "grip" and return nothing.

A GRIP is defined by a direction normal, a center and a height/magnitude vector. The center is the control point used for all grip movements.

All Ray intersections return "missed"

The bounding box for a grip is empty.

Intersect a ray with a "joint" and return nothing.

A JOINT is defined by a point location, two vectors and a joint value. The location is the point at which the vectors are constrained. The value is currently the angle between the vectors.

All Ray intersections return "missed"

The bounding box for a grip is empty.

Definition in file grip.c.