Click or drag to resize
AB4D logo

DXMeshGeometry3DGetUsedDXMeshGeometry3D Method

GetUsedDXMeshGeometry3D method returns DXMeshGeometry3D that was created from the WPF MeshGeometry3D (or null if no DXMeshGeometry3D was created for the WPF material). parentDXDevice is requireed to check if the created DXMeshGeometry3D was created for the same device.

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public static DXMeshGeometry3D GetUsedDXMeshGeometry3D(
	MeshGeometry3D meshGeometry,
	DXDevice parentDXDevice
)

Parameters

meshGeometry  MeshGeometry3D
MeshGeometry3D used in WPF
parentDXDevice  DXDevice
DXDevice

Return Value

DXMeshGeometry3D
already created DXMeshGeometry3D or null
Remarks

GetUsedDXMeshGeometry3D method returns DXMeshGeometry3D that was created from the WPF MeshGeometry3D (or null if no DXMeshGeometry3D was created for the WPF material). parentDXDevice is requireed to check if the created DXMeshGeometry3D was created for the same device.

NOTE:
When the MeshGeometry3D is used to show a Model3D with texture and MeshGeometry3D defines non-normalized texture coordinates (not in range from 0 to 1), then the DXMeshGeometry3D is not stored into MeshGeometry3D because this MeshGeometry3D can be used only for one Material and its Viewport values.

This method will also return null if the MeshGeometry3D is frozen.

See Also