This is Spline script that create spline from child polygon object. For using, place script .js file into ~/Library/Application Support/Cheetah3D/scripts/Splineobj folder.
This is combined version Poly2Spline.js and Edge2Spline.js with adding new option 'margin'. you can create wired object from polygon object easily.
you can create longer spline than original Point with negative 'margin' value. please try it.
Update 20090215: spline connected by selected polygon winding. to use this option, choose polygon based at create type parameter.
Update 20101117: fixed error with Cheetah3D 5.5+
Update 20110202: fixed normalize func error with Cheetah3D 5.5+
Update 20140805: added 'connect' option for connecting edges share same points.
ポリゴンオブジェクトのエッジから、スプラインを生成するスプラインスクリプトです。~/Library/Application Support/Cheetah3D/scripts/Splineobj フォルダーにコピーして下さい。
以前から公開している、Poly2Spline.js / Edge2Spline.js を統合したものに、余白オプションを追加しています。
Update 20090215: ポリゴンの面に沿ってスプラインを生成するオプションを追加。( create type で polygon based を選択して下さい。 )
Update 20101117: Cheetah3D 5.5+ でエラーが発生する問題を修正しました
Update 20110202: Cheetah3D 5.5+ で normalize 関数のエラーが発生する問題を修正しました
Update 20140805: connect オプションを追加。スプラインを連結します。
Update 20140806: connect オプションのバグを修正。子オブジェクトのモディファイアを適用したメッシュを使用するかどうかのオプションを追加。
This is Spline script that create spline from child polygon object. For using, place script .js file into ~/Library/Application Support/Cheetah3D/scripts/Splineobj folder.
This is combined version Poly2Spline.js and Edge2Spline.js with adding new option 'margin'. you can create wired object from polygon object easily.
you can create longer spline than original Point with negative 'margin' value. please try it.
Update 20090215: spline connected by selected polygon winding. to use this option, choose polygon based at create type parameter.
Update 20101117: fixed error with Cheetah3D 5.5+
Update 20110202: fixed normalize func error with Cheetah3D 5.5+
Update 20140805: added 'connect' option for connecting edges share same points.
Update 20140806: fixed 'connect' option bug. added 'use modified child' option.
Polygon2Spline.js_20140806b.zip ( application/zip : 4 KB)
MD5 : 19d1233f40de4001045a6f2688134380