SFCurvePolygon
A planar surface defined by an exterior ring and zero or more interior ring. Each ring is defined by a Curve instance.
-
Array of rings
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<SFCurve *> *rings;
Swift
var rings: NSMutableArray! { get set }
-
Create
Declaration
Objective-C
+ (SFCurvePolygon *)curvePolygon;
Return Value
new curve polygon
-
Create
Declaration
Objective-C
+ (SFCurvePolygon *)curvePolygonWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Parameters
hasZ
has z values
hasM
has m values
Return Value
new curve polygon
-
Create
Declaration
Objective-C
+ (SFCurvePolygon *)curvePolygonWithRings:(NSMutableArray<SFCurve *> *)rings;
Parameters
rings
list of rings
Return Value
new curve polygon
-
Create
Declaration
Objective-C
+ (SFCurvePolygon *)curvePolygonWithRing:(SFCurve *)ring;
Parameters
ring
ring
Return Value
new curve polygon
-
Create
Declaration
Objective-C
+ (SFCurvePolygon *)curvePolygonWithCurvePolygon:(SFCurvePolygon *)curvePolygon;
Parameters
curvePolygon
curve polygon
Return Value
new curve polygon
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new curve polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
init!(hasZ: Bool, andHasM hasM: Bool)
Parameters
hasZ
has z values
hasM
has m values
Return Value
new curve polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithRings:(NSMutableArray<SFCurve *> *)rings;
Swift
init!(rings: NSMutableArray!)
Parameters
rings
list of rings
Return Value
new curve polygon
-
Initialize
Parameters
ring
ring
Return Value
new curve polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithType:(enum SFGeometryType)geometryType andHasZ:(BOOL)hasZ andHasM:(BOOL)hasM;
Swift
init!(type geometryType: SFGeometryType, andHasZ hasZ: Bool, andHasM hasM: Bool)
Parameters
geometryType
geometry type
hasZ
has z values
hasM
has m values
Return Value
new curve polygon
-
Initialize
Declaration
Objective-C
- (instancetype)initWithCurvePolygon:(SFCurvePolygon *)curvePolygon;
Swift
init!(curvePolygon: SFCurvePolygon!)
Parameters
curvePolygon
curve polygon
Return Value
new curve polygon
-
Add a ring
Parameters
ring
curve ring
-
Get the number of rings
Declaration
Objective-C
- (int)numRings;
Swift
func numRings() -> Int32
Return Value
ring count
-
Returns the Nth ring where the exterior ring is at 0, interior rings begin at 1
Parameters
n
nth ring to return
Return Value
ring
-
Get the exterior ring
Return Value
exterior ring
-
Get the number of interior rings
Declaration
Objective-C
- (int)numInteriorRings;
Swift
func numInteriorRings() -> Int32
Return Value
number of interior rings