Click or drag to resize
DigitalRuneMeshHelperCreateBox Method
Creates a new submesh that represents a box using triangles. (The box is centered at the origin. The side length is 1.)

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Submesh CreateBox(
	GraphicsDevice graphicsDevice
)

Parameters

graphicsDevice
Type: GraphicsDevice
The graphics device.

Return Value

Type: Submesh
A new Submesh that represents a box.
Exceptions
ExceptionCondition
ArgumentNullExceptiongraphicsDevice is .
Remarks
If the returned Submesh is not going to be modified, then it is better to call GetBox(IGraphicsService) to retrieve a shared Submesh instance.
See Also