-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds SCMeshingOperation, which allows you to create a connected mes…
…h from a point cloud - Fixes point cloud normals being flipped
- Loading branch information
Aaron Thompson
committed
Feb 22, 2019
1 parent
4329000
commit d0480d8
Showing
6 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
StandardCyborgFusion/StandardCyborgFusion.framework/Headers/SCMeshingOperation.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// | ||
// SCMeshingOperation.h | ||
// StandardCyborgFusion | ||
// | ||
// Copyright © 2019 Standard Cyborg. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
extern NSString * const SCMeshingAPIErrorDomain; | ||
|
||
/** | ||
Error codes within SCMeshingAPIErrorDomain | ||
These are only reported for Standard Cyborg API usage | ||
*/ | ||
typedef NS_ENUM(NSUInteger, SCMeshingAPIError) { | ||
SCMeshingAPIErrorInvalidAPIKey = 1, | ||
SCMeshingAPIErrorExceededMeshingCountLimit = 2 | ||
}; | ||
|
||
|
||
@interface SCMeshingOperation : NSOperation | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
- (instancetype)initWithInputPLYPath:(NSString *)inputPath | ||
outputPLYPath:(NSString *)outputPath; | ||
|
||
/** | ||
Set this to be informed about the progress of the meshing operation. | ||
@param progress From 0.0-1.0 | ||
*/ | ||
@property (nonatomic, copy) void (^progressHandler)(float progress); | ||
|
||
/** | ||
If non-nil, the error that occurred when performing this operation. | ||
*/ | ||
@property (nonatomic, nullable) NSError *error; | ||
|
||
#pragma mark - Tuning parameters | ||
|
||
/** | ||
The resolution of the reconstructed mesh vertices. | ||
Higher values will result in more vertices per meshes, | ||
and also take longer to reconstruct. | ||
Range is 1-10, default is 5. | ||
*/ | ||
@property (nonatomic) int resolution; | ||
|
||
/** | ||
The smoothness of the reconstructed mesh vertex positions. | ||
Range is 1-10, default is 2. | ||
*/ | ||
@property (nonatomic) int smoothness; | ||
|
||
/** | ||
The amount of surface trimming for low-density mesh regions. | ||
Range is 0-10, default is 5. Higher numbers trim more away. | ||
0 = don't trim. | ||
*/ | ||
@property (nonatomic) int surfaceTrimmingAmount; | ||
|
||
/** | ||
If YES, attempts to build a closed mesh. Defaults to YES. | ||
*/ | ||
@property (nonatomic) BOOL closed; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3 Bytes
(100%)
StandardCyborgFusion/StandardCyborgFusion.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
+5.33 MB
(310%)
StandardCyborgFusion/StandardCyborgFusion.framework/StandardCyborgFusion
Binary file not shown.
Binary file modified
BIN
+94.4 KB
(410%)
StandardCyborgFusion/StandardCyborgFusion.framework/default.metallib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters