bot.h

Go to the documentation of this file.
00001 /*                           B O T . H
00002  * BRL-CAD
00003  *
00004  * Copyright (c) 2001-2006 United States Government as represented by
00005  * the U.S. Army Research Laboratory.
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License
00009  * as published by the Free Software Foundation; either version 2 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this file; see the file named COPYING for more
00019  * information.
00020  */
00021 
00022 /** \addtogroup g_ */
00023 /*@{*/
00024 /** @file bot.h
00025  *  Header file for the "bot" specific structure.  This is shared between
00026  *  the bot, and ars at the moment.
00027  *
00028  */
00029 /*@}*/
00030 
00031 
00032 struct bot_specific {
00033     unsigned char bot_mode;
00034     unsigned char bot_orientation;
00035     unsigned char bot_flags;
00036     int bot_ntri;
00037     fastf_t *bot_thickness;
00038     struct bu_bitv *bot_facemode;
00039     genptr_t bot_facelist;      /* head of linked list */
00040     genptr_t *bot_facearray;    /* head of face array */
00041     unsigned int bot_tri_per_piece;     /* log # tri per peice. 1 << bot_ltpp is tri per piece */
00042 
00043 };
00044 
00045 RT_EXPORT BU_EXTERN(void rt_bot_prep_pieces,
00046                     (struct bot_specific        *bot,
00047                      struct soltab              *stp,
00048                      int                        ntri,
00049                      const struct bn_tol        *tol));
00050 
00051 RT_EXPORT BU_EXTERN(int rt_botface,
00052                     (struct soltab              *stp,
00053                      struct bot_specific        *bot,
00054                      fastf_t                    *ap,
00055                      fastf_t                    *bp,
00056                      fastf_t                    *cp,
00057                      int                        face_no,
00058                      const struct bn_tol        *tol));
00059 
00060 /*
00061  * Local Variables:
00062  * mode: C
00063  * tab-width: 8
00064  * c-basic-offset: 4
00065  * indent-tabs-mode: t
00066  * End:
00067  * ex: shiftwidth=4 tabstop=8
00068  */

Generated on Mon Sep 18 01:24:48 2006 for BRL-CAD by  doxygen 1.4.6