TABLE OF CONTENTS


ScPovPlot3D/CommonDefs.inc [ Modules ]

[ Top ] [ Modules ]

PURPOSE

Common definitions of the whole system, sorry a little bit messy TODO: cleanup and refactorization, esp. move coord system to dedicated file


     *********************************************************
     **   Tested on PovRay 3.7                              **
     **   License: GNU GPL                                  **
     **   Homepage:    http://scpovplot3d.sourceforge.net   **
     *********************************************************
     **   version: 3.1.0.4 (& have a nice time ;)           **
     *********************************************************

AUTHOR

Janusz Opiła Ph.D.

   jmo@agh.edu.pl, janusz.opila@gmail.com
   Dept. of Applied Informatics
   AGH University of Science & Technology, Cracow, Poland
   Maintained by Janusz Opiła Ph.D.

COPYRIGHT

  GNU GPL v.3 License
  (c) 2012-now by Janusz Opiła Ph.D.
  AGH University of Science and Technology

CommonDefs.inc/Factorial [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

computes Factorial of the number 'C' Factorial(c)=c!

SYNOPSIS

#declare Factorial = Function(_c) { prod(i, 1, _c, i) }

INPUTS

  float or integer - Factorial parameter,

OUTPUTS

  float - Factorial of _c if _c is whole number, maybe Factorial if float

SEE ALSO

None


CommonDefs.inc/ImageType [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Deactivates texture for image background matt

SYNOPSIS

#macro ImageType (_Imgx)

INPUTS

   string_fn _Img - image file name with extension

CommonDefs.inc/SetImageFilter [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Sets filter XOR transmit value for image. Obsolete, use SetImgFilter instead

SYNOPSIS

#macro SetImageFilter (_Val)        // 1 or 2

INPUTS

   pinteger _Val - filtering type: "transmit" (2) XOR "filter" (1) for image given

CommonDefs.inc/SetImageGamma [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Sets gamma value for background image

SYNOPSIS

#macro SetImageGamma (_Val)         // '0' means 'srgb';

INPUTS

   float _Val - gamma value for image given

CommonDefs.inc/SetImagePower [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Sets VALUE of "filter" XOR "transmit". Obsolete, use SetImgFilter OR/AND SetImgTransmit instead

SYNOPSIS

#macro SetImagePower (_Val)         // float

INPUTS

   float _Val - amount of "transmit" (2) XOR "filter" (1) for image given

CommonDefs.inc/SetImgFilter, UnSetImgFilter, SetImgTransmit, UnSetImgTransmit [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Sets amount of light filtered/changed

SYNOPSIS

#macro SetImgFilter (_V)

INPUTS

   float _V - amount of filtered light/filter power, if _V <0 restores previous, else sets new value

CommonDefs.inc/SetImgFinish [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Sets "finish" section

SYNOPSIS

#macro SetImgFinish (_Fin)           // finish identifier

INPUTS

   finishdef _Fin - contains finish {} section for background images

SEE ALSO

SetImageGamma() SetImageFilter()


CommonDefs.inc/SetImgTransmit, UnSetImgTransmit, SetImgFilter, UnSetImgFilter [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Sets amount of light transmitted as unchanged

SYNOPSIS

#macro SetImgTransmit (_V)

INPUTS

   float pwr - amount of transmitted light/transmit power, if _V <0 restores previous, else sets new value

CommonDefs.inc/SetMatt, UnSetMatt, UnSetImgTransmit, SetImgFilter, UnSetImgFilter [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Sets texture for image background matt

SYNOPSIS

#macro SetMatt (_Tx)

INPUTS

   texturedef Tx -texture for background image matt

CommonDefs.inc/Sfere [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

computes square of right triangle "b" side knowing "c" and "a" b^2=c^2-a^2

SYNOPSIS

#declare Sfere = Function (x,y,z,_a) {pow(x,2) + pow(y,2) + pow(z,2) - pow(_a,2)};

INPUTS

  x,y,z - float: just three floats, may be some point coordinates
  _a    - float: just float or one of right triangle sides

OUTPUTS

  float - square of third right triangle side

SEE ALSO

None


CommonDefs.inc/UnSetImgFilter [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Deactivates filtering stack

SYNOPSIS

#macro UnSetImgFilter(_V)

INPUTS

   float pwr - amount of filtered light/filter power

CommonDefs.inc/UnSetImgTransmit, SetImgTransmit, SetImgFilter, UnSetImgFilter [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Deactivates transmit stack

SYNOPSIS

#macro UnSetImgTransmit()

INPUTS

   no inputs

CommonDefs.inc/UnSetMatt, SetMatt, UnSetImgTransmit, SetImgTransmit, SetImgFilter, UnSetImgFilter [ Helper macros ]

[ Top ] [ CommonDefs.inc ] [ Helper macros ]

PURPOSE

Deactivates texture for image background matt

SYNOPSIS

#macro UnSetMatt()

INPUTS

   no inputs