在我们建模的过程中,通常会遇到一些实际问题,例如,如何在道路右边放置交通指示灯? 如何在道路的左边放置行树?如何在管线的末尾放置阀门?等等。
这些有关线状要素的方向和左右的判断,可以通过UV坐标系来确定的。 线的UV坐标系与线的方向相关,
![]()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
version "2016.0"
init --> Line2
split(u,unitSpace,0){'0.1:StartSegment|'0.8:NIL|'0.1:EndSegment} StartSegment --> color(0,1,0) #Green EndSegment --> color(1,0,0) #Red
Line2 --> translate(rel,world,0,0,-20) split(v,unitSpace,0){'0.2:LeftSide|'0.6:NIL|'0.2:RightSide} LeftSide --> color(1,1,0) #Yellow RightSide --> color(0,1,1) #Blue
|