Changeset 7884761 in git
 Timestamp:
 Jul 12, 2007, 4:36:35 PM (16 years ago)
 Branches:
 (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
 Children:
 f7f49eac6f55bc638e945fa2b770a767a2a4f6d7
 Parents:
 62fb0b49885ad5337fe7d01209a7258cd28e8894
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Singular/LIB/surfex.lib
r62fb0b4 r7884761 1 1 //last change: 2007/07/06 (Oliver Labs) 2 2 /////////////////////////////////////////////////////////////////////////////// 3 version="$Id: surfex.lib,v 1. 4 20070712 12:35:44Singular Exp $";3 version="$Id: surfex.lib,v 1.5 20070712 14:36:35 Singular Exp $"; 4 4 category="Visualization"; 5 5 info=" 6 LIBRARY: surfex.lib Procedures for visualizing Surfaces.7 Thisis still an alpha version (see http://www.AlgebraicSurface.net)6 LIBRARY: surfex.lib Procedures for visualizing and rotating surfaces. 7 @* It is still an alpha version (see http://www.AlgebraicSurface.net) 8 8 AUTHOR: Oliver Labs 9 This library uses the program surf and surfex.10 surfex was written by Oliver Labs and others, mainly Stephan Holzer.11 surf was written by Stefan Endrass and others.9 This library uses the program surf 10 (written by Stefan Endrass and others) 11 and surfex (written by Oliver Labs and others, mainly Stephan Holzer). 12 12 13 13 NOTE: 14 This library requires the program surfex to be installed.15 Th is software is used for producing raytraced images of thesurfaces.16 You can download @code{surfex} from @uref{http://www.surfex.AlgebraicSurface.net}.14 This library requires the program surfex, surf and java to be installed. 15 The software is used for producing raytraced images of surfaces. 16 You can download @code{surfex} from http://www.surfex.AlgebraicSurface.net 17 17 18 18 surfex is a frontend for surf which aims to be easier to use than … … 25 25 with the coordinates coords(list) 26 26 plotRot(poly); Similar to plotRotated, 27 but tries to guess automatically27 but guesses automatically 28 28 which coordinates should be used 29 29 plotRotatedList(varieties, coords); Plot the varieties given by the list varieties … … 45 45 " 46 46 USAGE: plotRot(poly p, list #) 47 Similar to plotRotated, but tries to guess automatically47 Similar to plotRotated, but guesses automatically 48 48 which coordinates should be used. 49 49 … … 51 51 seen as a surface in the real affine space with coordinates coords. 52 52 53 RETURN: the return code of the system command which executes surfex. 54 55 ASSUME: The basering is characteristic zero and without parameters. 53 ASSUME: The basering is of characteristic zero and without parameters. 56 54 " 57 55 { … … 89 87 return(plotRotatedList(list(p), coords, #)); 90 88 } 91 example { 89 example 90 { 92 91 "Example:"; echo=2; 93 92 … … 114 113 // to compute the singular locus before calling surfex. 115 114 poly swallowtail = 4*y^2*z^316*x*z^4+27*y^4+144*x*y^2*z+128*x^2*z^2256*x^3; 116 plotRot(swallowtail, 3);117 115 } 118 116 … … 123 121 seen as a surface in the real affine space with coordinates coords. 124 122 125 RETURN: the return code of the system command which executes surfex.126 127 123 ASSUME: coords is a list of three variables. 128 The basering is characteristic zero and without parameters.124 The basering is of characteristic zero and without parameters. 129 125 " 130 126 { 131 127 return(plotRotatedList(list(p), coords, #)); 132 128 } 133 example { 129 example 130 { 134 131 "Example:"; echo=2; 135 132 … … 139 136 // plotRotated(cayley_cubic, list(x,y,z)); 140 137 141 // A ndifficult example: a surface with a onedimensional real component!138 // A difficult example: a surface with a onedimensional real component! 142 139 poly whitney_umbrella = x^2*zy^2; 143 140 // The Whitney Umbrella without its handle: 144 141 plotRotated(whitney_umbrella, list(x,y,z)); 142 145 143 // The Whitney Umbrella together with its handle: 146 144 plotRotated(whitney_umbrella, list(x,y,z), 2); … … 154 152 seen as a surface in the real affine space with coordinates coords. 155 153 156 RETURN: the return code of the system command which executes surfex. 157 158 ASSUME: coords is a list of three variables, 159 varieties is a list of ideals discribing the varieties to be shown. 160 The basering is characteristic zero and without parameters. 154 ASSUME: coords is a list of three variables, varieties is a list of ideals 155 describing the varieties to be shown. 156 The basering is of characteristic zero and without parameters. 161 157 " 162 158 { … … 402 398 see the example. 403 399 404 RETURN: the return code of the system command which executes surfex. 405 406 ASSUME: The basering is characteristic zero. 400 ASSUME: The basering is of characteristic zero. 407 401 408 402 EXAMPLE: example plotRotatedListFromSpecifyList; … … 414 408 return(plotRotatedFromCode(str, #)); 415 409 } 416 example { 410 example 411 { 417 412 "Example:"; echo=2; 418 413 … … 454 449 seen as a surface in the real affine space with coordinates x,y,z. 455 450 The format for the list varieties is not fully documented yet; 456 please, try to adapt the examples to your needs. 457 458 RETURN: the return code of the system command which executes surfex. 451 please, see the examples below and try to adapt the examples to your needs. 459 452 460 453 ASSUME: 461 Passes the equations directly to surfex, 462 i.e., the variable names should be correct, i.e.x,y,z.454 Passes the equations directly to surfex, i.e., the variable names should 455 be x,y,z. 463 456 The advantage is that one can use parameters p1, p2, ...; 464 457 these will be passed to surfex. … … 469 462 return(plotRotatedFromCode(str, #)); 470 463 } 471 example { 464 example 465 { 472 466 "Example:"; echo=2; 473 467 … … 502 496 it takes the surfexcode as a string and calls surfex. 503 497 504 RETURN: the return code of the system command which executes surfex.505 498 " 506 499 {
Note: See TracChangeset
for help on using the changeset viewer.