def omitends(self, box1, box2):
"""intersects a path with the boxes' paths"""
# cut off the start of self
# XXX how can decoration of this box1.path() be handled?
sp = self.intersect(box1.path())[0]
if sp:
self.normsubpaths = self.split(sp[-1:])[1].normsubpaths
# cut off the end of self
sp = self.intersect(box2.path())[0]
if sp:
self.normsubpaths = self.split(sp[:1])[0].normsubpaths
评论列表
文章目录