Click or drag to resize
DigitalRuneMeshHelperCreateHemisphereLines Method
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.)

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Submesh CreateHemisphereLines(
	GraphicsDevice graphicsDevice,
	int numberOfSegments
)

Parameters

graphicsDevice
Type: GraphicsDevice
The graphics device.
numberOfSegments
Type: SystemInt32
The number of segments. This parameter controls the detail of the mesh.

Return Value

Type: Submesh
A new Submesh that represents a hemisphere line list.
Exceptions
ExceptionCondition
ArgumentNullExceptiongraphicsDevice is .
ArgumentOutOfRangeExceptionnumberOfSegments is less than or equal to 2.
Remarks
If the returned Submesh is not going to be modified, then it is better to call GetHemisphereLines(IGraphicsService) to retrieve a shared Submesh instance.
See Also