Click or drag to resize
Ab4d.SharpEngine logo

CylinderModelNode(Vector3, Single, Single, Int32, Boolean, Material, String) Constructor

Create an upright 3D cylinder with specified material.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public CylinderModelNode(
	Vector3 bottomCenterPosition,
	float radius,
	float height,
	int segments,
	bool smooth,
	Material material,
	string? name = null
)

Parameters

bottomCenterPosition  Vector3
Position of the bottom-center point.
radius  Single
Radius of the cylinder.
height  Single
Vertical size of the cylinder.
segments  Int32
Number of segments comprising the circles and the side surface.
smooth  Boolean
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.
material  Material
Mesh material.
name  String  (Optional)
Optional node name.
See Also