/* Pipes.sl I Stephenson DCT Systems ian@dctsystems.co.uk */ #include "rmannotes.sl" displacement pipes( float Km = 4.0; float pipeDensity = 0.5; float levels = 3; float initialSFreq=8; float initialTFreq=8; float radius=0.1; float freqRatio = 1.432; float over=0; ) { float pipeHeight = 1.0; /*used to scale the w component with the s & t */ float sfreq = initialSFreq; float tfreq = initialTFreq; float i; float magnitude; float ss, tt; point centerPoint=(0.5,0.5,0); point edgePoint =(0,0,0); point testPoint =(0 ,0,0); float distance; float tmp; magnitude= 0; for(i=0;i