Click or drag to resize
Ab4d.SharpEngine logo

CylinderModelNode Class

An upright 3D cylinder model.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class CylinderModelNode : ModelNode

The CylinderModelNode type exposes the following members.

Constructors
 NameDescription
Public methodCylinderModelNode Create an upright 3D cylinder.
Public methodCylinderModelNode(String) Create an upright 3D cylinder.
Public methodCylinderModelNode(Material, String) Create an upright 3D cylinder.
Public methodCylinderModelNode(Vector3, Single, Single, Int32, Boolean, String) Create an upright 3D cylinder.
Public methodCylinderModelNode(Vector3, Single, Single, Int32, Boolean, Material, String) Create an upright 3D cylinder with specified material.
Top
Properties
 NameDescription
Public propertyBottomCenterPosition Position of the bottom-center point. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyHeight Vertical size of the cylinder. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyIsSmooth If set, side surface normals are computed so that the surface looks smooth. Otherwise, each segment of the side surface will appear pronounced and flat. Default value is true. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyRadius Radius of the cylinder. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertySegments Number of segments comprising the circles and the side surface. Default value is 30. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Top
Methods
 NameDescription
Protected methodUpdateMesh UpdateMesh method recreates the mesh based on the current object properties. The method should be overriden in the derived class that provides its own mesh generation.
(Overrides ModelNodeUpdateMesh)
Top
See Also