- import rhinoscriptsyntax as rs
- class pipe:
-
- def __init__(self,curve):
-
- self.crv = curve
-
-
- def pipe(self,rad):
-
- domain = rs.CurveDomain(self.crv)
- pipe = rs.AddPipe(self.crv,domain[0],rad)
-
- def main():
- crvs = rs.GetObjects("select your curves",4)
- raddi = rs.GetReal("pipe raddio",.5)
- for i in crvs:
-
- myPipe = pipe(i)
- myPipe.pipe(raddi)
- main()
复制代码 |