Skip to content

BSDF XML Validation #33

@vidanovic

Description

@vidanovic

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).

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions