Wings 3D Development Forum
Still having lots of trouble with this routine. - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6)
+--- Thread: Still having lots of trouble with this routine. (/showthread.php?tid=530)



Still having lots of trouble with this routine. - ggaliens - 12-29-2013

Still having lots of trouble with this routine. (wings_we_build)
Even though I'm trying to pre-clean the data a big before
sending. I wish I knew what the requirements were.

Code:
1> wpc_ml_tetgen_cell:command/3: bad return value: {'EXIT',
                                                 {function_clause,
                                                  [{wings_we_build,
                                                    combine_half_edges,
                                                    [[{{0,1},
                                                       [{left,
                                                         {3,none,
                                                          {1,...},
                                                          {...}}},
                                                        {left,
                                                         {7,none,{...},...}}]},
                                                      {{0,2},
                                                       [{left,
                                                         {10,none,{...},...}},
                                                        {right,{3,none,...}}]},
                                                      {{0,13},
                                                       [{right,{7,none,...}},
                                                        {right,{10,...}}]},
                                                      {{1,3},
                                                       [{left,{7,...}},
                                                        {right,{...}}]},
                                                      {{1,5},
                                                       [{left,{...}},
                                                        {left,...}]},
                                                      {{2,4},
                                                       [{left,...},{...}]},
                                                      {{2,7},[{...}|...]},
                                                      {{3,...},[...]},
                                                      {{...},...},
                                                      {...}|...],
                                                     [],[]]},
                                                   {wings_we_build,
                                                    eliminate_shared_vertices,
                                                    3},
                                                   {wings_we_build,
                                                    build_etab,3},
                                                   {wings_we_build,we,3},
                                                   {wings_we,build,2},
                                                   {wpc_ml_tetgen_cell,
                                                    '-readCellRegions_1/4-fun-2-',
                                                    4},
                                                   {lists,foldl,3},
                                                   {wpc_ml_tetgen_cell,
                                                    readCellRegions_1,4}]}}

I think it can handle unused vertices in the Pts list so long as the proper indexes are used in the Fs (faces).

But ... it does not seem to like inconsistent order of verts. I wrote a consistency checker/flipper for the Fs faces ... but still get the error.

In the past ... because of this problem ... I often export OBJ and then import OBJ rather than doing it all with the we builder routines. This is causing me fits. Any ideas would be appreciated.