Changes between Initial Version and Version 1 of Ticket #3719, comment 1


Ignore:
Timestamp:
Mar 24, 2017, 11:05:32 AM (7 years ago)
Author:
tiiipponen

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3719, comment 1

    initial v1  
    3939    # from equation: cos(angle / 2) = (radius - tolerance) / radius
    4040    # We calculate also minimum count of vertices for whole arc that satisfies tolerance.
     41
    4142    if tolerance > 0.0:
    4243        StrokingTolerance = tolerance
     
    4849    # If user gave exact amount of vertices to use,
    4950    # 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
    5153    if vertices > toleranceVertices:
    5254        verticesCount = vertices
     
    5456        verticesCount = toleranceVertices
    5557
    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
    5760    angleSector = angleArc / (verticesCount + 1)
    5861
     
    6366        calculateZ = True
    6467   
    65     # Calculate vertice points and create line from them
     68    # Calculate vertice points and create line from them.
     69
    6670    pointList = [(p1x, p1y)]
    6771