UNPKG

@animech-public/playcanvas

Version:
2 lines (1 loc) 403 B
import{SphereGeometry as t}from"./sphere-geometry.js";class s extends t{constructor(t={}){var s,n;const e=.5;super({radius:e,latitudeBands:null!=(s=t.latitudeBands)?s:16,longitudeBands:null!=(n=t.longitudeBands)?n:16});const o=this.positions;for(let t=0;t<o.length;t+=3){const s=o[t]/e;let n=o[t+1]/e;const l=o[t+2]/e;n<0&&(n*=.3,s*s+l*l<.9025&&(n=-.1)),n+=.1,n*=e,o[t+1]=n}}}export{s as DomeGeometry};