lesson-9-GC Lesson 9 - Stair Creation

lesson-9-GC Lesson 9 - Stair Creation

ID:39774686

大小:474.34 KB

页数:5页

时间:2019-07-11

lesson-9-GC Lesson 9 - Stair Creation_第1页
lesson-9-GC Lesson 9 - Stair Creation_第2页
lesson-9-GC Lesson 9 - Stair Creation_第3页
lesson-9-GC Lesson 9 - Stair Creation_第4页
lesson-9-GC Lesson 9 - Stair Creation_第5页
资源描述:

《lesson-9-GC Lesson 9 - Stair Creation》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、GenerativeComponents101Lesson9:StairCreation(x2)Lesson9-A:Usingstepheightandlength.Ok,I’mwithya,wheredoIstart?Let’screateallourGraphVariablesfirst:1.Defineyourvariables:Graph>ManageGlobalVariables2.TostartourstepswefirstwanttocreateaseriesofLowerpoints:Point>ByCartesianC

2、oordinatesWhenwegettotheXtranslationandYtranslationwecanusetheGraphVariablescreatedabove,withinaSeriestohelpus:Glossary:Series(start,finish,increment)ASeriesisacollectionofpointsalongalineorasurface.E.g.Series(1,10,1)returns{1,2,3,4,5,6,7,8,9,10}–startsat1,endsat10andisa

3、tintervalsof1.Series(1,10,2)returns{1,3,5,7,9},Series(2,3,0.25)returns{2,2.25,2.5,2.75,3}FortheXtranslation:Series(start,finish,increment)Wewanttostartat0.0Thefinishiscalculatedusingthevariables:Stairs_NumberOfStepsxStairs_StepLength(Use*fortimes)Wewanttheincrementtobeth

4、eStairs_StepLenth.FortheYtranslationiscalculatedthesamewayusingtheHeightVariables.LetsgivethisFeatureaname-LowerPointsthatwecanrecogniseitinthefuture:Forgottogivethefeatureanameasyouwereworkingonit?JustEditthefeatureandRenameit.3.Nowletscreateourprofilelines.Line>ByStart

5、PointDirectionAndLengthLetsstartwiththeheightlines(risers).RenameyourLinefeaturetoStairs_Heights.OurstartpointisthefeatureLowerPoints.OurdirectionisfromtheBaseCSintheYdirection.OurLengthistheVariableStairs_StepHeight.Andthenourlengths(treads).RenameyourLinefeaturetoStair

6、s_Lengths.Thistimeourstartpointsaretheendpointsoftheabovelines(Stair_Heights),whichwecanwritebyStairs_Heights.EndPoint.OurdirectionisfromtheBaseCSintheXdirection.OurLengthistheVariableStairs_StepLength.4.Lastly,letshideourpoints.UsetheDisplayTool(andyouthoughtitwasdiffic

7、ult!)andpicktheelementsyouwishtohide–inthiscaseletshidethepoints.You’llnoticeintheSymbolicviewthatyourpointsgraphichasgreyedout.Howdoyouunhidesomething?UsethesametoolandpickthegreyedoutPointsgraphic.(Noticeintheexamplescriptthatwehavehiddeneverything–sowecanshowyouanothe

8、rwayofdrawingyourstairs…)Lesson9-B:Usingstairtotalheightandlength.1.Defineyourvariables:Thistimewearego

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。