/****************************************************************************\ Copyright 1995 The University of North Carolina at Chapel Hill. All Rights Reserved. Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies. IN NO EVENT SHALL THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF NORTH CAROLINA HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies. THE UNIVERSITY OF NORTH CAROLINA SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF NORTH CAROLINA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. The authors may be contacted via: US Mail: Jonathan Cohen Amitabh Varshney Department of Computer Science Department of Computer Science Sitterson Hall, CB #3175 State University of New York University of N. Carolina Stony Brook, NY 11794-4400, USA Chapel Hill, NC 27599-3175 Phone: (919)962-1749 Phone: (516)632-8446 EMail: cohenj@cs.unc.edu varshney@cs.sunysb.edu \****************************************************************************/ /*****************************************************************************\ intersect.h -- Description : Prototypes for various intersection tests ---------------------------------------------------------------------------- $Source: /cvs/RenderPark/SE/Simplify/intersect.h,v $ $Revision: 1.1.1.1 $ $Date: 2000/04/06 15:35:32 $ $Author: philippe $ $Locker: $ \*****************************************************************************/ /* Protection from multiple includes. */ #ifndef INCLUDED_OFFSET_INTERSECT_H #define INCLUDED_OFFSET_INTERSECT_H /*------------------ Includes Needed for Definitions Below ------------------*/ #include #ifdef USE_TRIOCTREE #include #else #include #endif #include /*-------------------------------- Constants --------------------------------*/ #define SURFACE_VS_ITSELF 0 #define SURFACE_VS_OUTER 1 #define SURFACE_VS_INNER 2 /*--------------------------------- Macros ----------------------------------*/ /*---------------------------------- Types ----------------------------------*/ /*---------------------------- Function Prototypes --------------------------*/ void test_self_intersect(Surface *model, Octree *tree, OctreeData *octdata, OctreeData **query_result, double *fuzz_factor); int edge_offsets_intersect(Octree *outer_offset, Octree *inner_offset, OctreeData **query_result, Edge *edge, double fuzz_factor); int tri_offsets_intersect(Triangle *tri, Octree *outer_offset, Octree *inner_offset, OctreeData **query_result, double fuzz_factor); int tri_solution_interference(Hole *hole, Triangle *tri, double fuzz_factor); int tri_model_interference(Triangle *tri, Vertex *vert, Octree *model_octree, OctreeData **query_result, double fuzz_factor); int edge_tubes_intersect(Edge *edge, Octree *tubes, OctreeData **query_result, double fuzz_factor); int index_filtered_tri_tri_intersect(Triangle *tri1, Triangle *tri2, double fuzz_factor, int test_type); int coord_filtered_tri_tri_intersect(Triangle *tri1, Triangle *tri2, double fuzz_factor, int test_type); int coord_filtered_edge_tri_intersect(Edge *edge, Triangle *tri, double fuzz_factor); int unfiltered_edge_tri_intersect(Edge *edge, Triangle *tri, double fuzz_factor); /*---------------------------Globals (externed)------------------------------*/ /* Protection from multiple includes. */ #endif /*INCLUDED_OFFSET_INTERSECT_H*/ /*****************************************************************************\ $Log: intersect.h,v $ Revision 1.1.1.1 2000/04/06 15:35:32 philippe Initial CVS release Revision 1.7 1997/04/10 20:10:46 cohenj Added Amitabh's name to credits Revision 1.6 1996/04/19 03:13:20 cohenj moved some prototypes around. Added prototype for test_self_intersect * Revision 1.5 96/04/18 19:14:58 cohenj * 1. Reorganized the filtered intersection tests. * 2. Added some code for testing trioctree data structure * * Revision 1.4 96/04/08 18:50:12 cohenj * added copyright * * Revision 1.3 95/10/16 16:29:41 cohenj * added tri_model_interference() and edge_tubes_intersect() functions. * * Revision 1.2 95/09/30 06:11:10 cohenj * almost done writing revision 1 -- just need the code to update * the model after a vertex is removed and finalize the model after removing * all vertices in the queue. * * Revision 1.1 95/09/15 16:28:21 cohenj * Initial revision * * Revision 1.1 1995/08/30 20:57:04 cohenj * Initial revision * * Revision 1.1 1995/08/30 20:57:04 cohenj * Initial revision * \*****************************************************************************/