-
Notifications
You must be signed in to change notification settings - Fork 2
/
PolyTree.h
48 lines (33 loc) · 848 Bytes
/
PolyTree.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// PolyTree.h
// An Objective-C wrapper for the PolyTree object from the Clipper library
// (http://sourceforge.net/projects/polyclipping/)
//
// Created by John Swensen on 3/18/14.
// Copyright (c) 2014 John Swensen. All rights reserved.
//
// License:
// Use, modification & distribution is subject to Boost Software License Ver 1.
// http://www.boost.org/LICENSE_1_0.txt
//
#import <Foundation/Foundation.h>
#import "clipper.hpp"
@class Paths;
@class PolyNode;
@interface PolyTree : NSObject
{
ClipperLib::PolyTree _tree;
}
@property (atomic,assign) ClipperLib::PolyTree tree;
- (ClipperLib::PolyTree*) treePtr;
- (void) clear;
- (PolyNode*) getFirst;
- (int) total;
- (Paths*) toPaths;
#ifdef HAVE_POLY2TRI
- (Paths*) triangulate;
- (Paths*) triangulateDepthFirst;
#endif
- (float) area;
- (void) print;
@end