Click or drag to resize
Ab4d.SharpEngine logo

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

Create an upright 3D cone.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public ConeModelNode(
	Vector3 bottomCenterPosition,
	float topRadius,
	float bottomRadius,
	float height,
	int segments = 30,
	bool isSmooth = true,
	string? name = null
)

Parameters

bottomCenterPosition  Vector3
Position of the bottom-center point.
topRadius  Single
Radius of the top circle.
bottomRadius  Single
Radius of the bottom circle.
height  Single
Vertical size of the cone.
segments  Int32  (Optional)
Number of segments comprising the circles and the side surface. Default value is 30.
isSmooth  Boolean  (Optional)
If true, 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.
See Also