欢迎来到天天文库
浏览记录
ID:40083300
大小:752.65 KB
页数:5页
时间:2019-07-20
《lesson-4-GC lesson 4- Making Drawing Economincal》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、GenerativeComponents101Lesson4:MakingdrawingeconomicalYoumeanwe’vebeendoingitthehardway?Morelikethelongway.Beforeweweredrawingeverylineandshapeandnotreallythinkingabouthowwecouldhaveshortenedtheprocessbyusingvariables.Letsfirstlookatthelinefeature.Afeaturealwayshasagivensetofproperties
2、.Thusthelinefeaturealwayshastheproperties:StartpointEndPointLengthAndacirclealwayshastheproperty:RadiusLetshaveagoatusingthesepropertiestocreatenewfeatures.Thisisaneconomicalwayofworkingasitwillreduceyournumberoffeaturesoverall.Letsdrawasquare(excitingIknow!)1.Draw2pointsandaline01ByPo
3、ints.MaketheStartPoint:Point001andtheEndPoint:Point002.2.Nowwewanttodrawline02perpendiculartoline01.Previouslywewouldhavedrawnathirdpointandthenourline.Butwhatwecandoinsteadisthis:LetsplaceaCoordinateSystem>ByOriginXPointonpoint001.WecandefineourXdirectionbyselectingpoint002.Nowletscre
4、atetheFeatureLine>ByStartPointDirectionAndLengthWecoulddefineourStartPointineitheroftwowayshere1.YoucouldchoosethenewCoordinateSystemor…2.YoucouldchooseLine001andplacea”.”(fullstop)afterwards.This“.”Opensapulldownmenuwherewecanchoosepropertiesoftheline–wewanttochooseStartPoint.Doublecl
5、ickStartPointtoenterit.SoourStartPointofLine002isnowdefinedasLine001.StartPointNowwedefinethedirectionofthelineasCoordinateSystem0001.Ydirection.Rememberwedefinedthexdirectionwhenwechosepoint002onplacementofthecoordinatepoint.SowhenwechoosetheYdirectionweknowitwillbeperpendiculartoline
6、001.LastlyweneedtodefineourLength.WecandothisbychoosingLine001.LengthApplyandourlineisdrawn!Andthesameforthenextline?Yougotit!WhenyouarereadytodrawthenextlinehittheNextButtonNoticethatthe“NameofthenewFeature”changedtoline003?Nowgobacktothelineinputs(theyhaven’tchangedfromline002)andupd
7、atethem.TheStartPointofLine003isdefinedby:Line002.EndPointTheDirectionisdefinedby:CoordinateSystem0001.XdirectionThelengthisdefinedby:Line001.LengthYoucoulddothesameagainforLine004butitmightjustbeeasiertoplacethelineByPoints:TheStartPointofLine004isdefinedby:Line003.EndPointTheEndPoi
此文档下载收益归作者所有