g_eto.c File Reference

#include "common.h"
#include <stddef.h>
#include <stdio.h>
#include <strings.h>
#include <math.h>
#include "machine.h"
#include "vmath.h"
#include "db.h"
#include "nmg.h"
#include "raytrace.h"
#include "rtgeom.h"
#include "./debug.h"

Include dependency graph for g_eto.c:

Go to the source code of this file.

Data Structures

struct  eto_specific

Defines

#define SEG_MISS(SEG)   (SEG).seg_stp=(struct soltab *) 0;
#define ETO_PT(www, lll)   ((((www)%nells)*npts)+((lll)%npts))
#define ETO_PTA(ww, ll)   (&eto_ells[ETO_PT(ww,ll)*3])
#define ETO_NMA(ww, ll)   (norms[ETO_PT(ww,ll)])

Functions

int rt_eto_prep (struct soltab *stp, struct rt_db_internal *ip, struct rt_i *rtip)
void rt_eto_print (register const struct soltab *stp)
int rt_eto_shot (struct soltab *stp, register struct xray *rp, struct application *ap, struct seg *seghead)
void rt_eto_vshot (struct soltab **stp, struct xray **rp, struct seg *segp, int n, struct application *ap)
void rt_eto_norm (register struct hit *hitp, struct soltab *stp, register struct xray *rp)
void rt_eto_curve (register struct curvature *cvp, register struct hit *hitp, struct soltab *stp)
void rt_eto_uv (struct application *ap, struct soltab *stp, register struct hit *hitp, register struct uvcoord *uvp)
void rt_eto_free (struct soltab *stp)
int rt_eto_class (void)
int rt_eto_plot (struct bu_list *vhead, struct rt_db_internal *ip, const struct rt_tess_tol *ttol, const struct bn_tol *tol)
int rt_ell4 (struct rt_pt_node *pts, fastf_t a, fastf_t b, fastf_t dtol, fastf_t ntol)
point_trt_mk_ell (int *n, fastf_t a, fastf_t b, fastf_t dtol, fastf_t ntol)
int rt_eto_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_eto_import (struct rt_db_internal *ip, const struct bu_external *ep, register const fastf_t *mat, const struct db_i *dbip)
int rt_eto_export (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip)
int rt_eto_import5 (struct rt_db_internal *ip, const struct bu_external *ep, register const fastf_t *mat, const struct db_i *dbip)
int rt_eto_export5 (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip)
int rt_eto_describe (struct bu_vls *str, const struct rt_db_internal *ip, int verbose, double mm2local)
void rt_eto_ifree (struct rt_db_internal *ip)

Variables

const struct bu_structparse rt_eto_parse []


Detailed Description

Intersect a ray with an Elliptical Torus.

Authors - Michael Markowski (Programming) ERIM GIFT code (ETO Eqn)

Source - SECAD/VLD Computing Consortium, Bldg 394 The U. S. Army Ballistic Research Laboratory Aberdeen Proving Ground, Maryland 21005

Definition in file g_eto.c.


Define Documentation

#define ETO_PT www,
lll   )     ((((www)%nells)*npts)+((lll)%npts))
 

#define ETO_PTA ww,
ll   )     (&eto_ells[ETO_PT(ww,ll)*3])
 

Referenced by rt_eto_plot(), and rt_eto_tess().

#define ETO_NMA ww,
ll   )     (norms[ETO_PT(ww,ll)])
 

Referenced by rt_eto_tess().


Generated on Mon Sep 18 01:25:05 2006 for BRL-CAD by  doxygen 1.4.6