Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

circleGeometry

Firtina Ozbalikci edited this page Nov 1, 2015 · 14 revisions

WikiInternal ComponentsGeometriescircleGeometry

circleGeometry

Creates a THREE.CircleGeometry

CircleGeometry is a simple shape of Euclidean geometry.

It is constructed from a number of triangular segments that are oriented around a central point and extend as far out as a given radius. It is built counter-clockwise from a start angle and a given central angle. It can also be used to create regular polygons, where the number of segments determines the number of sides.

Attributes

dynamic

bool: See THREE.Geometry#dynamic.

Set to true if attribute buffers will need to change in runtime (using "dirty" flags).

Unless set to true internal typed arrays corresponding to buffers will be deleted once sent to GPU.

Defaults to true.

name

string: Name for this geometry.

Default is an empty string.

radius

number: Radius of the circle, default = 50.

segments

number: Number of segments (triangles), minimum = 3, default = 8.

thetaStart

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

thetaLength

number: The central angle, often called theta, of the circular sector.

The default is 2*Pi, which makes for a complete circle.

resourceId

string: The resource id of this object, only used if it is placed into resources.

This component can be added into <resources/>! See Resource Types for more information.

===

View Source
Clone this wiki locally