Base Curve Charts


Steve Shanbaum

Recommended Posts

This is to get the conversation started on Base Curve Charts within the LPDS.

(Very condensed and slightly modified) Zeiss presented something similar to the following as a suggested terse method of transmitting the Base Curve Charts.  Steve should be able to post the actual presentation to get much better detail to explain this.  

Add,  Sphere, Cyl, Base
0,      -9,          -4,    NA
0,      -9,          -2,      8
0,      -9,            0,      6
0,      -6,          -4,    NA
0,      -6,          -2,      6
0,      -6,            0,      4

Where a -6sph, -2.5cyl would pick a 6 base.  

Which, at first glance, to fit into JSON tersely, would be something like:

“Base Curve Charts” : [
 {
 “ID” : “123”,
 “Owner ID” : “TVC”,
 “Adds” : 
  [ “0” : 
    { Spheres : 
      [
        “-9” : 
          [
            “-4” : “NA”,
            “-2” : 8,
            “0” : 6
          ],
       “-6” : 
        [
          “-4” : “NA”, 
          “-2” : 6, 
          “0” : 4
        ] 
      ]
    }
  ]
}
]
 

Which, since JSON parsers don't ensure that things get spit out in the same order that they were input in, the readability goes out the window.  It also doesn't have to be interpreted into JSON and could be left more in the original format.  But, this is just to get conversation going about this.    

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.