home *** CD-ROM | disk | FTP | other *** search
- #ifndef lint
- static char sccsid[] = "@(#)create_monolith.c 1.1 92/05/28 SMI" ;
- /* from create_monolith.c 1.2 88/10/19 SMI */
- #endif
-
- /*
- * Copyright (c) 1986 by Sun Microsystems, Inc.
- */
-
- /*
- * This file generates the graphic description of a monolith
- *
- */
-
-
- #include <stdio.h>
- #include <math.h>
- #include "graphics.h"
- #include "dstar.h"
- #include "object_types.h"
- #include "bsp_object.h"
-
- extern int debug_level ;
-
-
- #include "monolith_bsp.h"
-
-
- /* these routines create a description for a monolith */
-
-
- void
- init_monolith(index)
- int index ;
- {
-
- Object_Desc *desc1 ;
-
- desc1 = (Object_Desc *) malloc(sizeof(Object_Desc)) ;
-
- if(desc1)
- {
- descriptions[index] = desc1 ;
-
- desc1->thresh = 0.0 ;
- desc1->next = NULL ;
- desc1->type = BSP_TREE ;
- desc1->first = (caddr_t) &Nmono6 ;
- }
- else
- {
- perror("init_monolith: malloc:") ;
- exit(1) ;
- }
- }
-