intercircle ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap_v0.1/intercircle.py

Intercircle is a collection of utilities for intersecting circles, used to get smooth loops around a collection of points and inset & outset loops.
 
To use intercircle, install python 2.x on your machine, which is available from http://www.python.org/download/
 
Then in the folder which intercircle is in, type 'python' in a shell to run the python interpreter.  Finally type
'import intercircle' to import these utilities and 'from vec3 import Vec3' to import the Vec3 class.
 
 
Below are examples of euclidean use.
 
>>> import intercircle
>>> from vec3 import Vec3

 
Modules
       
euclidean
math

 
Classes
       
CircleIntersection
CircleNode

 
class CircleIntersection
    An intersection of two circles.
 
  Methods defined here:
__init__(self)
__repr__(self)
Get the string representation of this CircleIntersection.
addToList(self, circleIntersectionPath)
getAbsolutePosition(self)
getCircleIntersectionAhead(self)
getFromCircleNodes(self, circleNodeAhead, index, circleNodeBehind)
getPositionRelativeToBehind(self)
isWithinCircles(self, circleNodes)

 
class CircleNode
    A node of circle intersections.
 
  Methods defined here:
__init__(self)
__repr__(self)
Get the string representation of this CircleNode.
getFromCircleRadius(self, circle, index, radius)
isWithin(self, circle)

 
Functions
       
addCircleIntersectionLoop(circleIntersectionPath, circleIntersections)
Add a circle intersection loop.
addPointsFromSegment(points, radius, pointBegin, pointEnd)
Add points between the endpoints of a segment.
getCentersFromIntersectionLoop(circleIntersectionLoop)
Get the centers from the intersection loop.
getCentersFromIntersectionLoops(circleIntersectionLoops)
Get the centers from the intersection loops.
getCentersfromLoopDirection(isWiddershins, loop, radius)
Get the centers of the circle intersection loops which go around in the given direction.
getCircleIntersectionLoops(circleIntersections)
Get all the loops going through the circle intersections.
getCircleIntersectionsFromCircleNodes(circleNodes)
Get all the circle intersections with exist between all the circle nodes.
getCircleNodesFromLoop(loop, radius)
Get the circle nodes from every point on a loop and between points.
getCircleNodesFromPath(path, radius)
Get the circle nodes from a path.
getInsetFromClockwiseLoop(loop, radius)
Get loop inset from clockwise loop, out from widdershins loop.
getLoopsfromLoopsDirection(isWiddershins, loops)
Get the loops going round in a given direction.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GPL 3.0'

 
Author
        Enrique Perez (perez_enrique@yahoo.com)