Currently BSDF XML validation is performed only on full basis which will cause any other BSDF format to fail.
|
else if(std::holds_alternative<OpticsParser::DualBandBSDF>(wavelength_measured_values)) |
|
{ |
|
auto bsdfHemisphere = |
|
SingleLayerOptics::BSDFHemisphere::create(SingleLayerOptics::BSDFBasis::Full); |
|
auto wavelengthValues = |
|
std::get<OpticsParser::DualBandBSDF>(wavelength_measured_values); |
|
auto solar = wavelengthValues.solar; |
|
auto visible = wavelengthValues.visible; |
|
validate_bsdf(solar.tf); |
|
validate_bsdf(solar.tb); |
|
validate_bsdf(solar.rf); |
|
validate_bsdf(solar.rb); |
|
validate_bsdf(visible.tf); |
|
validate_bsdf(visible.tb); |
|
validate_bsdf(visible.rf); |
|
validate_bsdf(visible.rb); |
Enable validation for whatever basis type is introduced in the XML file (There is a section describing BSDF type).
Currently BSDF XML validation is performed only on full basis which will cause any other BSDF format to fail.
WinCalc/src/convert_optics_parser.cpp
Lines 259 to 274 in 651fdf9
Enable validation for whatever basis type is introduced in the XML file (There is a section describing BSDF type).