message: viewer: Fixed ellipse conversion
diff: import * as THREE from 'three'
  -import { NURBSCurve } from 'three/examples/jsm/curves/NURBSCurve'
  import { BufferGeometryUtils } from 'three/examples/jsm/utils/BufferGeometryUtils'
  import ObjectWrapper from './ObjectWrapper'
  import { getConversionFactor } from './Units'
  @@ -29,7 +28,6 @@ export default class Coverter {
  async traverseAndConvert( obj, callback ) {
  // Exit on primitives (string, ints, bools, bigints, etc.)
  if ( typeof obj !== 'object' ) return
  -
  if ( obj.referencedId ) obj = await this.resolveReference( obj )
  let childrenConversionPromisses = []
  @@ -411,19 +409,21 @@ export default class Coverter {
  }
  async EllipseToBufferGeometry( obj ) {
  + const conversionFactor = getConversionFactor( obj.units )
  +
  + const center = new THREE.Vector3( obj.plane.origin.x ,obj.plane.origin.y ,obj.plane.origin.z ).multiplyScalar( conversionFactor )
  + const xAxis = new THREE.Vector3( obj.plane.xdir.x,obj.plane.xdir.y,obj.plane.xdir.z ).normalize()
  + const yAxis = new THREE.Vector3( obj.plane.ydir.x ,obj.plane.ydir.y,obj.plane.ydir.z ).normalize()
  - const center = new THREE.Vector3( obj.plane.origin.value[0],obj.plane.origin.value[1],obj.plane.origin.value[2] )
  - const xAxis = new THREE.Vector3( obj.plane.xdir.value[0],obj.plane.xdir.value[1],obj.plane.xdir.value[2] )
  - const yAxis = new THREE.Vector3( obj.plane.ydir.value[0],obj.plane.ydir.value[1],obj.plane.ydir.value[2] )
  - let resolution = 2 * Math.PI * obj.radius1 / 0.1
  + let resolution = 2 * Math.PI * obj.firstRadius * conversionFactor
  resolution = parseInt( resolution.toString() )
  let points = []
  for ( let index = 0; index <= resolution; index++ ) {
  let t = index * Math.PI * 2 / resolution
  - let x = Math.cos( t ) * obj.radius1
  - let y = Math.sin( t ) * obj.radius2
  + let x = Math.cos( t ) * obj.firstRadius * conversionFactor
  + let y = Math.sin( t ) * obj.secondRadius * conversionFactor
  const xMove = new THREE.Vector3( xAxis.x * x, xAxis.y * x, xAxis.z * x )
  const yMove = new THREE.Vector3( yAxis.x * y, yAxis.y * y, yAxis.z * y )
  @@ -435,6 +435,7 @@ export default class Coverter {
  delete obj.value
  delete obj.speckle_type
  + delete obj.plane
  return new ObjectWrapper( geometry, obj, 'line' )
  }
  