Changeset f03890 in git


Ignore:
Timestamp:
Jun 22, 2016, 1:47:12 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
192fcf0f16a04a7ad6d60ce1534b1290eca4db6d
Parents:
25c3ce0a51208e9a9070c022c5d8c227d3147cd6
Message:
chg: adapt surf.lib to java based surfer (ver 1.4.1)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/surf.lib

    r25c3ce0 rf03890  
    1212  @uref{http://sourceforge.net/projects/surf}
    1313  or from @uref{ftp://www.mathematik.uni-kl.de/pub/Math/Singular/utils/}.
    14  The procedure surfer requires the program @code{surfer} to be installed.
     14 The procedure surfer requires the program @code{surfer} (version 1.4.1 or newwer)
     15 to be installed.
    1516 You can download @code{surfer} from
    1617  @uref{http://imaginary.org/program/surfer}
    17  @*Under Windows, version 159 or newer of @code{surfer} is required.
    18  Under Mac OS X please move SURFER.app from @uref{http://www.mathematik.uni-kl.de/~motsak/files/SURFER.dmg}
    19  under your /Applications.
    2018 @end texinfo
    2119
     
    227225"
    228226{
    229   string lForWindows = "surfer" + string(system("pid"));
    230   string l = "./" + lForWindows;
     227  string l = "/tmp/surfer" + string(system("pid"));
    231228  string err_mes; // string containing error messages
    232229  def base=basering;
     
    259256  if (ncols(I)==1 and (n==3 or nvars(base)==3)) // surface
    260257  {
    261     write(":w " + l, "surface=" + string(I[1]) + ";");
     258    write(":w " + l,
     259"#jSurfer surface description
     260#Fri Jul 08 16:45:41 CEST 2011
     261
     262nt_material_specular_iIntensity=0.5
     263camera_type=ORTHOGRAPHIC_CAMERA
     264back_material_specular_iIntensity=0.5
     265surface_parameter_a=0.5
     266light_position_7=0.0 0.0 0.0
     267light_position_6=0.0 0.0 0.0
     268light_position_5=0.0 0.0 0.0
     269light_position_4=0.0 0.0 0.0
     270light_position_3=0.0 0.0 0.0
     271light_position_2=0.0 -100.0 100.0
     272camera_fov_y=60.0
     273light_position_1=100.0 100.0 100.0
     274light_position_0=-100.0 100.0 100.0
     275front_material_color=0.7058824 0.44313726 0.0627451
     276background_color=1.0 1.0 1.0
     277light_intensity_7=1.0
     278front_material_ambient_intensity=0.4
     279light_intensity_6=1.0
     280scale_factor=0.3000002
     281light_intensity_5=1.0
     282light_intensity_4=1.0
     283light_intensity_3=1.0
     284light_intensity_2=0.3
     285light_intensity_1=0.7
     286light_intensity_0=0.5
     287rotation_matrix=0.5272737 -0.8403951 -0.1254016 0.0 -0.19924057 -0.26575094 0.94323117 0.0 -0.8260085 -0.47235364 -0.30756372 0.0 0.0 0.0 0.0 1.0
     288light_color_7=1.0 1.0 1.0
     289light_color_6=1.0 1.0 1.0
     290front_material_diffuse_intensity=0.8
     291light_color_5=1.0 1.0 1.0
     292light_color_4=1.0 1.0 1.0
     293light_color_3=1.0 1.0 1.0
     294light_color_2=1.0 1.0 1.0
     295light_color_1=1.0 1.0 1.0
     296light_color_0=1.0 1.0 1.0
     297light_status_7=OFF
     298light_status_6=OFF
     299light_status_5=OFF
     300light_status_4=OFF
     301front_material_shininess=30.0
     302light_status_3=OFF
     303light_status_2=ON
     304light_status_1=ON
     305light_status_0=ON
     306camera_height=2.0");
     307    write(":a " + l, "surface_equation=" + string(I[1]));
     308write(":a " + l,
     309"camera_transform=1.0 0.0 0.0 -0.0 0.0 1.0 0.0 -0.0 0.0 0.0 1.0 -1.0 0.0 0.0 0.0 1.0
     310back_material_ambient_intensity=0.4
     311back_material_color=0.8392157 0.8117647 0.47058824
     312back_material_shininess=30.0
     313back_material_diffuse_intensity=0.8");
    262314  }
    263315  else
     
    319371      i = system("sh", surf_call);
    320372    }
    321 
    322 
    323 
    324373  }
    325374  system("sh", "command rm " + l);
Note: See TracChangeset for help on using the changeset viewer.