pipe.c File Reference
#include "common.h"
#include <math.h>
#include "bio.h"
#include "vmath.h"
#include "bn.h"
#include "rtgeom.h"
#include "raytrace.h"
#include "wdb.h"
Include dependency graph for pipe.c:

Go to the source code of this file.


int mk_particle (struct rt_wdb *fp, const char *name, fastf_t *vertex, fastf_t *height, double vradius, double hradius)
int mk_pipe (struct rt_wdb *fp, const char *name, struct bu_list *headp)
void mk_pipe_free (struct bu_list *headp)
void mk_add_pipe_pt (struct bu_list *headp, const point_t coord, double od, double id, double bendradius)
void mk_pipe_init (struct bu_list *headp)

Detailed Description

Support for particles and pipes. Library for writing geometry databases from arbitrary procedures.

Note that routines which are passed point_t or vect_t or mat_t parameters (which are call-by-address) must be VERY careful to leave those parameters unmodified (e.g., by scaling), so that the calling routine is not surprised.

Return codes of 0 are OK, -1 signal an error.

Definition in file pipe.c.

Function Documentation

int mk_particle ( struct rt_wdb fp,
const char *  name,
fastf_t vertex,
fastf_t height,
double  vradius,
double  hradius 

Definition at line 49 of file pipe.c.

References BU_ALLOC, ID_PARTICLE, mk_conv2mm, RT_PART_INTERNAL_MAGIC, and wdb_export().

Here is the call graph for this function: