ConeGeometry constructor

ConeGeometry([
  1. double radius = 1,
  2. double height = 1,
  3. int radialSegments = 8,
  4. int heightSegments = 1,
  5. bool openEnded = false,
  6. double thetaStart = 0,
  7. double thetaLength = math.pi * 2,
])

radius — Radius of the cone base. Default is 1.

height — Height of the cone. Default is 1.

radialSegments — Number of segmented faces around the circumference of the cone. Default is 32

heightSegments — Number of rows of faces along the height of the cone. Default is 1.

openEnded — A Boolean indicating whether the base of the cone is open or capped. Default is false, meaning capped.

thetaStart — Start angle for first segment, default = 0 (three o'clock position).

thetaLength — The central angle, often called theta, of the circular sector. The default is 2*Pi, which makes for a complete cone.

Implementation

ConeGeometry([
  double radius = 1,
  double height = 1,
  int radialSegments = 8,
  int heightSegments = 1,
  bool openEnded = false,
  double thetaStart = 0,
  double thetaLength = math.pi * 2
]):super(0, radius, height, radialSegments, heightSegments, openEnded,thetaStart, thetaLength) {
  type = 'ConeGeometry';
  parameters = {
    "radius": radius,
    "height": height,
    "radialSegments": radialSegments,
    "heightSegments": heightSegments,
    "openEnded": openEnded,
    "thetaStart": thetaStart,
    "thetaLength": thetaLength
  };
}