|  | 
| MeshFactoryCreateConeMesh Method | 
            Create an upright cone mesh.
            
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
 Syntax
Syntaxpublic static StandardMesh CreateConeMesh(
	Vector3 bottomCenterPosition,
	float topRadius,
	float bottomRadius,
	float height,
	int segments,
	bool isSmooth,
	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
- Number of segments comprising the circles and the side surface.
- isSmooth  Boolean
- 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.
- name  String  (Optional)
- Mesh name (for debug purposes).
Return Value
StandardMeshStandardMesh with filled vertices array and index array.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentException | Thrown when number of segments is too low. | 
 See Also
See Also