Scene |
public static SceneNode CreateFromVisual3D( Visual3D visual3D, Effect defaultMaterialEffect, DXScene parentDXScene, Dictionary<Object, string> objectNames = null, string name = null )
CreateFromVisual3D method creates a SceneNode from the specified WPF's Visual3D.
The method first checks if the type of the visual3D is registered with RegisterVisual3DToSceneNodeCreator(Type, SceneNodeFactoryVisual3DToSceneNodeCreatorDelegate) method and in this case calls the registered delegate that can create the SceneNode. The order in which the registered types are checked is reversed from the order in which the types are registered. This way it is possible to first register base types and than specific types.
If SceneNode is not created with registered creator, than the CreateFromVisual3D method can created one of the following SceneNodes: