InterpolationEnhancement#
- class ansys.speos.core.bsdf.InterpolationEnhancement(bsdf, bsdf_namespace, index_1=1.0, index_2=1.0)#
Class to facilitate Specular interpolation enhancement.
- Parameters:
- bsdf
Union[ansys.speos.core.bsdf.AnisotropicBSDF,ansys.speos.core.bsdf.SpectralBRDF], BSDF type object to be interpolated.
- bsdf_namespace
Union[ansys.api.speos.bsdf.v1.spectral_bsdf_pb2,ansys.api.speos.bsdf.v1.anisotropic_bsdf_pb2], namespace for the methods.
- index_1
Optional[float], index on reflection side.
- index_2
Optional[float], index on transmission side.
- bsdf
- Parameters:
bsdf (Union[AnisotropicBSDF, SpectralBRDF])
bsdf_namespace (Union[ansys.api.speos.bsdf.v1.spectral_bsdf_pb2, ansys.api.speos.bsdf.v1.anisotropic_bsdf_pb2])
index_1 (Optional[float])
index_2 (Optional[float])
Notes
Do not instantiate this class yourself
Overview#
Set interpolation obtained from bsdf Class or that modified by user. |
Property of refractive index on reflection side. |
|
Refractive index on transmission side. |
|
Return a fixed dictionary for reflection interpolation settings to be set by user. |
|
Return a fixed dictionary for reflection interpolation settings to be set by user. |
Import detail#
from ansys.speos.core.bsdf import InterpolationEnhancement
Property detail#
- property InterpolationEnhancement.index1: float#
Property of refractive index on reflection side.
- Parameters:
- value
refractiveindex. Refractive index on reflection side.
- value
- Returns:
floatRefractive index on reflection side.
- property InterpolationEnhancement.index2: float#
Refractive index on transmission side.
- Parameters:
- value
refractiveindex. Refractive index on transmission side.
- value
- Returns:
floatRefractive index on transmission side.
- property InterpolationEnhancement.get_reflection_interpolation_settings: None | _InterpolationSettings#
Return a fixed dictionary for reflection interpolation settings to be set by user.
- Returns:
Union[None,ansys.speos.core.bsdf.InterpolationEnhancement._InterpolationSettings]A fixed dictionary for reflection interpolation settings to be set by user.
- property InterpolationEnhancement.get_transmission_interpolation_settings: None | _InterpolationSettings#
Return a fixed dictionary for reflection interpolation settings to be set by user.
- Returns:
Union[None,nsys.speos.core.bsdf.InterpolationEnhancement._InterpolationSettings]A fixed dictionary for reflection interpolation settings to be set by user.
Method detail#
- InterpolationEnhancement.set_interpolation_settings(is_brdf, settings)#
Set interpolation obtained from bsdf Class or that modified by user.
- Parameters:
- is_brdfbool
true if settings is for brdf, else for btdf
- settings
nsys.speos.core.bsdf.InterpolationEnhancement._InterpolationSettings interpolation settings to set.