---
layout: default-layout
title: DSContour - Dynamsoft Capture Vision iOS Edition API Reference
description: The class DSContour of Dynamsoft Capture Vision iOS represents a contour in 2D space, which contains an array of CPoint objects, representing the vertices of the contour.
keywords: contour, 2D space, CPoint, objective-c, swift
needGenerateH3Content: true
needAutoGenerateSidebar: true
noTitleIndex: true
---

# DSContour

The `Contour` class represents a contour made up of multiple points.

## Definition

*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1. 
```objc
@interface DSContour : NSObject
```
2. 
```swift
class Contour : NSObject
```

## Attributes & Methods

| Attributes | Type | Description |
| ---------- | ---- | ----------- |
| [`points`](#points) | *NSArray \** | An array of `Point` objects defining the vertices of the contour. |


| Method | Description |
| ------ | ----------- |
| [`initWithPointArray`](#initwithpointarray) | The constructor. Creates an instance from an array of points. |

### points

An array of `Point` objects defining the vertices of the contour.

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1. 
```objc
@property (nonatomic, copy, nullable) NSArray *points;
```
2. 
```swift
var points: [Point] { get set }
```

### initWithPointArray

The constructor. Creates an instance from an array of points.

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1. 
```objc
- (instancetype)initWithPointArray:(nullable NSArray *)points;
```
2. 
```swift
init(points: [Point]?)
```
