Sign in to follow this  
Steve Shanbaum

Base Curve Charts

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.    

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this