[page:Curve] → [page:CurvePath] → [page:Path] →

# 形状（[name]）

## 代码示例

``` const heartShape = new THREE.Shape(); heartShape.moveTo( 25, 25 ); heartShape.bezierCurveTo( 25, 25, 20, 0, 0, 0 ); heartShape.bezierCurveTo( - 30, 0, - 30, 35, - 30, 35 ); heartShape.bezierCurveTo( - 30, 55, - 10, 77, 25, 95 ); heartShape.bezierCurveTo( 60, 77, 80, 55, 80, 35 ); heartShape.bezierCurveTo( 80, 35, 80, 0, 50, 0 ); heartShape.bezierCurveTo( 35, 0, 25, 25, 25, 25 ); const extrudeSettings = { depth: 8, bevelEnabled: true, bevelSegments: 2, steps: 2, bevelSize: 1, bevelThickness: 1 }; const geometry = new THREE.ExtrudeGeometry( heartShape, extrudeSettings ); const mesh = new THREE.Mesh( geometry, new THREE.MeshPhongMaterial() ); ```

## 例子

[example:webgl_geometry_shapes geometry / shapes ]
[example:webgl_geometry_extrude_shapes geometry / extrude / shapes ]
[example:webgl_geometry_extrude_shapes2 geometry / extrude / shapes2 ]

## 构造函数

### [name]( [param:Array points] )

points -- (optional) 一个[page:Vector2 Vector2]数组。

## 方法

### [method:Array extractPoints]( [param:Integer divisions] )

divisions -- 结果的精细程度（细分数）。

### [method:Array getPointsHoles]( [param:Integer divisions] )

divisions -- 结果的精细程度（细分数）。