nativescript-ar
Version:
NativeScript Augmented Reality plugin. ARKit on iOS and (with the help of Sceneform) ARCore on Android.
19 lines (18 loc) • 711 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var arcommongeometry_1 = require("./arcommongeometry");
var ARSphere = (function (_super) {
__extends(ARSphere, _super);
function ARSphere() {
return _super !== null && _super.apply(this, arguments) || this;
}
ARSphere.create = function (options, renderer) {
var sphere = SCNSphere.sphereWithRadius(options.radius);
if (options.segmentCount) {
sphere.segmentCount = options.segmentCount;
}
return new ARSphere(options, SCNNode.nodeWithGeometry(sphere), renderer);
};
return ARSphere;
}(arcommongeometry_1.ARCommonGeometryNode));
exports.ARSphere = ARSphere;