Click or drag to resize
DigitalRuneMeshHelperCreateTeapot Method
Creates a new submesh that represents a teapot using triangles.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Submesh CreateTeapot(
	GraphicsDevice graphicsDevice,
	float size,
	int tessellation
)

Parameters

graphicsDevice
Type: GraphicsDevice
The graphics device.
size
Type: SystemSingle
The size of the teapot.
tessellation
Type: SystemInt32
The tessellation of the teapot in the range [1, 18].

Return Value

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