Click or drag to resize
AB4D logo

ExtensionsGetDXAttributeOrDefaultT(Model3D, DXAttributeType) Method

Gets the value of the specified DXAttributeType from the specified Model3D. If the attributeType does not exists then a default value for the type T is returned.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
public static T GetDXAttributeOrDefault<T>(
	this Model3D model3D,
	DXAttributeType attributeType
)

Parameters

model3D  Model3D
Model3D
attributeType  DXAttributeType
type of attribute as DXAttributeType

Type Parameters

T

Return Value

T
value of the specified attributeType

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Model3D. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also