Insert Menu Add-on for POV-Ray - by Friedrich A.Lohmueller
Expressions


Insert Menu Add-on
  Basic Templates
    Ready-made Scenes
    Basic Shapes round
    Basic Shapes angular
    Shapes 2
    Shapes 3
    shapes_lo2
    Blob and Fractal
    3D text shapes
    height_field, HF_macros
    Mesh and Non-CSG shapes
    Isosurfaces basic functions
    Isosurfaces function.inc
    Isosurfaces by patterns
    Isosurfaces helix spirals
    Polynomial, Cubic, Quartic
    Parametric Surfaces
    Meshes by meshmaker.inc
    While Loops, For Loops
    sphere_sweep, Spline curves
    Random
    CSG, Shape modifiers
    Shearing and transform
    Colors in textures
    Textures and Materials
      Skies_and_Clouds
      Stones and Granits
      Woods
      Metals
      Mirrors and Glasses
      Normal Examples
      tiling patterns
      pavement patterns
      fractal patterns
    Lights, skies, fogs, rainbow
    Cameras
    Radiosity and Photons
    Own include files
    Math functions
    Analytical Geometry
    Directives
 > Expressions
    General statements
    Animation
    ___________________
     
                                                     

Built-in Identifiers:
e, pi, o, x, y, z, u, v.
Math Operators:
( ), +, -, !, *, /.
Float Functions:
sqrt, pow, exp, log, int, abs, mod, ceil, floor, sin, cos, tan etc.
Relational and Logical Operators:
#if (A & B) ... #end, #if (A | B) ... #end
Conditional Expressions:
#declare value = (FLAG  ? A : B);
Vectors and Vector Components:
V.x, V.y, V.z, ...
Vector Functions:
vcross(A,B), vdot(A,B), vrotate(A,B), vnormalize(A), ...
String Operations and Control Characters:
concat(S1,S2), strlen(S1), str(A,L,P), strcmp(S1,S2), ...
Random Numbers:
#declare R = seed(12345);#declare A = rand(R); ...
Extentions of an Object:
#declare Center = 0.5*(min_extent (Obj) + max_extent (Obj));
Trace Function:
#declare Hit = trace( Obj, Start, Direction, NormalVector );
Inside Test:
#if ( inside(Obj, Point) ) ... 
top

© Friedrich A. Lohmüller, 2014
homepage:www.f-lohmueller.de