Click or drag to resize
AB4D logo

Model3DFactoryCreateCylinder Method

Creates a 3D Cylinder model.

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

Parameters

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

Return Value

GeometryModel3D
3D Cylinder model as GeometryModel3D
Remarks

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

See Also