Click or drag to resize
AB4D logo

ExtensionsGetModelVisual3D Method

Returns a WPF's ModelVisual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true). If a SceneNode that defines a ModelVisual3D is not found, then null is returned.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public static ModelVisual3D GetModelVisual3D(
	this SceneNode sceneNode,
	bool searchParentSceneNodes = true
)

Parameters

sceneNode  SceneNode
SceneNode
searchParentSceneNodes  Boolean  (Optional)
when true parent SceneNodes are checked if they define the ModelVisual3D

Return Value

ModelVisual3D
ModelVisual3D or null

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SceneNode. 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