# Class: GeometryParams

## GeometryParams()

#### new GeometryParams()

几何对象参数

Source:
  - GeometryParams.js, line 13

### Methods

#### (async, static) createObj() → {Promise.<GeometryParams>}

构造一个新得GeometryParams对象

Source:
  - GeometryParams.js, line 24

##### Returns:

Type
  Promise.<GeometryParams>

#### (async, static) getCurrentIndex() → {Number}

获取当前索引

Source:
  - GeometryParams.js, line 78

##### Returns:

索引（int类型的Number）

Type
  Number

#### (async, static) getCurrentVertexIndex() → {Number}

获取当前顶点索引

Source:
  - GeometryParams.js, line 140

##### Returns:

顶点索引（int类型的Number）

Type
  Number

#### (async, static) getGeometry() → {Promise.<Geometry>}

获取几何对象

Source:
  - GeometryParams.js, line 41

##### Returns:

成功：返回几何对象

Type
  Promise.<Geometry>

#### (async, static) getPreCurrentTotalVertex() → {Number}

获取当前区之前的线所构成的顶点的数目

Source:
  - GeometryParams.js, line 108

##### Returns:

索引（int类型的Number）

Type
  Number

#### (async, static) setCurrentIndex(currentIndex) → {Promise.<Void>}

设置当前索引

##### Parameters:

Name | Type | Description
--- | --- | ---
`currentIndex` | Number | 索引（int类型的Number）

Source:
  - GeometryParams.js, line 94

##### Returns:

Type
  Promise.<Void>

#### (async, static) setCurrentVertexIndex(currentVertexIndex) → {Promise.<Void>}

设置当前顶点索引

##### Parameters:

Name | Type | Description
--- | --- | ---
`currentVertexIndex` | Number | 当前顶点索引（int类型的Number）

Source:
  - GeometryParams.js, line 156

##### Returns:

Type
  Promise.<Void>

#### (async, static) setGeometry(geometry) → {Promise.<Void>}

设置几何对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`geometry` | Object | 几何对象（Geometry类型的对象）

Source:
  - GeometryParams.js, line 65

##### Returns:

Type
  Promise.<Void>

#### (async, static) setPreCurrentTotalVertex(preCurrentTotalVertex) → {Promise.<Void>}

设置当前区之前的线所构成的顶点的数目

##### Parameters:

Name | Type | Description
--- | --- | ---
`preCurrentTotalVertex` | Number | 当前区之前的线所构成的顶点的数目（int类型的Number）

Source:
  - GeometryParams.js, line 124

##### Returns:

Type
  Promise.<Void>