g_extrude.c File Reference

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

Include dependency graph for g_extrude.c:

Go to the source code of this file.

Data Structures

struct  extrude_specific
struct  loop_inter

Defines

#define MAX_HITS   64
#define TOP_FACE   1
#define BOTTOM_FACE   2
#define LINE_SEG   3
#define CARC_SEG   4
#define NURB_SEG   5
#define BEZIER_SEG   6
#define UNKNOWN   0
#define A_IN_B   1
#define B_IN_A   2
#define DISJOINT   3
#define LOOPA   1
#define LOOPB   2
#define RT_EXTRUDE_SEG_MISS(SEG)   (SEG).seg_stp=RT_SOLTAB_NULL

Functions

int seg_to_vlist (struct bu_list *vhead, const struct rt_tess_tol *ttol, point_t V, vect_t u_vec, vect_t v_vec, struct rt_sketch_internal *sketch_ip, genptr_t seg)
int rt_extrude_prep (struct soltab *stp, struct rt_db_internal *ip, struct rt_i *rtip)
void rt_extrude_print (register const struct soltab *stp)
int get_quadrant (fastf_t *v, fastf_t *local_x, fastf_t *local_y, fastf_t *vx, fastf_t *vy)
int isect_line2_ellipse (fastf_t *dist, fastf_t *ray_start, fastf_t *ray_dir, fastf_t *center, fastf_t *ra, fastf_t *rb)
int isect_line_earc (fastf_t *dist, fastf_t *ray_start, fastf_t *ray_dir, fastf_t *center, fastf_t *ra, fastf_t *rb, fastf_t *norm, fastf_t *start, fastf_t *end, int orientation)
int rt_extrude_shot (struct soltab *stp, register struct xray *rp, struct application *ap, struct seg *seghead)
void rt_extrude_vshot (struct soltab **stp, struct xray **rp, struct seg *segp, int n, struct application *ap)
void rt_extrude_norm (register struct hit *hitp, struct soltab *stp, register struct xray *rp)
void rt_extrude_curve (register struct curvature *cvp, register struct hit *hitp, struct soltab *stp)
void rt_extrude_uv (struct application *ap, struct soltab *stp, register struct hit *hitp, register struct uvcoord *uvp)
void rt_extrude_free (register struct soltab *stp)
int rt_extrude_class (void)
int rt_extrude_plot (struct bu_list *vhead, struct rt_db_internal *ip, const struct rt_tess_tol *ttol, const struct bn_tol *tol)
void get_indices (genptr_t seg, int *start, int *end)
void get_seg_midpoint (genptr_t seg, struct rt_sketch_internal *skt, point2d_t pt)
void isect_2D_loop_ray (point2d_t pta, point2d_t dir, struct bu_ptbl *loop, struct loop_inter **root, int which_loop, struct rt_sketch_internal *ip, struct bn_tol *tol)
int classify_sketch_loops (struct bu_ptbl *loopa, struct bu_ptbl *loopb, struct rt_sketch_internal *ip)
int rt_extrude_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_extrude_import (struct rt_db_internal *ip, const struct bu_external *ep, register const fastf_t *mat, const struct db_i *dbip, struct resource *resp)
int rt_extrude_export (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip)
int rt_extrude_export5 (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip)
int rt_extrude_import5 (struct rt_db_internal *ip, const struct bu_external *ep, register const mat_t mat, const struct db_i *dbip, struct resource *resp, const int minor_type)
int rt_extrude_describe (struct bu_vls *str, const struct rt_db_internal *ip, int verbose, double mm2local)
void rt_extrude_ifree (struct rt_db_internal *ip)
int rt_extrude_xform (struct rt_db_internal *op, const mat_t mat, struct rt_db_internal *ip, int free, struct db_i *dbip, struct resource *resp)
int rt_extrude_tclform (const struct rt_functab *ftp, Tcl_Interp *interp)
int rt_extrude_tclget (Tcl_Interp *interp, const struct rt_db_internal *intern, const char *attr)
int rt_extrude_tcladjust (Tcl_Interp *interp, struct rt_db_internal *intern, int argc, char **argv)


Detailed Description

Provide support for solids of extrusion.

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

Definition in file g_extrude.c.


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