Wings 3D Development Forum

Full Version: [fixed] information display for two edges
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The information text in the upper left corner of the window seems to be wrong when 2 edges are selected. The third line, I believe, is supposed to show the length of the two edges and the difference between them, but it is always same length for both edges and the difference is always 0.0.

Also, under wings v1, didn't this information text include the angle between the two edges?
(09-03-2018 09:19 PM)rv3 Wrote: [ -> ]The information text in the upper left corner of the window seems to be wrong when 2 edges are selected. The third line, I believe, is supposed to show the length of the two edges and the difference between them, but it is always same length for both edges and the difference is always 0.0.
Third line when Tweak is active.
Usually the length is shown only for one edge selected followed by its normalized coordinate, which thinking it as a triangle you can find the hypotenuse - the edge length.
Left is v1 and right the latest version

Quote:Also, under wings v1, didn't this information text include the angle between the two edges?
Yes. As we can see in the image above you are right about the missing angle.

Thanks for report.
Hmm, that's not what I see. I don't normally use tweak mode, but here's what I'm seeing:

[attachment=533]

I'm not at all fluent in erlang, but I think the following will fix things:

Code:
*** wings_info.erl.orig    Mon Sep  3 21:43:08 2018
--- wings_info.erl    Mon Sep  3 21:43:55 2018
***************
*** 173,179 ****
      Mid1 = e3d_vec:average(Pos1A, Pos1B),
      MidDiff = e3d_vec:sub(Mid1, Mid0),
      Dist = e3d_vec:len(MidDiff),
!     Diff = abs(Length0 - Length0),
      io_lib:format(?__(42,"\nDistance ~s")++"  ~s\n"++
                        ?__(43,"Object~s")++" "++?__(41,"Edge~s ~s")++"  "++
                        ?__(43,"Object~s")++" "++?__(41,"Edge~s ~s")++"  "++
--- 173,179 ----
      Mid1 = e3d_vec:average(Pos1A, Pos1B),
      MidDiff = e3d_vec:sub(Mid1, Mid0),
      Dist = e3d_vec:len(MidDiff),
!     Diff = abs(Length0 - Length1),
      io_lib:format(?__(42,"\nDistance ~s")++"  ~s\n"++
                        ?__(43,"Object~s")++" "++?__(41,"Edge~s ~s")++"  "++
                        ?__(43,"Object~s")++" "++?__(41,"Edge~s ~s")++"  "++
***************
*** 182,188 ****
                     wings_util:nice_abs_vector(MidDiff),
                     wings_util:stringify(Id0),
                     wings_util:stringify(E0),
!                    wings_util:nice_float(Length1),
                     wings_util:stringify(Id1),
                     wings_util:stringify(E1),
                     wings_util:nice_float(Length1),
--- 182,188 ----
                     wings_util:nice_abs_vector(MidDiff),
                     wings_util:stringify(Id0),
                     wings_util:stringify(E0),
!                    wings_util:nice_float(Length0),
                     wings_util:stringify(Id1),
                     wings_util:stringify(E1),
                     wings_util:nice_float(Length1),

(09-04-2018 01:48 AM)rv3 Wrote: [ -> ]Hmm, that's not what I see. I don't normally use tweak mode, but here's what I'm seeing
I found why the difference: my preferences was cleaned and I didn't have set the preferences option for General->Information Text_>Verbose. Smile

Quote:I'm not at all fluent in erlang, but I think the following will fix things:
Now I see what you see and you are right about the fix. Thanks.

You find the fix in the Fixes for v2.1.7 (Patches)
Reference URL's