summaryrefslogtreecommitdiff
path: root/include/glass_data.h
diff options
context:
space:
mode:
authoradmin <admin@optics-design.com>2025-08-03 18:25:31 +0200
committeradmin <admin@optics-design.com>2025-08-03 18:25:31 +0200
commit8332d652eac5b46d8b8b02b25d47aa5355ef31cd (patch)
treeeae008e0f2f7d41884a440dcd848452d6d55345a /include/glass_data.h
parent9db2f09e80b894e1e04038a37c6dcf769b77347c (diff)
added schott json
Diffstat (limited to 'include/glass_data.h')
-rw-r--r--include/glass_data.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/glass_data.h b/include/glass_data.h
index a5eb3c6..277adfa 100644
--- a/include/glass_data.h
+++ b/include/glass_data.h
@@ -18,8 +18,8 @@
// Structure to represent an optical glass
typedef struct {
byte name[50];
- f32 abbeNumber; // X-axis
- f32 refractiveIndex; // Y-axis
+ f32 abbeNumber; // X-axis (vd)
+ f32 refractiveIndex; // Y-axis (nd)
} Glass;
// Get number of glasses in the catalog
@@ -37,4 +37,7 @@ void find_glass_data_range(f32 *minAbbe, f32 *maxAbbe, f32 *minRI, f32 *maxRI);
// Initialize glass data - call at program start
void initialize_glass_data(void);
+// Load glasses from JSON file
+b32 load_glasses_from_json(const byte* json_path, const byte* manufacturer_filter);
+
#endif /* GLASS_DATA_H */
Back to https://optics-design.com