DXMesh |
public static DXMeshGeometry3D GetUsedDXMeshGeometry3D( MeshGeometry3D meshGeometry, DXDevice parentDXDevice )
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.