| MeshHelperCreateConeLines Method |
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.)
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public static Submesh CreateConeLines(
GraphicsDevice graphicsDevice,
int numberOfSegments
)
Public Shared Function CreateConeLines (
graphicsDevice As GraphicsDevice,
numberOfSegments As Integer
) As Submesh
public:
static Submesh^ CreateConeLines(
GraphicsDevice^ graphicsDevice,
int numberOfSegments
)
static member CreateConeLines :
graphicsDevice : GraphicsDevice *
numberOfSegments : int -> Submesh
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:
SubmeshA new
Submesh that represents a cone line list.
Exceptions Remarks See Also