← Back to team overview

yade-users team mailing list archive

Re: Question about sweptPolylines2gtsSurface

 

Sorry, fixed:

pts =
[[Vector3(0,0,0),Vector3(1,0,0),Vector3(2,0,0),Vector3(2,1,0),Vector3(1,1,0),Vector3(0,1,0),Vector3(0,0,0)]]
gtsSurf=pack.sweptPolylines2gtsSurface(pts,capStart=True,capEnd=True,threshold=1e-4)


______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями

Anton Gladkyy


2009/8/28 Anton Gladky <gladky.anton@xxxxxxxxx>

> Hi, I am trying to work with GTS surfaces, but have next problem:
>
> pts =
> [Vector3(0,0,0),Vector3(1,0,0),Vector3(2,0,0),Vector3(2,1,0),Vector3(1,1,0),Vector3(0,1,0),Vector3(0,0,0)]
>
> gtsSurf=pack.sweptPolylines2gtsSurface(pts,capStart=True,capEnd=True,threshold=1e-4)
>
> I get:
>
>   File
> "/home/gladk/dem/yade/current/build/lib/yade-current/py/yade/pack.py", line
> 108, in sweptPolylines2gtsSurface
>     vtxs=[[gts.Vertex(x,y,z) for x,y,z in pts1] for pts1 in pts]
> TypeError: 'float' object is not iterable
>
>
> What do I do wrong?
>
> Thank you
>
> ______________________________
> [ENG] Best Regards
> [GER] Mit freundlichen Grüßen
> [RUS] С наилучшими пожеланиями
> [UKR] З найкращими побажаннями
>
> Anton Gladkyy
>

Follow ups

References