[BACK]Return to triangulations_and_subdivisions.ads CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / PHC / Ada / Root_Counts / Dynlift

File: [local] / OpenXM_contrib / PHC / Ada / Root_Counts / Dynlift / triangulations_and_subdivisions.ads (download)

Revision 1.1.1.1 (vendor branch), Sun Oct 29 17:45:28 2000 UTC (23 years, 7 months ago) by maekawa
Branch: PHC, MAIN
CVS Tags: v2, maekawa-ipv6, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, HEAD
Changes since 1.1: +0 -0 lines

Import the second public release of PHCpack.

OKed by Jan Verschelde.

with Standard_Integer_Vectors;           use Standard_Integer_Vectors;
with Simplices,Triangulations;           use Simplices,Triangulations;
with Integer_Mixed_Subdivisions;         use Integer_Mixed_Subdivisions;

package Triangulations_and_Subdivisions is

-- DESCRIPTION :
--   This package offers conversion operations from triangulations
--   into mixed subdivisions and vice versa.

  function Deep_Create    ( n : natural; s : Simplex ) return Mixed_Cell;
  function Shallow_Create ( n : natural; s : Simplex ) return Mixed_Cell;

  -- DESCRIPTION :
  --   Creates a mixed cell from the given simplex.  A deep create makes
  --   a copy of the points in the simplex, whereas a shallow create only
  --   copies the points to the points in the simplex.

  function Deep_Create    ( n : natural; t : Triangulation )
                          return Mixed_Subdivision;
  function Shallow_Create ( n : natural; t : Triangulation )
                          return Mixed_Subdivision;

  -- DESCRIPTION :
  --   Creates a mixed subdivision from a given triangulation.

  function Deep_Create    ( n : natural; flatnor : Vector; t : Triangulation )
                          return Mixed_Subdivision;
  function Shallow_Create ( n : natural; flatnor : Vector; t : Triangulation )
                          return Mixed_Subdivision;

  -- DESCRIPTION :
  --   Stops the conversion as soon as the flattening normal is encountered.
  --   Cells with the same inner normal are merged.

  function Non_Flat_Deep_Create    ( n : natural; t : Triangulation )
                                   return Mixed_Subdivision;
  function Non_Flat_Shallow_Create ( n : natural; t : Triangulation )
                                   return Mixed_Subdivision;

  -- DESCRIPTION :
  --   Converts only the cells in the triangulation that are not flat.

  function Deep_Create    ( n : natural; mixsub : Mixed_Subdivision )
                          return Triangulation;
  function Shallow_Create ( n : natural; mixsub : Mixed_Subdivision )
                          return Triangulation;

  -- DESCRIPTION :
  --   Creates a triangulation from the mixed subdivision.

  -- REQUIRED :
  --   The subdivision must be a triangulation!

end Triangulations_and_Subdivisions;