#ifndef Pyramid_H #define Pyramid_H /* Last edited on 2007-02-02 20:53:48 by stolfi */ /* Pocedures to build {n}-sided pyramid polyhedra. */ #define Pyramid_H_copyright \ "Copyright © 2000 Universidade Estadual de Campinas (UNICAMP)" #include #include #include #include Place_vec_t MakePyramid(uint n); /* Builds a pyramid with base as a n-gon wall, without cell information. */ Place_t BuildSimpleBipyr(uint n, bool_t open); /* Builds a bipyramid. */ Place_t BuildElongatedBipyr(uint n); /* Builds an elongated bipyramid. The icosahedron is obtained with n==5. */ void FixCoordsBipyramid(Place_t p, uint order, bool_t pyramid, ElemTableRec_t *top, Coords_t *c); /* Used by {MakeBipyramid.c}. If {pyramid} is true, the bottom apex is coplanar with the rim vertices at {Z=0}, so the base is flat. */ Place_t MakePyram(uint order); /* Like {MakePyramid}, but returns a single place. */ #define Pyramid_H_author \ "C interface created by J. Stolfi, jan/2007." #endif