• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D ManifoldLab Plug-ins Collection v
« Previous 1 … 3 4 5 6 7
Shape Extruder?

 
  • 0 Vote(s) - 0 Average
Shape Extruder?

ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#10
12-18-2012, 05:52 PM (This post was last modified: 12-18-2012, 06:36 PM by ggaliens.)
What is likely wrong with my attempt to follow the pattern Optigon ?

Code:
command({shape, {manifoldlab, {shape_extruder, { _ , Shape }}}}, _St) ->          
    Cmd = {shape, {manifoldlab, {shape_extruder_next, { ignored , Shape }}}},
    io:format("AA\n", []),
    erlang:display("Shape = "),
    erlang:display(Shape),

    Qs = makeDialog("Knot1"),
    io:format("BB\n", []),
    wings_ask:dialog_preview(Cmd, true, "Extruder !", Qs, _St);
    
    
command({shape, {manifoldlab, {shape_extruder_next, { _ , Shape }}}}, _St) ->          
    make_sel_extrusion(atom_to_list(Shape), _St, dialog, true);

Gets me a crash dump like this ...
Code:
Version: 1.5.0.2012-12-15---14-17.mlab
Window: geom
Reason: function_clause

Short stack trace:
[{wings_shapes,command,2},
{wings,command_1,2},
{wings_develop,time_command,2},
{wings,raw_command,4},
{wings_wm,handle_event,3},
{wings_wm,send_event,2},
{wings_wm,do_dispatch,2},
{wings_wm,get_and_dispatch,0}]

Long stack trace:
[{wings_shapes,command,
     [{{manifoldlab,{shape_extruder_next,{ignored,'Snake'}}},
       [{{x,text},"2*(cos(T)-2 * cos(2*T))"},
        {{z,text},"2*(sin(T)+2 * sin(2*T))"},
        {{y,text},"2*(sin(3*T))"},
        {{h,text},"0.4"},
        {{red,text},"(0.95*(1-(abs(cos(T*5))))+0.2*(abs(cos(T*5))))"},
        {{green,text},"(0.95*(1-(abs(cos(T*5))))+0.60*(abs(cos(T*5))))"},
        {{blue,text},"(0.2*(1-(abs(cos(T*5))))+0.2*(abs(cos(T*5))))"},
        {{ngon,integer},"8"},
        {{sect,text},"profiles/none.cfg"},
        {{min,float},"0.500000"},
        {{max,integer},"358"},
        {{head2tail,integer},"3"},
        {{step,integer},"2"},
        {revert,false}]},
      {st,{0,nil},
          face,true,[],
          {0,nil},
          none,

Forget about it Optigon. I see what I did wrong !

OK ... followed the pattern and I thing I have hit paydirt. Seems to work.

Thank you so much for preview dialog. I will be deleting so much crappy shape extruder code that
was in lieu of a proper preview dialog. LOL.

WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE !
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Shape Extruder? - by optigon - 12-04-2012, 03:00 AM
Yes ... it is still around. - by ggaliens - 12-04-2012, 04:02 AM
RE: Shape Extruder? - by optigon - 12-04-2012, 05:33 AM
I think that would be nery nice feature. - by ggaliens - 12-04-2012, 01:59 PM
RE: Shape Extruder? - by ggaliens - 12-09-2012, 03:39 PM
RE: Shape Extruder? - by optigon - 12-11-2012, 06:46 PM
Sure ... change hooks. - by ggaliens - 12-11-2012, 06:56 PM
RE: Shape Extruder? - by optigon - 12-11-2012, 07:35 PM
RE: Shape Extruder? - by ggaliens - 12-11-2012, 10:13 PM
RE: Shape Extruder? - by ggaliens - 12-18-2012, 05:52 PM
RE: Shape Extruder? - by ggaliens - 12-18-2012, 08:09 PM
RE: Shape Extruder? - by puzzledpaul - 12-19-2012, 09:06 AM
RE: Shape Extruder? - by oort - 12-19-2012, 03:30 PM
RE: Shape Extruder? - by ggaliens - 12-19-2012, 04:17 PM
RE: Shape Extruder? - by micheus - 12-19-2012, 05:32 PM
RE: Shape Extruder? - by ggaliens - 12-19-2012, 05:48 PM
PP ... I did fix the Cube menu item problem. - by ggaliens - 12-19-2012, 07:18 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode