押し出し回転体 lathe

 押し出し回転体(lathe,柱)は,一つ以上の2次元の閉じた曲線を軸に沿ってスウィープすることにより生成されるオブジェクトです。これらの曲線は線形,2次および3次スプラインで結ばれる点の集合で定義されます。
lathe {  //押し出し回転体
  [ linear_spline | quadratic_spline | cubic_spline ]
  点の数,
  <点_1>, <点_2>,..., <点_n>
  [ sturm ]
}  


lathe {

  linear_spline

  12,

  <2, 1>, <2, -1>, <3, -1>,

  <3.4, -2>, <4, -1.1>, <3.6, -0.9>,

  <2.6, 0>,<3.6.9>, <4, 1.1>,

  <3.4, 2>, <3, 1>, <2, 1> 

}

lathe {

  cubic_spline

  12,

  <0.000000, 0.000000>,

  <0.000000, 0.000000>,

  <0.277027, 0.000000>,

  <0.277027, 0.000000>,

  <0.064189, 0.081081>,

  <0.057432, 0.256757>,

  <0.260135, 0.422297>,

  <0.152027, 1.000000>,

  <0.128378, 0.996622>,

  <0.222973, 0.452703>,

  <0.000000, 0.307432>,

  <0.023649, 0.523649>

}

lathe {

  cubic_spline

  13,

  <0.000000, 0.000000>,

  <0.000000, 0.000000>,

  <0.172414, 0.013793>,

  <0.203448, 0.096552>,

  <0.210345, 0.203448>,

  <0.210345, 0.634483>,

  <0.210345, 1.000000>,

  <0.196552, 1.000000>,

  <0.193103, 0.651724>,

  <0.182759, 0.206897>,

  <0.151724, 0.096552>,

  <0.000000, 0.065517>,

  <0.000000, 0.065517>

}

lathe {

  cubic_spline

  13,

  <0.000000, 0.000000>,

  <0.000000, 0.000000>,

  <0.193050, 0.003861>,

  <0.193050, 0.019305>,

  <0.073359, 0.038610>,

  <0.027027, 0.135135>,

  <0.023166, 0.559846>,

  <0.100386, 0.679537>,

  <0.359073, 0.996139>,

  <0.335907, 1.000000>,

  <0.096525, 0.725869>,

  <0.000000, 0.691120>,

  <0.000000, 0.691120>

}

lathe {

  cubic_spline

  12,

  <0.000000, 0.000000>,

  <0.000000, 0.000000>,

  <0.460606, 0.036364>,

  <0.515152, 0.303030>,

  <0.157576, 0.660606>,

  <0.248485, 1.000000>,

  <0.230303, 1.000000>,

  <0.139394, 0.660606>,

  <0.496970, 0.296970>,

  <0.448485, 0.054545>,

  <0.000000, 0.018182>,

  <0.000000, 0.018182>

}