SFPolyhedralSurface
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)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
-
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