Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Geodesic Distance mesh coloring (seeking)
04-29-2016, 12:06 AM
Post: #1
Geodesic Distance mesh coloring (seeking)
Geodesic Distance mesh coloring (seeking)

MeshLab has it ... but does not appear to cycle colors with given frequency. Can anyone help me find a free app that does this kind of coloring soup-to-nuts ?

I'm trying to add it to ManifoldLab. I'm going to add it as built in ... coded in Erlang.
Reply
04-29-2016, 12:13 AM
Post: #2
RE: Geodesic Distance mesh coloring (seeking)
I think this should help
http://blenderartists.org/forum/showthre...n-Surfaces
Reply
04-29-2016, 12:33 AM
Post: #3
RE: Geodesic Distance mesh coloring (seeking)
cyseal ...

Geodesic distance gets particularly interesting to me (and others) when you try to use it to instantiate concentric distance loops on the surface. I watched this guys video ... and he didn't go there. I think it's the hard part ... because of aliasing and such. Do you understand what I'm getting at ?
Reply
04-29-2016, 12:47 AM
Post: #4
RE: Geodesic Distance mesh coloring (seeking)
Could you explain a bit more? I need to explain to myself in mathematical terms if I'm going to understand problem completely.
Maybe this?
https://www.ceremade.dauphine.fr/~peyre/...d/tp3.html

Also, could you explain what does it mean 'cycling colors with given frequency' ?
Reply
04-29-2016, 02:16 AM (This post was last modified: 04-29-2016 02:19 AM by ggaliens.)
Post: #5
RE: Geodesic Distance mesh coloring (seeking)
Cycling colors would just mean repeating the rainbow more times over a given surface distance. More banding.

In my mind ... this probably means increasing the resolution of the underlaying mesh so that we have more discrete places to put rainbow bands. If were are both nativeEenglish speakers ... we need to stick to words and metaphors like RAINBOW and repeat. But is you really like code ... I can just send you the code snippet ... since it is very short.

Code:
command({vertex,{manifoldlab,topo_bullseye}}, #st{sel=[{WeID,_}]}=St) ->
    Qs =
      [ {label, "Topological Units to run ... "},
        {text, 36,   [{width,10},{key,units},{range,{0, 720}}]},
        separator,
        {label, "Every 18 units is a rainbow cycle"}
      ],

    wings_dialog:dialog("Rainbow Please ... ", Qs,
        fun(Res) ->
            {units,Units}  = lists:keyfind(units, 1, Res ),
            #we{} = We = gb_trees:get(WeID, St#st.shapes),
            MyAcc = fun(Idx,#st{sel=[{WeID,AccSet}]}=AccSt) ->
                Idx2 = Idx rem 18,
                #st{sel=[{WeID,SetMore}]} = wings_sel_conv:more(AccSt),
                SetNow = gb_sets:subtract(SetMore,AccSet),
                H = Idx2 * 20.0,
                S = 0.999,      %% we are just throwing down rainbow colors ...
                V = 0.999,
                RGB = wings_color:hsv_to_rgb({H,S,V}),
                AccSt2 = wings_vertex_cmd:set_color(RGB,AccSt#st{sel=[{WeID,SetNow}]}),
                AccSt2#st{sel=[{WeID,SetMore}]}
            end,
            case Units of
                    0 -> Polycount = length(array:sparse_to_orddict(We#we.vp)),
                         Count = round(math:sqrt(Polycount*1.0));
                    _ -> Count = Units
            end,
            lists:foldl(MyAcc, St, lists:seq(0,Count))
        end);
Reply
04-29-2016, 03:58 AM
Post: #6
RE: Geodesic Distance mesh coloring (seeking)


Reply
04-30-2016, 06:44 AM (This post was last modified: 04-30-2016 06:44 AM by ggaliens.)
Post: #7
RE: Geodesic Distance mesh coloring (seeking)


Reply
05-05-2016, 01:28 AM
Post: #8
RE: Geodesic Distance mesh coloring (seeking)
Cleaned up the process a little.



Reply
05-05-2016, 02:42 AM
Post: #9
RE: Geodesic Distance mesh coloring (seeking)
It seems that this thing can be used for creating new topology on objects too. Imagine that instead of the displacement circles around the body, you create simple edge loops. If such a thing can be achieved then remains finding a way of creating the vertical lines-edges.

It is something worth thinking...
Reply
05-05-2016, 03:05 AM
Post: #10
RE: Geodesic Distance mesh coloring (seeking)
Too much work to do retopo this way. This is just BOOLEAN of two objects making the cleaner lines. That's all. If you want to repurpose those new lines somehow ... have at it. Seems hard to do.
Reply


Forum Jump:


User(s) browsing this thread: 1 Guest(s)