Return to index

NAME

sides - set the number of sides for the current material

SYNOPSIS

sides { 1 | 2 }

DESCRIPTION

The sides entity is used to set the number of sides for the current material. If a surface is two-sided, then it will appear identical when viewed from either the front or the back. If a surface is one-sided, then it appears invisible when viewed from the back side. This means that a transmitting object will affect the light coming in through the front surface and ignore the characteristics of the back surface, unless the index of refraction is set. If the index of refraction is set, then the object will act as a solid piece of dielectric material. In either case, the transmission properties of the exiting surface should be the same as the incident surface for the model to be physically valid.

The default number of sides is two.

EXAMPLE

# Describe a blue crystal ball
m blue_crystal =
        ir 1.650000 0
	# Solid dielectrics must use one-sided materials
        sides 1
        c
        rs 0.0602 0
        c
                cxy 0.3127 0.2881
        ts 0.6425 0
v sc =
	p 10 15 1.5
sph sc .02

SEE ALSO

ed, ir, m, rd, rs, td, ts