#ifndef JSTri_H #define JSTri_H /* Last edited on 2007-01-25 03:14:38 by stolfi */ /* Formerly {JSTriangulation.h}; a junk version of {Triangulation.h}? */ #include #include #include #include #include #include Place_t JSTriMakeWedge(void); void JSTriWedgeInit(Wedge_t w); /* Creates a new wedge in a triangulation, intializes it with {JSTriWedgeInit}, returns it base place. */ Place_t JSTriMakeCell(void); void JSTriCellInit(Wedge_t w); /* Creates a new cell record, uniattached. */ Topology_t *JSTriMakeTopology(Place_t a, uint bdr); /* This procedure compute the structure topological of tridimensional complexes without/with border. It assumes that the procedures "NumberVertices", "Octf->numberEdges","Octf->numberFacets","Octf->numberfacetedges" of library "libm3triang" was called. */ void JSTriWriteTable ( char *name, Topology_t *top, char *cmt /* DF " " */, bool_t debug /* DF FALSE */ ); /* This procedure create tables of vertex/edges/faces/polyhedra for one triangulation. */ Node_vec_t *JSTriNeighborNode(Place_t a, Topology_t *top); /* [!!! Marked OBSOLETE in M3 Sources!!!] Neighbor vertices of "OrgV(a)" in a triangulation. */ uint JSTriNumberNeighborNode(Node_vec_t *neigh); /* Return the number neighbor vertex of OrgV(a). */ void JSTriFindDegeneracies(Topology_t *top); /* Finds geometric degeneracies. Update the attribute "degenerate" of the elements: edge, face and polyhedron. */ TopCom_t JSTriReadToTaMa(char *name, bool_t ro_te /* DF FALSE */); /* Reads three disk files created by "WriteTopology", "MakeTopologyTable" and "WriteMaterials". The files must have the given "name" with ".tp", ".tb" and ".ma". */ #endif