Computes the transform from the inner space of the given Visual3D to the 2D space of the Viewport3DVisual which contains it. The result will contain the transform of the given visual. This method can fail if Camera.Transform is non-invertable in which case the camera clip planes will be coincident and nothing will render. In this case success will be false.

Namespace: Ico.Windows.Media.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static Matrix3D TryTransformTo2DAncestor(
	DependencyObject visual,
	out Viewport3DVisual viewport,
	out bool success
)
Visual Basic
Public Shared Function TryTransformTo2DAncestor ( _
	visual As DependencyObject, _
	<OutAttribute> ByRef viewport As Viewport3DVisual, _
	<OutAttribute> ByRef success As Boolean _
) As Matrix3D
JScript
public static function TryTransformTo2DAncestor(
	visual : DependencyObject, 
	viewport : Viewport3DVisual, 
	success : boolean
) : Matrix3D

Parameters

visual
Type: System.Windows..::..DependencyObject
the visual to transform
viewport
Type: System.Windows.Media.Media3D..::..Viewport3DVisual%
the Viewport3DVisual used as a reference
success
Type: System..::..Boolean%
indicates the success of the operation

Return Value

the Matrix3D representing the transformation from the inner space to the outer space

See Also