Click or drag to resize
AB4D logo

Model3DFactoryCreateCone Method

Creates a 3D Cone model.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static GeometryModel3D CreateCone(
	Point3D bottomCenterPosition,
	double topRadius,
	double bottomRadius,
	double height,
	int segments,
	bool isSmooth,
	Material material
)

Parameters

bottomCenterPosition  Point3D
center position of the bottom circle that defines the cone
topRadius  Double
radius of the top circle that defines the cone
bottomRadius  Double
radius of the bottom circle that defines the cone
height  Double
height of the cone
segments  Int32
number of segments that define the top and bottom circles of the cone
isSmooth  Boolean
if true the cone is smooth, if false the edges on the cone are sharp
material  Material
material

Return Value

GeometryModel3D
3D Cone model as GeometryModel3D
Remarks

Cone model is similar to Cylinder model. The difference is that the Cylinder has both top and bottom circle radius the same. Cylinder can be created with CreateCylinder(Point3D, Double, Double, Int32, Boolean, Material) method.

See Also