UNPKG

@bezlepkin/nativescript-ar

Version:

NativeScript Augmented Reality plugin. ARKit on iOS and (with the help of Sceneform) ARCore on Android.

15 lines (14 loc) 554 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ARSphere = void 0; const arcommongeometry_1 = require("./arcommongeometry"); class ARSphere extends arcommongeometry_1.ARCommonGeometryNode { static create(options, renderer) { const sphere = SCNSphere.sphereWithRadius(options.radius); if (options.segmentCount) { sphere.segmentCount = options.segmentCount; } return new ARSphere(options, SCNNode.nodeWithGeometry(sphere), renderer); } } exports.ARSphere = ARSphere;