to make things simple use a 60mm eye size to design and scale down through lab software.
Using the pattern center as the cartesian (0, 0) center for a right lens the critical points in a counter clockwise direction starting from the 180:
(30, 10)
(10, 30)
(-10, 30)
(-30, 10)
(-30, -10)
(-10, -30)
(10, -30)
(30, -10)
those are your 8 corners, trace files are in polar coordinates so your have to convert those (x, y) values into radius and angles to create a r recordset.
Theta= tan-1( x / y)
r = (x^2 + y^2)^1/2
then create a trcfmt recordset and specify mounting style rimless i assume and 8 radius and right lens.
That is a basic trace if 8 points are too low you could filling the remaining points using simple formulas for lines.
Radius goes in the r recordset and angles go in the a recordset.
Code:
trcfmt=1;8;e;r;f
r=3162;3162;3162;3162;3162;3162;3162;3162
a=1843;71.57;10843;19843;25157;28843;34157
as you can see from the above code the radius of all the corners are the same as they should be. The points between the corners could be filled in with points the corresponding lines are function that should produce the (x,y) coordinates given the scenario above. Tip: Restrict the domain and range. Counter clockwise from right:
The vertical line on the right:
X = 30 {range of -10 to 10}
slope:
Y = -x + 40 {domain 10 to 30 and range is 10 to 30}
top horizontal line:
Y = 30 {domain of +10 to -10}
slope:
Y = x + 40 {domain -10 to -30 and range is 10 to 30}
left vertical line:
X = -30 {range +10 to -10}
slope:
Y = -x - 40 {domain -30 to -10 and range is -10 to -30}
horizontal bottom:
Y = -30 {domain of -10 to +10}
slope:
Y = x - 40 {domain 10 to 30 and range is -30 to -10}
Bookmarks