Open sensor56 opened 7 years ago
My workaround at this time : if the source Path is continous, I use for each Line only start points : new_line=spt.Line(path[index].point(0), path[index+1].point(0))
And if the source Path is closed, the last Line is : spt.Line(pathIn[-1].point(0), pathIn[0].point(0))
Simple and it seems to work : new path is continuous anc closed.
Hi,
A Path object contain for example :
I want to reuse the start and end point from each object to build Line object with : spt.Line(elem.point(0), elem.point(1))
where elem is an element in Path source
I obtain :
As you can see, there is a little difference : 29.016691803786323+153.45777340439065j give 29.01669180378633+153.45777340439054j 31.58327563427502+150.34450253075013j give 31.583275634274997+150.34450253075j 46.4826356273+144.192135229j give 46.48263562729995+144.1921352290001j
Only end point seem have this problem.
Logically, Path() obtained is not continuous, etc.
Is it possible to give a tolerance for continuous or limit precision to 6 or 8 decimal for example ?
Thanks in advance for your suggest.