The bsdf.py
module#
Summary#
Super class for all BSDF datamodels. |
|
Class to facilitate Specular interpolation enhancement. |
|
BSDF - Bidirectional scattering distribution function. |
|
BSDF - Bidirectional scattering distribution function. |
|
Class to store a BxDF data point. |
Create a bsdf180 from 2 bsdf. |
|
Create a brdf from multiple bsdf. |
|
Create an anisotropic bsdf from anisotropic bsdf files. |
Description#
Provides a way to interact with Speos BSDF file.
Module detail#
- bsdf.create_bsdf180(speos, bsdf180_file_path, path_normal_bsdf, path_opposite_bsdf)#
Create a bsdf180 from 2 bsdf.
This function allows to create BSDF180 from 2 bsdf files allowed files: *.coated *.brdf *.anisotropicbsdf *.scattering
- Parameters:
- speos
ansys.speos.core.Speos
Speos Object to connect to RPC server
- bsdf180_file_path
Union
[str
,Path
] File location of created bsdf180
- path_normal_bsdf
Union
[str
,Path
] File location of first file, which represent normal direction Allowed files: *.coated, *.brdf, *.anisotropicbsdf, *.scattering
- path_opposite_bsdf
Union
[str
,Path
] File location of first file, which represent anti-normal direction Allowed files: *.coated, *.brdf, *.anisotropicbsdf, *.scattering
- fix_disparitybool
This allows to create a bsdf when the two files are not normalized to each other. By default,
False
- speos
- Returns:
Path
Returns where the file location of the bsdf180
- bsdf.create_spectral_brdf(speos, spectral_bsdf_file_path, wavelength_list, anisotropic_bsdf_file_list)#
Create a brdf from multiple bsdf.
This function allows to create BRDF from multiple bsdf files allowed files: *.anisotropicbsdf
- Parameters:
- Returns:
Path
Location of created BRDF
- bsdf.create_anisotropic_bsdf(speos, anisotropic_bsdf_file_path, anisotropy_list, anisotropic_bsdf_file_list, fix_disparity=False)#
Create an anisotropic bsdf from anisotropic bsdf files.
- Parameters:
- speos
ansys.speos.core.Speos
Speos Object to connect to RPC server
- anisotropic_bsdf_file_path
Union
[str
,Path
] File location of created Anisotropic BSDF file
- anisotropy_list
list
[float
] ordered List of anisotropy value, in radian
- anisotropic_bsdf_file_list
list
[Union
[Path
,str
]] list of bsdf file locations
- fix_disparitybool
Fixes normalization disparity between BSDF, By default:
False
- speos
- Returns:
Path
Location of created Anisotropic BSDF files
Notes
Please note that the bsdf files from the bsdf list need to be isotropic.