GALERIE    EN COURS    SCENES    MACROS    GUIDE    A PROPOS


 

Helical Torus



Référence : Povray Internal Functions

f_helical_torus(x,y,z, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)

With some sets of parameters, it looks like a torus with a helical winding around it. The winding optionally has grooves around the outside. L'exemple ci dessous utilise les paramètres trouvés dans la partie 'Isosurfaces helix spirals' du site Andrea Lohmüller & Friedrich A. Lohmüller
Helical Torus Chrome
Cette image est obtenue avec ce code :
// --------------------------------------------------------------------------
#version 3.7;



// --------------------------------------------------------------------------
// --- PARAMETERS -----------------------------------------------------------
// --------------------------------------------------------------------------
#declare useAreaLights = true;

#declare SimpleTexture = true;
#declare useTransmit = false;
#declare useColorsMap = false;



// --------------------------------------------------------------------------
// --- INCLUDES -------------------------------------------------------------
// --------------------------------------------------------------------------
#include "colors.inc"
#include "myMacros.inc"
#include "functions.inc"
#include "golds.inc"
#include "metals.inc"



// --------------------------------------------------------------------------
// --- GLOBAL SETTINGS ------------------------------------------------------
// --------------------------------------------------------------------------
global_settings {
	assumed_gamma 1.00
	max_trace_level 20
	}



// --------------------------------------------------------------------------
// --- SCENE ----------------------------------------------------------------
// --------------------------------------------------------------------------
#declare dH = 0.50;
camera {
	location p2r(15, 28, 7, false)
	look_at <0, dH, 0>
	angle 36
	}



// --------------------------------------------------------------------------
// --- HDRI SKY SPHERE ------------------------------------------------------
// --------------------------------------------------------------------------
sphere {
	<0,0,0>, 1000
	pigment {
		image_map {
			hdr "galileo_probe.hdr"
			once
			interpolate 2
			map_type 7
			}
		}
	finish {
		ambient 1
		diffuse 0
		}
	hollow
	no_image
	}



// --------------------------------------------------------------------------
// --- HELICAL TORUS ISOSURFACE ---------------------------------------------
// --------------------------------------------------------------------------
isosurface {
	function {
		f_helical_torus (x, y, z, 1, 9, 5, 0.25, 0.10, -0.15, 0, 1, 1,  0)
		}          
	contained_by {
		box { <-1.5,-1.0, -1.5>, <1.5, 1.0, 1.5> }
		}
	threshold 0.001
	accuracy 0.001
	max_gradient 15

	texture { T_Chrome_2C }
	translate< 0, dH, 0>
	rotate -5*z
	}
Il n'y a pas de source de lumière dans cette scéne mais vous remarquerez le paramètre ambient 1 dans la partie 'HDRI SKY SPHERE'.




Haut de la page | Sommaire ]