| TriangleMeshFromModel Method |
Creates a triangle mesh from an XNA
Model. (Only available in the
XNA-compatible build, except Silverlight.)
Namespace: DigitalRune.Geometry.MeshesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static TriangleMesh FromModel(
Model model
)
Public Shared Function FromModel (
model As Model
) As TriangleMesh
public:
static TriangleMesh^ FromModel(
Model^ model
)
static member FromModel :
model : Model -> TriangleMesh
Parameters
- model
- Type: Model
The XNA model.
Return Value
Type:
TriangleMesh
A triangle mesh containing all triangles of the specified model.
Remarks
This method is only available in XNA-compatible builds of DigitalRune.Geometry.dll. It is
not available in "Any CPU" builds or Silverlight.
See Also