Changeset f03890 in git
- Timestamp:
- Jun 22, 2016, 1:47:12 PM (8 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 192fcf0f16a04a7ad6d60ce1534b1290eca4db6d
- Parents:
- 25c3ce0a51208e9a9070c022c5d8c227d3147cd6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/surf.lib
r25c3ce0 rf03890 12 12 @uref{http://sourceforge.net/projects/surf} 13 13 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. 15 16 You can download @code{surfer} from 16 17 @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.20 18 @end texinfo 21 19 … … 227 225 " 228 226 { 229 string lForWindows = "surfer" + string(system("pid")); 230 string l = "./" + lForWindows; 227 string l = "/tmp/surfer" + string(system("pid")); 231 228 string err_mes; // string containing error messages 232 229 def base=basering; … … 259 256 if (ncols(I)==1 and (n==3 or nvars(base)==3)) // surface 260 257 { 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 262 nt_material_specular_iIntensity=0.5 263 camera_type=ORTHOGRAPHIC_CAMERA 264 back_material_specular_iIntensity=0.5 265 surface_parameter_a=0.5 266 light_position_7=0.0 0.0 0.0 267 light_position_6=0.0 0.0 0.0 268 light_position_5=0.0 0.0 0.0 269 light_position_4=0.0 0.0 0.0 270 light_position_3=0.0 0.0 0.0 271 light_position_2=0.0 -100.0 100.0 272 camera_fov_y=60.0 273 light_position_1=100.0 100.0 100.0 274 light_position_0=-100.0 100.0 100.0 275 front_material_color=0.7058824 0.44313726 0.0627451 276 background_color=1.0 1.0 1.0 277 light_intensity_7=1.0 278 front_material_ambient_intensity=0.4 279 light_intensity_6=1.0 280 scale_factor=0.3000002 281 light_intensity_5=1.0 282 light_intensity_4=1.0 283 light_intensity_3=1.0 284 light_intensity_2=0.3 285 light_intensity_1=0.7 286 light_intensity_0=0.5 287 rotation_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 288 light_color_7=1.0 1.0 1.0 289 light_color_6=1.0 1.0 1.0 290 front_material_diffuse_intensity=0.8 291 light_color_5=1.0 1.0 1.0 292 light_color_4=1.0 1.0 1.0 293 light_color_3=1.0 1.0 1.0 294 light_color_2=1.0 1.0 1.0 295 light_color_1=1.0 1.0 1.0 296 light_color_0=1.0 1.0 1.0 297 light_status_7=OFF 298 light_status_6=OFF 299 light_status_5=OFF 300 light_status_4=OFF 301 front_material_shininess=30.0 302 light_status_3=OFF 303 light_status_2=ON 304 light_status_1=ON 305 light_status_0=ON 306 camera_height=2.0"); 307 write(":a " + l, "surface_equation=" + string(I[1])); 308 write(":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 310 back_material_ambient_intensity=0.4 311 back_material_color=0.8392157 0.8117647 0.47058824 312 back_material_shininess=30.0 313 back_material_diffuse_intensity=0.8"); 262 314 } 263 315 else … … 319 371 i = system("sh", surf_call); 320 372 } 321 322 323 324 373 } 325 374 system("sh", "command rm " + l);
Note: See TracChangeset
for help on using the changeset viewer.