Click or drag to resize
DigitalRuneMeshHelper Class
Provides helper methods for Meshes, Submeshes and Materials.
Inheritance Hierarchy
SystemObject
  DigitalRune.GraphicsMeshHelper

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static class MeshHelper

The MeshHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateBox
Creates a new submesh that represents a box using triangles. (The box is centered at the origin. The side length is 1.)
Public methodStatic memberCreateBoxLines
Creates a new submesh that represents a box using lines. (The box is centered at the origin. The side length is 1.)
Public methodStatic memberCreateCircleLines
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.)
Public methodStatic memberCreateCone
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.)
Public methodStatic memberCreateConeLines
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.)
Public methodStatic memberCreateCylinder
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).)
Public methodStatic memberCreateCylinderLines
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).)
Public methodStatic memberCreateHemisphere
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.)
Public methodStatic memberCreateHemisphereLines
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.)
Public methodStatic memberCreateIcosphere
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.)
Public methodStatic memberCreateSubmesh(GraphicsDevice, ITriangleMesh, Single)
Creates a submesh to draw a triangle mesh.
Public methodStatic memberCreateSubmesh(GraphicsDevice, TriangleMesh, Single)
Creates a submesh to draw a triangle mesh.
Public methodStatic memberCreateTeapot
Creates a new submesh that represents a teapot using triangles.
Public methodStatic memberCreateTorus
Creates a new submesh that represents a torus using triangles. (The torus is centered at the origin.)
Public methodStatic memberCreateUncappedCylinder
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).)
Public methodStatic memberCreateUVSphere
Creates a new submesh that represents a sphere using triangles. (The sphere is centered at the origin. Radius = 1.)
Public methodStatic memberDraw
Draws the Submesh using the currently active shader.
Public methodStatic memberGetBox
Gets the default submesh that represents a box using triangles. (The box is centered at the origin. The side length is 1.)
Public methodStatic memberGetBoxLines
Gets the default submesh that represents a box using lines. (The box is centered at the origin. The side length is 1.)
Public methodStatic memberGetCircleLines
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.)
Public methodStatic memberGetCone
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.)
Public methodStatic memberGetConeLines
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.)
Public methodStatic memberGetCylinder
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).)
Public methodStatic memberGetCylinderLines
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).)
Public methodStatic memberGetHemisphere
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.)
Public methodStatic memberGetHemisphereLines
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.)
Public methodStatic memberGetIcosphere
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.)
Public methodStatic memberGetMaterial
Gets the material of a submesh.
Public methodStatic memberGetMorphTargetNames
Gets the names of all morph targets.
Public methodStatic memberGetTeapot
Gets the default submesh that represents a teapot using triangles.
Public methodStatic memberGetUncappedCylinder
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).)
Public methodStatic memberGetUVSphere
Gets the default submesh that represents a sphere using triangles. (The sphere is centered at the origin. Radius = 1.)
Public methodStatic memberMerge(IEnumerableSceneNode)
Merges the specified scene nodes (including descendants) into a single mesh.
Public methodStatic memberMerge(Mesh, IListVector3F, IListPose)
Merges the specified mesh instances into a single mesh.
Public methodStatic memberSetMaterial
Sets the material for a submesh.
Public methodStatic memberToTriangleMesh(Mesh)
Creates a TriangleMesh from a Mesh.
Public methodStatic memberToTriangleMesh(Submesh)
Creates a TriangleMesh from a Submesh.
Public methodStatic memberToTriangleMesh(Submesh, TriangleMesh)
Adds the triangles from the specified Submesh to a TriangleMesh.
Top
See Also