SFMultiSurface

Objective-C

@interface SFMultiSurface : SFGeometryCollection

Swift

class SFMultiSurface : SFGeometryCollection

A restricted form of GeometryCollection where each Geometry in the collection must be of type Surface.

  • 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 multi surface

  • Get the surfaces

    Declaration

    Objective-C

    - (NSMutableArray<SFSurface *> *)surfaces;

    Swift

    func surfaces() -> NSMutableArray!

    Return Value

    surfaces

  • Set the surfaces

    Declaration

    Objective-C

    - (void)setSurfaces:(NSMutableArray<SFSurface *> *)surfaces;

    Swift

    func setSurfaces(_ surfaces: NSMutableArray!)

    Parameters

    surfaces

    surfaces

  • Add a surface

    Declaration

    Objective-C

    - (void)addSurface:(SFSurface *)surface;

    Swift

    func addSurface(_ surface: SFSurface!)

    Parameters

    surface

    surface

  • Add surfaces

    Declaration

    Objective-C

    - (void)addSurfaces:(NSArray<SFSurface *> *)surfaces;

    Swift

    func addSurfaces(_ surfaces: [SFSurface]!)

    Parameters

    surfaces

    surfaces

  • Get the number of surfaces

    Declaration

    Objective-C

    - (int)numSurfaces;

    Swift

    func numSurfaces() -> Int32

    Return Value

    surface count

  • Returns the Nth surface

    Declaration

    Objective-C

    - (SFSurface *)surfaceAtIndex:(int)n;

    Swift

    func surface(at n: Int32) -> SFSurface!

    Parameters

    n

    nth surface to return

    Return Value

    surface