/// <summary> /// Create a new instance of the <see cref="HollowCylinder" />. /// </summary> /// <param name="radius">The radius of the cylinder.</param> /// <param name="height">The height of the cylinder.</param> /// <param name="segmentAngle">The angle of each of cegments of the cylinder.</param> /// <returns></returns> public static HollowCylinder Create(int radius, int height, int segmentAngle) { var hollowCylinder = new HollowCylinder { _radius = radius, _height = height, _segmentAngle = segmentAngle }; HollowCylinderBuilder.Build(radius, height, segmentAngle, hollowCylinder); return(hollowCylinder); }
private void Rebuild() { Faces.Clear(); Vertices.Clear(); HollowCylinderBuilder.Build(Radius, Height, SegmentAngle, this); }