level 1
是Kight
楼主
我的代码如下所示,创建一根锚杆,为方便划分自由段、锚固段,我分成了上下两部分。
我好奇,这建立的两段合起来算一个锚杆吗?或者说是,这根锚杆连续吗?
fish define cable
loop global P (1,13)
local y0 = 1.5*(P-1) + 1
local yz = 1.5*(P-1) + 1
local yy = 1.5*(P-1) + 1
local a = P+100
local b = P+200
local c = P*1
local d = P*1+20
local e = P+1000
local f = P+2000
command
; 左侧锚杆
structure cable create by-line -1 @璐村惂鐢ㄦ埛_0000A4C馃惥 3 -1 @yz 4.2 segments 6 id @a
structure cable create by-line -1 @yz 4.2 -1 @yz 4.8 segments 6 id @b
; 中间锚杆 (重复模式)
structure cable create by-line 0 @璐村惂鐢ㄦ埛_00aS7aP馃惥 3 0 @yz 4.2 segments 6 id @c
structure cable create by-line 0 @y0 4.2 0 @yz 4.8 segments 6 id @d
; 右侧锚杆
structure cable create by-line 1 @yy 3 1 @yz 4.2 segments 6 id @e
structure cable create by-line 1 @yy 4.2 1 @yz 4.8 segments 6 id @f
end_command
2025年08月19日 02点08分
1
我好奇,这建立的两段合起来算一个锚杆吗?或者说是,这根锚杆连续吗?
fish define cable
loop global P (1,13)
local y0 = 1.5*(P-1) + 1
local yz = 1.5*(P-1) + 1
local yy = 1.5*(P-1) + 1
local a = P+100
local b = P+200
local c = P*1
local d = P*1+20
local e = P+1000
local f = P+2000
command
; 左侧锚杆
structure cable create by-line -1 @璐村惂鐢ㄦ埛_0000A4C馃惥 3 -1 @yz 4.2 segments 6 id @a
structure cable create by-line -1 @yz 4.2 -1 @yz 4.8 segments 6 id @b
; 中间锚杆 (重复模式)
structure cable create by-line 0 @璐村惂鐢ㄦ埛_00aS7aP馃惥 3 0 @yz 4.2 segments 6 id @c
structure cable create by-line 0 @y0 4.2 0 @yz 4.8 segments 6 id @d
; 右侧锚杆
structure cable create by-line 1 @yy 3 1 @yz 4.2 segments 6 id @e
structure cable create by-line 1 @yy 4.2 1 @yz 4.8 segments 6 id @f
end_command