Click or drag to resize
Ab4d.SharpEngine logo

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

Create an upright 3D cylinder.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public CylinderModelNode(
	Vector3 bottomCenterPosition,
	float radius,
	float height,
	int segments = 30,
	bool smooth = true,
	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  (Optional)
Number of segments comprising the circles and the side surface. Default value is 30.
smooth  Boolean  (Optional)
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.
name  String  (Optional)
Optional node name.
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.CylinderModelNode.#ctor(System.Numerics.Vector3,System.Single,System.Single,System.Int32,System.Boolean,System.String)"]

See Also