Skip to content

Instantly share code, notes, and snippets.

@theo-armour
Last active December 16, 2015 10:08
Show Gist options
  • Save theo-armour/5417641 to your computer and use it in GitHub Desktop.
Save theo-armour/5417641 to your computer and use it in GitHub Desktop.
http://threejs.org/docs/58/#Reference/Extras.Geometries/CircleGeometry
CircleGeometry(radius, segments, thetaStart, thetaLength)
radius — Radius of the circle, default = 50.
segments — Number of segments (triangles), minimum = 3, default = 8.
thetaStart — Start angle for first segment, default = 0 (three o'clock position).
thetaLength — Circumference of the circle, default = 2*Pi (360°).
CubeGeometry(width, height, depth, widthSegments, heightSegments, depthSegments)
width — Width of the sides on the X axis.
height — Height of the sides on the Y axis.
depth — Depth of the sides on the Z axis.
widthSegments — Number of segmented faces along the width of the sides.
heightSegments — Number of segmented faces along the height of the sides.
depthSegments — Number of segmented faces along the depth of the sides.
CylinderGeometry(radiusTop, radiusBottom, height, radiusSegments, heightSegments, openEnded)
radiusTop — Radius of the cylinder at the top.
radiusBottom — Radius of the cylinder at the bottom.
height — Height of the cylinder.
radiusSegments — Number of segmented faces around the circumference of the cylinder.
heightSegments — Number of rows of faces along the height of the cylinder.
openEnded - A Boolean indicating whether or not to cap the ends of the cylinder.
IcosahedronGeometry( radius, detail )
OctahedronGeometry( radius, detail )
PlaneGeometry( width, height, widthSegments, heightSegments )
SphereGeometry( radius, segmentsWidth, segmentsHeight, phiStart, phiLength, thetaStart, thetaLength )
radius — sphere radius. Default is 50.
segmentsWidth — number of horizontal segments. Minimum value is 3, and the default is 8.
segmentsHeight — number of vertical segments. Minimum value is 2, and the default is 6.
phiStart — specify horizontal starting angle. Default is 0.
phiLength — specify horizontal sweep angle size. Default is Math.PI * 2.
thetaStart — specify vertical starting angle. Default is 0.
thetaLength — specify vertical sweep angle size. Default is Math.PI.
TorusGeometry( radius, tube, radialSegments, tubularSegments, arc )
TorusKnotGeometry( radius, tube, radialSegments, tubularSegments, arc )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment