路径
个人理解,路径实质上是多条连续的线段进行组合起来具备某些特殊意义,最主要的作用还是为了让自定义的截面进行跟随形成一些我们想要的模型。
代码演示会更直接理解一点:
[code]model = Sketchup.active_modelentities = model.entitiessel = model.selectionpt0 = Array.new()# 原点用数组(矩阵)表示orignPoint = Array.new(3,0)# 绘制简易曲线路径for i in 90..270 pt = [orignPoint.x + i,orignPoint.y + 100 * Math::sin(i.degrees),orignPoint.z] pt0
来源:SketchUpBBS
|