Surface

HC Graphics Drawing filled shapes Surface
setTessWindingRule SurfaceStart

Surface instructionlist


command which tells Logo to enter surface definiton mode when running the instructionlist. It's very easy to define surfaces with this command and SurfaceColumn.

The normal vectors of the first column of points is linked to the last column, like in a torus. So you can easily define closed surfaces.

See also pretzel2.lg and 3dsurfaces3.lg!

Example:

perspective
r=200
setpc rgb 1 0 0
ht
Surface [
	for [z -1 1 0.1]
	[	pu
		setPosXYZ (list -1 (cos 90*-1)*cos 90*z z)*r
		pd
		for [x -1 1 0.1]
		[	setPosXYZ (list x (cos 90*x)*cos 90*z z)*r
		]
		SurfaceColumn
	]
]
rotateScene

Example:

References:

setTessWindingRule SurfaceStart