| MeshHelper Class |
Namespace: DigitalRune.Graphics
The MeshHelper type exposes the following members.
| Name | Description | |
|---|---|---|
| CreateBox |
Creates a new submesh that represents a box using triangles.
(The box is centered at the origin. The side length is 1.)
| |
| CreateBoxLines |
Creates a new submesh that represents a box using lines.
(The box is centered at the origin. The side length is 1.)
| |
| CreateCircleLines |
Creates a new submesh that represents a circle using lines.
(The circle lies in the xy plane and is centered at the origin. Radius = 1.)
| |
| CreateCone |
Creates a new submesh that represents a cone using triangles.
(The cone is standing on the xz plane pointing along the y axis. Radius = 1. Height = 1.)
| |
| CreateConeLines |
Creates a new submesh that represents a cone using lines.
(The cone is standing on the xz plane pointing along the y axis. Radius = 1. Height = 1.)
| |
| CreateCylinder |
Creates a new submesh that represents a cylinder using triangles.
(The cylinder is centered at the origin. Radius = 1. Height = 2 (along the y axis).)
| |
| CreateCylinderLines |
Creates a new submesh that represents a cylinder using lines.
(The cylinder is centered at the origin. Radius = 1. Height = 2 (along the y axis).)
| |
| CreateHemisphere |
Creates a new submesh that represents a spherical cap using triangles.
(The sphere is centered at the origin. Radius = 1. The submesh contains only the
top half (+y) of the sphere.)
| |
| CreateHemisphereLines |
Creates a new submesh that represents a spherical cap using lines.
(The sphere is centered at the origin. Radius = 1. The submesh contains only the
top half (+y) of the sphere.)
| |
| CreateIcosphere |
Creates a new submesh that represents a sphere using triangles.
(The sphere is centered at the origin. Radius = 1. The sphere is generated by subdividing
an icosahedron.)
| |
| CreateSubmesh(GraphicsDevice, ITriangleMesh, Single) |
Creates a submesh to draw a triangle mesh.
| |
| CreateSubmesh(GraphicsDevice, TriangleMesh, Single) |
Creates a submesh to draw a triangle mesh.
| |
| CreateTeapot |
Creates a new submesh that represents a teapot using triangles.
| |
| CreateTorus |
Creates a new submesh that represents a torus using triangles.
(The torus is centered at the origin.)
| |
| CreateUncappedCylinder |
Creates a new submesh that represents an uncapped (open) cylinder using triangles.
(The cylinder centered at the origin. Radius = 1. Height = 2 (along the y axis).)
| |
| CreateUVSphere |
Creates a new submesh that represents a sphere using triangles.
(The sphere is centered at the origin. Radius = 1.)
| |
| Draw |
Draws the Submesh using the currently active shader.
| |
| GetBox |
Gets the default submesh that represents a box using triangles.
(The box is centered at the origin. The side length is 1.)
| |
| GetBoxLines |
Gets the default submesh that represents a box using lines.
(The box is centered at the origin. The side length is 1.)
| |
| GetCircleLines |
Gets the default submesh that represents a circle using lines.
(The circle lies in the xy plane and is centered at the origin. Radius = 1.)
| |
| GetCone |
Gets the default submesh that represents a cone using triangles.
(The cone is standing on the xz plane pointing along the y axis. Radius = 1. Height = 1.)
| |
| GetConeLines |
Gets the default submesh that represents a cone using lines.
(The cone is standing on the xz plane pointing along the y axis. Radius = 1. Height = 1.)
| |
| GetCylinder |
Gets the default submesh that represents a cylinder using triangles.
(The cylinder is centered at the origin. Radius = 1. Height = 2 (along the y axis).)
| |
| GetCylinderLines |
Gets the default submesh that represents a cylinder using lines.
(The cylinder is centered at the origin. Radius = 1. Height = 2 (along the y axis).)
| |
| GetHemisphere |
Gets the default submesh that represents a spherical cap using triangles.
(The sphere is centered at the origin. Radius = 1. The submesh contains only the
top half (+y) of the sphere.)
| |
| GetHemisphereLines |
Gets the default submesh that represents a spherical cap using lines.
(The sphere is centered at the origin. Radius = 1. The submesh contains only the
top half (+y) of the sphere.)
| |
| GetIcosphere |
Gets the default submesh that represents a sphere using triangles.
(The sphere is centered at the origin. Radius = 1. The sphere is generated by subdividing
an icosahedron.)
| |
| GetMaterial |
Gets the material of a submesh.
| |
| GetMorphTargetNames |
Gets the names of all morph targets.
| |
| GetTeapot |
Gets the default submesh that represents a teapot using triangles.
| |
| GetUncappedCylinder |
Gets the default submesh that represents an uncapped (open) cylinder using triangles.
(The cylinder centered at the origin. Radius = 1. Height = 2 (along the y axis).)
| |
| GetUVSphere |
Gets the default submesh that represents a sphere using triangles.
(The sphere is centered at the origin. Radius = 1.)
| |
| Merge(IEnumerableSceneNode) |
Merges the specified scene nodes (including descendants) into a single mesh.
| |
| Merge(Mesh, IListVector3F, IListPose) |
Merges the specified mesh instances into a single mesh.
| |
| SetMaterial |
Sets the material for a submesh.
| |
| ToTriangleMesh(Mesh) |
Creates a TriangleMesh from a Mesh.
| |
| ToTriangleMesh(Submesh) |
Creates a TriangleMesh from a Submesh.
| |
| ToTriangleMesh(Submesh, TriangleMesh) |
Adds the triangles from the specified Submesh to a
TriangleMesh.
|