importFg4Section.c File Reference

#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <strings.h>
#include <ctype.h>
#include <errno.h>
#include "machine.h"
#include "db.h"
#include "vmath.h"
#include "nmg.h"
#include "rtgeom.h"
#include "raytrace.h"
#include "wdb.h"
#include "plot3.h"
#include "../librt/debug.h"

Include dependency graph for importFg4Section.c:

Go to the source code of this file.

Defines

#define PLATE_MODE   1
#define VOLUME_MODE   2
#define POS_CENTER   1
#define POS_FRONT   2
#define END_OPEN   1
#define END_CLOSED   2
#define GRID_BLOCK   256
#define CLINE   'l'
#define CHEX1   'p'
#define CHEX2   'b'
#define CTRI   't'
#define CQUAD   'q'
#define CCONE1   'c'
#define CCONE2   'd'
#define CCONE3   'e'
#define CSPHERE   's'
#define NMG   'n'
#define BOT   't'
#define COMPSPLT   'h'
#define FIND_NEWLINE(_cp, _eosFlag)

Functions

void do_grid (char *line)
void do_tri (char *line)
void do_quad (char *line)
void make_bot_object (char *name, struct rt_wdb *wdbp)
void Add_bot_face (int pt1, int pt2, int pt3, fastf_t thick, int pos)
RT_EXPORT int wdb_importFg4Section_cmd (struct rt_wdb *wdbp, Tcl_Interp *interp, int argc, char **argv)

Variables

point_tgrid_pts


Detailed Description

Some of this code was taken from conv/fast4-g.c and libwdb/bot.c and modified to behave as a method of the BRL-CAD database object that imports a Fastgen4 section from a string. This section can only contain GRIDs, CTRIs and CQUADs.

Author of fast4-g.c - John R. Anderson

Source - The U. S. Army Research Laboratory Aberdeen Proving Ground, Maryland 21005-5068 USA

Distribution Notice - Re-distribution of this software is restricted, as described in your "Statement of Terms and Conditions for the Release of The BRL-CAD Pacakge" agreement.

Copyright Notice - This software is Copyright (c) 1994-2006 by the United States Army in all countries except the USA. All rights reserved.

Definition in file importFg4Section.c.


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