Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Concatenate bezier paths?

I have two bezier paths path1 and path2 (constructed using arc(...)). They have the same beginning point and end point, and I'd like to join them into a single path and fill the interior. What's the right way to do this? If I just try to concatenate the lists path1.path and path2path and then call bezier_curve(), it generates an error when I try to display it.

Concatenate bezier paths?

I have two bezier paths path1 and path2 (constructed using arc(...)). They have the same beginning point and end point, and I'd like to join them into a single path and fill the interior. What's the right way to do this? If I just try to concatenate the lists path1.path and path2path path2.path and then call bezier_curve(), bezier_curve() and the result, it generates an error when I try to display it.

Concatenate bezier paths?

I have two bezier paths path1 and path2 (constructed using arc(...)). They have the same beginning point and end point, and I'd like to join them into a single path and fill the interior. What's the right way to do this? If I just try to concatenate the lists path1.path and path2.path and then call bezier_curve() and the result, it generates an error when I try to display it.

Here is a simple failed attempt.

arc1 = arc((0,1),sqrt(2),sector=(5*pi/4,7*pi/4))
arc2 = arc((0,-1),sqrt(2),sector=(pi/4,3*pi/4))

path1 = arc1[0].bezier_path()
path2 = arc2[0].bezier_path()

combo = bezier_path(path1[0].path+path2[0].path)
combo.show()