Click or drag to resize
AB4D logo

ExtensionsGetVisual3D Method

Returns a WPF's Visual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true). If a SceneNode that defines a Visual3D 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 Visual3D GetVisual3D(
	this SceneNode sceneNode,
	bool searchParentSceneNodes = true
)

Parameters

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

Return Value

Visual3D
Visual3D 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