# VertexPolyList

Engine/source/collision/vertexPolyList.h

A simple polylist which only gathers the unique verticies passed to it.

More...

## Protected Attributes

```Vector< Point3F >
```
```mVertexList
```

The unique verts we captured.

## Public Functions

```VertexPolyList()
```
```~VertexPolyList()
```
```U32
```
```addPlane(const PlaneF & plane)
```

Adds a plane to the poly list, and returns an ID number for that point.

```U32
```
```addPoint(const Point3F & p)
```

Adds a point to the poly list, and returns an ID number for that point.

```void
```
```begin(BaseMatInstance * material, U32 surfaceKey)
```

Start a surface.

```void
```
```clear()
```

Clears any captured verts.

```void
```
```end()
```

Mark the end of a surface.

```const PlaneF &
```
```getIndexedPlane(const U32 index)
```

A helper function to convert a plane index to a PlaneF structure.

```Vector< Point3F > &
```
```getVertexList()
```

Returns the vertex list.

```const Vector< Point3F > &
```
```getVertexList()
```

Returns the constant vertex list.

```bool
```
```isEmpty()
```

Returns true if the polylist contains no verts.

```void
```
```plane(const PlaneF & p)
```

Indicate the plane of the surface.

```void
```
```plane(const U32 index)
```

Indicate the plane of the surface.

```void
```
```plane(U32 v1, U32 v2, U32 v3)
```

Indicate the plane of the surface.

```void
```
```vertex(U32 vi)
```

Reference a vertex which is in this surface.

## Detailed Description

A simple polylist which only gathers the unique verticies passed to it.

## Protected Attributes

```Vector< Point3F > mVertexList
```

The unique verts we captured.

## Public Functions

```VertexPolyList()
```

```~VertexPolyList()
```

```addPlane(const PlaneF & plane)
```

Reimplemented from: AbstractPolyList

```addPoint(const Point3F & p)
```

Reimplemented from: AbstractPolyList

```begin(BaseMatInstance * material, U32 surfaceKey)
```

Reimplemented from: AbstractPolyList

```clear()
```

Clears any captured verts.

```end()
```

Reimplemented from: AbstractPolyList

```getIndexedPlane(const U32 index)
```

Reimplemented from: AbstractPolyList

```getVertexList()
```

Returns the vertex list.

```getVertexList()
```

Returns the constant vertex list.

```isEmpty()
```

Reimplemented from: AbstractPolyList

```plane(const PlaneF & p)
```

Reimplemented from: AbstractPolyList

```plane(const U32 index)
```

Reimplemented from: AbstractPolyList

```plane(U32 v1, U32 v2, U32 v3)
```

Reimplemented from: AbstractPolyList

```vertex(U32 vi)
```

Reimplemented from: AbstractPolyList