Show
Ignore:
Timestamp:
02/11/07 22:02:42 (2 years ago)
Author:
fdb
Message:

segmentlengths, addpoint on BezierPath?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • nodebox/trunk/src/DrawingPrimitives.py

    r78 r79  
    238238    ### Mathematics ### 
    239239     
    240     def segment_lengths(self, relative=False, n=10): 
     240    def segmentlengths(self, relative=False, n=10): 
    241241        import bezier 
    242242        if relative: # Use the opportunity to store the segment cache. 
     
    264264        for i in xrange(amount): 
    265265            yield self.point(delta*i) 
     266             
     267    def addpoint(self, t): 
     268        import bezier 
     269        self.path = bezier.insert_point(self, t).path 
    266270 
    267271class PathElement(object):