Editing FJ data with OBJ editor

=PURPOSRE=
 * Establish the flow of editing published OBJ files and upload with backstage editor
 * When FJ contour needs further modification independent from the global context, we want to edit them on the distributed environment, such as users PC.

Trial with Sketchup
インポート時に単位を聞いてくれるので安心. インポート後減点に落としてあげればそれでいい. 結論は　FLUIDを使うとインポートできてもソリッドとして認められないので演算できない　中止！ v -21.147810 -94.215500 1415.225586 v -21.266537 -95.805710 1414.978394
 * Features: intuitive and useful public data library available, free plug-ins for obj importer, Pro version exports OBJ,
 * FluidImporter: http://www.filecluster.com/downloads/FluidImporter-for-SketchUp.html
 * 手順　template millimeter >> fluid import >> origin select >> export as obj millimeter
 * Sketchup Export 機能は有料版には標準装備 thyroid をimportすると座標もちゃんとマイナス　マイナス　プラス　になっている.
 * 相対軸のオブジェクトになっているせいか　solid と認められないので演算できない.
 * 1) OBJ file output from Freeform Plus
 * 2) 5346 vertices
 * 3) 10688 triangles
 * 4) 1 pieces



Ruby plug-in

 * TIG importer を使うとsolid と認識
 * TIG importer は単位を聞かず黙って　inchとして輸入　( inch 単位として輸出すれば数値は変わらない）
 * Volume と認識してくれる　原点はちゃんとわかってる


 * 円柱２つを重ねて分割すると３つとも体積すぐ表示
 * 甲状腺に円柱かさねると　どれも体積わからない　なぜか？？　桁数がおおきすぎてあふれてる？？
 * 演算前には二つの図形ともソリッドであることがわかってるが　演算後にソリッドでなくなっている　ので　メモリの問題のような.

= HOW TO DIVIDE BodyParts OBJ = I Use obj importer.rb by TIG [perhaps >> 1 minute per Mb ?]Sometimes very complex OBJ shapes don't receive their textures at all. Some OBJ files have tiny numbers: then faces might not be created: if so, retry with larger 'units', you can scale group(s) down afterwards. Some OBJ files have tiny face planar discrepancies: then some faces might get triangulated to compensate: if so, retry with smaller 'units' and scale group(s) up afterwards. Some complex files might need a bit of manual healing: they can also have erroneous vertices - so it's recommended you use 'Fix Problems' accessed from the 'Model Info > Statistics' dialog - especially if the result takes a long time to process or have divided faces forced to form geometry or if it feels jittery when orbiting around the model etc... Some complex files with excessive smoothing etc might fail to import.View textured results in 'Monochrome' to see any reversed faces... Use:1. Menu > Plugins > OBJ Importer > Import OBJ [with Textures]2. > Import OBJ [no Materials]3. > Import OBJ [as Mesh]Option 1. Imports faces with mapped textures.Option 2. Imports faces without materials [but materials added to model].Option 3. Imports a mesh without materials [but materials added to model]. Open the Ruby Console before running to see additional reporting...Version: 1.0 20090714 First release. 1.1 20090715 Existing Materials re-used/make variant option added. Swap Y & Z axes ? Yes/No, option added. 1.2 20090723 Name changed to 'obj_importer.rb' / 'Import OBJ' Proper UV texture mapping added. Added dialog geometry & texture mapping Units. 1.3 20090728 Submenu added with '..no Materials' and '...as Mesh' options. Material/usemtl duplicated entries trapped. Failure to import geometry - warning message added. Scaling errors corrected. Model.start_action...commit_action removed as it was causing errors on complex files. 1.4 20100406 Different format obj file text now accepted. 1.5 20100816 Missing group in obj trapped [with "g OBJ"]. 1.6 20100825 Negative face indices allowed. 1.7 20100825 Fill from mesh changes. 1.8 20100825 Trapped for spaces in image-names/paths. 1.9 20110223 Errors with occasional reversed faces resolved.###obj_importer.rb
 * Use skechup Boolean operation between SOLIDS.
 * Import obj files downloaded from Editor site.
 * IT CAN TAKE A _L_O_N_G_ TIME TO LOAD A BIG OBJ FILE WITH PERHAPS MANY THOUSANDS OF FACES ***


 * 1) Import as obj (it imports assuming that numbers are in inches)
 * 2) Make group
 * 3) Check volume
 * 4) generate and Apply cutting objects  (use guide points to make adjacent but apart )
 * 5) Decide by Boolean
 * 6) Remove cutting object
 * 7) Save
 * 8) Remove other than one
 * 9) select cutting plane still smooth and reverse the face.
 * 10) Export as obj. with unit of Inches to conserve the values


 * 立体は点をグループにすると生成される
 * 立体演算はソリッド（プロパティで体積表現あり）の間で可能
 * 組み合わせてからでも　グループを編集　コマンドで変形可能　（簡単な図形で実証）