Changeset 69b66ef in git


Ignore:
Timestamp:
Aug 6, 2008, 3:14:56 PM (16 years ago)
Author:
Thomas Markwig <keilen@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
ad8e1b0d640cd2aaf8929e7568cf730da7d7d683
Parents:
769343e17202548eace5e1578ccc64e4f15a0928
Message:
triangulations has been adopted so as to get along with the format of topcom version 0.15.


git-svn-id: file:///usr/local/Singular/svn/trunk@10948 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/polymake.lib

    r769343 r69b66ef  
    1 version="$Id: polymake.lib,v 1.3 2008-08-04 15:53:41 keilen Exp $";
     1version="$Id: polymake.lib,v 1.4 2008-08-06 13:14:56 keilen Exp $";
    22category="Tropical Geometry";
    33info="
     
    797797  system("sh","cd /tmp; points2triangs < triangulationsinput > triangulationsoutput");
    798798  string p2t=read("/tmp/triangulationsoutput"); // takes the result of points2triangs
     799  // preprocessing of p2t if points2triangs is version >= 0.15 brings p2t to the format of version 0.14
    799800  string np2t; // takes the triangulations in Singular format
    800   // transform the points2triangs output into Singular format
     801  for (i=1;i<=size(p2t)-2;i++)
     802  {
     803    if ((p2t[i]==":") and (p2t[i+1]=="=") and (p2t[i+2]=="["))
     804    {
     805      np2t=np2t+p2t[i]+p2t[i+1];
     806      i=i+3;
     807      while (p2t[i]!=":")
     808      {
     809        i=i+1;
     810      }
     811    }
     812    else
     813    {
     814      if ((p2t[i]=="]") and (p2t[i+1]==";"))
     815      {
     816        np2t=np2t+p2t[i+1];
     817        i=i+1;
     818      }
     819      else
     820      {       
     821        np2t=np2t+p2t[i];
     822      }
     823    }
     824  }
     825  if (p2t[size(p2t)-1]=="]")
     826  {
     827    np2t=np2t+p2t[size(p2t)];
     828  }
     829  else
     830  {
     831    if (np2t[size(np2t)]!=";")
     832    {     
     833      np2t=np2t+p2t[size(p2t)-1]+p2t[size(p2t)];
     834    }
     835  }
     836  p2t=np2t;
     837  np2t="";
     838  // transform the points2triangs output of version 0.14 into Singular format
    801839  for (i=1;i<=size(p2t);i++)
    802840  {
Note: See TracChangeset for help on using the changeset viewer.