import { BufferGeometry , BufferAttribute , LineBasicMaterial , LineSegments } from "three" ; import pointArr from "../data/world" ; import { countryLineColor } from "../config/index" ; function countryLine ( R ) { var geometry = new BufferGeometry ( ) ; var vertices = new Float32Array ( pointArr ) ; var attribute = new BufferAttribute ( vertices , 3 ) ; geometry . attributes . position = attribute ; var material = new LineBasicMaterial ( { color : countryLineColor , } ) ; var line = new LineSegments ( geometry , material ) ; line . scale . set ( R , R , R ) ; return line ; } export { countryLine } ;