2004-11-17 07:33 AM
2004-11-19 08:28 AM
2004-11-19 02:59 PM
2004-11-22 05:57 AM
2004-11-22 08:16 AM
Karl wrote:It is definitely not the beer. Stuart's profile portrait leaves no doubt as to the fact that he was born for these helical stuff things.
Or tell us which beer!
2004-11-22 11:52 AM
2011-10-02 07:06 PM
StuartJames wrote:hello, i'm newbie
Geometric shapes are very easy in GDL. It is architecture that is difficult The GDL is actually quite simple - but a geometric background does help.
HTH !
Stuart 'prefers long variable names' James
!*** master variables ***
oRevolutions = 2
oSegmentAngle = 5 !=== in degrees
oCoilRadius = 5
oCoilLength = 50
oBandWidth = 5
oBandHeight = 2
!*** dependent variables ***
oAngle = 360 * oRevolutions
oStep = oAngle / (360/oSegmentAngle)
oXmultiplier = oCoilLength / oAngle
!*** put path ***
for i = 0 - oStep to oAngle + oStep step oStep
oX = i * oXmultiplier
oY = sin (i) * oCoilRadius
oZ = cos (i) * oCoilRadius
put oX, oY, oZ, i
next i
!*** draw path ***
tube 4, oAngle/oStep +2, 32+16+2+1,
-oBandWidth*0.5, -oBandHeight*0.5, 0,
oBandWidth*0.5, -oBandHeight*0.5, 0,
oBandWidth*0.5, oBandHeight*0.5, 0,
-oBandWidth*0.5, oBandHeight*0.5, 0,
get ((oAngle/oStep+2)*4)
end