SFPolyhedralSurface

Objective-C

@interface SFPolyhedralSurface : SFSurface

Swift

class SFPolyhedralSurface : SFSurface

Contiguous collection of polygons which share common boundary segments.

  • Array of polygons

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableArray<SFPolygon *> *polygons;

    Swift

    var polygons: NSMutableArray! { get set }
  • Create

    Declaration

    Objective-C

    + (SFPolyhedralSurface *)polyhedralSurface;

    Return Value

    new polyhedral surface

  • Create

    Declaration

    Objective-C

    + (SFPolyhedralSurface *)polyhedralSurfaceWithHasZ:(BOOL)hasZ
                                               andHasM:(BOOL)hasM;

    Parameters

    hasZ

    has z values

    hasM

    has m values

    Return Value

    new polyhedral surface

  • Create

    Declaration

    Objective-C

    + (SFPolyhedralSurface *)polyhedralSurfaceWithPolygons:
        (NSMutableArray<SFPolygon *> *)polygons;

    Parameters

    polygons

    list of polygons

    Return Value

    new polyhedral surface

  • Create

    Declaration

    Objective-C

    + (SFPolyhedralSurface *)polyhedralSurfaceWithPolygon:(SFPolygon *)polygon;

    Parameters

    polygon

    polygon

    Return Value

    new polyhedral surface

  • Create

    Declaration

    Objective-C

    + (SFPolyhedralSurface *)polyhedralSurfaceWithPolyhedralSurface:
        (SFPolyhedralSurface *)polyhedralSurface;

    Parameters

    polyhedralSurface

    polyhedral surface

    Return Value

    new polyhedral surface

  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new polyhedral surface

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

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithPolygons:(NSMutableArray<SFPolygon *> *)polygons;

    Swift

    init!(polygons: NSMutableArray!)

    Parameters

    polygons

    list of polygons

    Return Value

    new polyhedral surface

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithPolygon:(SFPolygon *)polygon;

    Swift

    init!(polygon: SFPolygon!)

    Parameters

    polygon

    polygon

    Return Value

    new polyhedral 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 polyhedral surface

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithPolyhedralSurface:
        (SFPolyhedralSurface *)polyhedralSurface;

    Swift

    init!(polyhedralSurface: SFPolyhedralSurface!)

    Parameters

    polyhedralSurface

    polyhedral surface

    Return Value

    new polyhedral surface

  • Get patches

    Declaration

    Objective-C

    - (NSMutableArray<SFPolygon *> *)patches;

    Swift

    func patches() -> NSMutableArray!

    Return Value

    patches

  • Set patches

    Declaration

    Objective-C

    - (void)setPatches:(NSMutableArray<SFPolygon *> *)patches;

    Swift

    func setPatches(_ patches: NSMutableArray!)

    Parameters

    patches

    patches

  • Add a polygon

    Declaration

    Objective-C

    - (void)addPolygon:(SFPolygon *)polygon;

    Swift

    func addPolygon(_ polygon: SFPolygon!)

    Parameters

    polygon

    polygon

  • Add patch

    Declaration

    Objective-C

    - (void)addPatch:(SFPolygon *)patch;

    Swift

    func addPatch(_ patch: SFPolygon!)

    Parameters

    patch

    patch

  • Add polygons

    Declaration

    Objective-C

    - (void)addPolygons:(NSArray<SFPolygon *> *)polygons;

    Swift

    func addPolygons(_ polygons: [SFPolygon]!)

    Parameters

    polygons

    polygons

  • Add patches

    Declaration

    Objective-C

    - (void)addPatches:(NSArray<SFPolygon *> *)patches;

    Swift

    func addPatches(_ patches: [SFPolygon]!)

    Parameters

    patches

    patches

  • Get the number of polygons

    Declaration

    Objective-C

    - (int)numPolygons;

    Swift

    func numPolygons() -> Int32

    Return Value

    polygon count

  • Get the number of patches

    Declaration

    Objective-C

    - (int)numPatches;

    Swift

    func numPatches() -> Int32

    Return Value

    patch count

  • Get the Nth polygon

    Declaration

    Objective-C

    - (SFPolygon *)polygonAtIndex:(int)n;

    Swift

    func polygon(at n: Int32) -> SFPolygon!

    Parameters

    n

    nth polygon to return

    Return Value

    polygon

  • Get the Nth polygon patch

    Declaration

    Objective-C

    - (SFPolygon *)patchAtIndex:(int)n;

    Swift

    func patch(at n: Int32) -> SFPolygon!

    Parameters

    n

    nth polygon patch to return

    Return Value

    polygon patch