 | MeshHelperCreateUncappedCylinder Method |
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).)
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntaxpublic static Submesh CreateUncappedCylinder(
GraphicsDevice graphicsDevice,
int numberOfSegments
)
Public Shared Function CreateUncappedCylinder (
graphicsDevice As GraphicsDevice,
numberOfSegments As Integer
) As Submesh
public:
static Submesh^ CreateUncappedCylinder(
GraphicsDevice^ graphicsDevice,
int numberOfSegments
)
static member CreateUncappedCylinder :
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:
Submesh
A new
Submesh that represents an uncapped cylinder (a cylinder without
flat circle caps).
Remarks
See Also