#VRML V2.0 utf8

# This file is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

EXTERNPROTO SuperEllipsoid
  [
  field SFBool bottom
  field SFBool ccw
  field SFFloat creaseAngle
  field SFBool solid
  field SFBool top
  exposedField SFFloat n1
  exposedField SFFloat n2
  exposedField SFFloat border
  exposedField SFFloat bottomBorder
  exposedField SFVec3f size
  exposedField SFNode texCoord
  exposedField SFInt32 uTessellation
  exposedField SFInt32 vTessellation
  ]

    [
    "SuperEllipsoidPROTO.wrl"
    "http://129.69.35.12/dune/docs/scripted_Nodes/SuperEllipsoidPROTO.wrl"
    ]


Transform 
  {
  children Shape 
      {
      appearance Appearance 
	{
	material Material 
	  {
	  }
	}
      geometry DEF SuperEllipsoid1 SuperEllipsoid 
	{
	n1 0.719579
	border 1.390412
	bottom TRUE
	bottomBorder -1.454835
	top TRUE
	uTessellation 16
	vTessellation 16
	}
      }
  rotation -0.491309 -0.860261 -0.136252 0.623705
  }

DEF TimeSensor1 TimeSensor 
  {
  cycleInterval 20
  loop TRUE
  }

DEF ScalarInterpolator1 ScalarInterpolator 
  {
  key 
    [
    0 
    0.299594 
    0.703103 
    0.997300 
    ]
  keyValue 
    [
    1 
    1 
    5.485162e-2 
    1 
    ]
  }

ROUTE TimeSensor1.fraction_changed TO ScalarInterpolator1.set_fraction
ROUTE ScalarInterpolator1.value_changed TO SuperEllipsoid1.set_n2

Viewpoint 
  {
  position 0 0 5
  }

DEF ScalarInterpolator2 ScalarInterpolator 
  {
  key 
    [
    0 
    0.175438 
    0.294196 
    0.500000 
    0.623480 
    0.829958 
    0.994601 
    ]
  keyValue 
    [
    2.999999e-2 
    0.968944 
    0.186333 
    1 
    2.484470e-2 
    4.347826e-2 
    0.975153 
    ]
  }

ROUTE TimeSensor1.fraction_changed TO ScalarInterpolator2.set_fraction
ROUTE ScalarInterpolator2.value_changed TO SuperEllipsoid1.set_n1

DEF ScalarInterpolator3 ScalarInterpolator 
  {
  key 
    [
    0 
    1 
    ]
  keyValue 
    [
    1.570796 
    0.170796 
    ]
  }

ROUTE TimeSensor1.fraction_changed TO ScalarInterpolator3.set_fraction
ROUTE ScalarInterpolator3.value_changed TO SuperEllipsoid1.set_border

DEF ScalarInterpolator4 ScalarInterpolator 
  {
  key 
    [
    0 
    1 
    ]
  keyValue 
    [
    -1.570796 
    -0.670795 
    ]
  }

ROUTE TimeSensor1.fraction_changed TO ScalarInterpolator4.set_fraction
ROUTE ScalarInterpolator4.value_changed TO SuperEllipsoid1.set_bottomBorder

