Changes between Initial Version and Version 1 of Ticket #3719, comment 1
- Timestamp:
- Mar 24, 2017, 11:05:32 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3719, comment 1
initial v1 39 39 # from equation: cos(angle / 2) = (radius - tolerance) / radius 40 40 # We calculate also minimum count of vertices for whole arc that satisfies tolerance. 41 41 42 if tolerance > 0.0: 42 43 StrokingTolerance = tolerance … … 48 49 # If user gave exact amount of vertices to use, 49 50 # we use it or we use vertice count calculated from tolerance, 50 # which ever is bigger so meaning more accurate 51 # which ever is bigger so meaning more accurate. 52 51 53 if vertices > toleranceVertices: 52 54 verticesCount = vertices … … 54 56 verticesCount = toleranceVertices 55 57 56 # Now calculate exact angle of one stroke sector from count of vertices 58 # Now calculate exact angle of one stroke sector from count of vertices. 59 57 60 angleSector = angleArc / (verticesCount + 1) 58 61 … … 63 66 calculateZ = True 64 67 65 # Calculate vertice points and create line from them 68 # Calculate vertice points and create line from them. 69 66 70 pointList = [(p1x, p1y)] 67 71