Drawing3d documented Class Library

Tools.drawCone(MNDevice, xyz, xyz, Double, Double, Double, Boolean, Boolean, xy) Method

Draws a Cone and uses the Cone class. If you take BaseRadius = TopRadius you get a cylinder. Since the painting is using a surface, the texture will be mapped to [0,1]x[0,1].
For example: If your texture has a WorldHeight = 4 and WorldWidth= 4 the image on the Cone is a quarter of the complete image. If you want to have 3 images parallel to xyBase set WorldWidth to 1/3.

[Visual Basic]
Public Overloads Shared Sub drawCone( _
   ByVal Device As MNDevice, _
   ByVal Center As xyz, _
   ByVal Direction As xyz, _
   ByVal Height As Double, _
   ByVal BaseRadius As Double, _
   ByVal TopRadius As Double, _
   ByVal PaintBottom As Boolean, _
   ByVal PaintTop As Boolean, _
   ByVal TextureOffset As xy _
)
[C#]
public static void drawCone(
   MNDevice Device,
   xyz Center,
   xyz Direction,
   double Height,
   double BaseRadius,
   double TopRadius,
   bool PaintBottom,
   bool PaintTop,
   xy TextureOffset
);

Parameters

Device
Device in which will be drawn.
Center
Center of the Cone
Direction
Direction of the cone axis.
Height
Specifies the height.
BaseRadius
Specifies the base radius.
TopRadius
Specifies the top radius.
PaintBottom
True: the bottom circle will be drawn.
PaintTop
True: the top circle will be drawn.
TextureOffset
Specifies the origin translation of the texture.

See Also

Tools Class | Drawing3d Namespace | Tools.drawCone Overload List