Changeset 79 for nodebox/trunk/src/DrawingPrimitives.py
- Timestamp:
- 02/11/07 22:02:42 (2 years ago)
- Files:
-
- 1 modified
-
nodebox/trunk/src/DrawingPrimitives.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nodebox/trunk/src/DrawingPrimitives.py
r78 r79 238 238 ### Mathematics ### 239 239 240 def segment _lengths(self, relative=False, n=10):240 def segmentlengths(self, relative=False, n=10): 241 241 import bezier 242 242 if relative: # Use the opportunity to store the segment cache. … … 264 264 for i in xrange(amount): 265 265 yield self.point(delta*i) 266 267 def addpoint(self, t): 268 import bezier 269 self.path = bezier.insert_point(self, t).path 266 270 267 271 class PathElement(object):
