The Autodesk.Revit.DB.Visual.SurfaceNdfType class represents a non-dimensional fraction distribution (NDF) type for project material surfaces in Revit. It stores information about the type of distribution used for a given material surface's non-dimensional fraction data.
Name
: A string that represents the name of the NDF type.Distribution
: An enumeration value that represents the type of distribution used for the NDF data.Uniform
: The NDF data is uniformly distributed.Custom
: The NDF data uses a custom distribution.None
This class is used in conjunction with the Autodesk.Revit.DB.Visual.SurfaceNdfData class to specify the non-dimensional fraction data of a given material surface in Revit. The NDF data specifies the distribution of fractions of the surface that contribute to light reflection, absorption, and transmission.
By storing the type of distribution used for the NDF data in a separate class, users can more easily modify and visualize the distribution of the surface's fractions within the Revit user interface.
//Create a new SurfaceNdfType object with a custom distribution
SurfaceNdfType customNdfType = new SurfaceNdfType("Custom NDF", SurfaceNdfDistribution.Custom);