Wings 3D Development Forum

Full Version: Volume & Area Tool [SOLVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it just the master or is the volume & area tool broken?
I'm not getting results I would expect.
Micheus, is this fixed?
I noticed you addressed this in the old forum.
Optigon ... I have patched this up locally. Can't recall if I did a GITHUB push or not.

As I recall ... the problem was not with the calculations so much as the io tools used to do the reporting.

This is from my wings.erl file in function get_object_info.


Code:
ToString = fun(Item) ->
    case Item of
        Item when is_float(Item) ->
        lists:flatten(hd(io_lib:format("~.4f", [Item])));
        Item when is_integer(Item) ->
        integer_to_list(Item);
        Item when is_list(Item) ->
        Item
    end
    end,
Here it seems to be working. At picture three cubes, two of them scaled uniform to -100% and less, via TAB key. Those ones with negative volume are indicated at that window. There isnt a command to select objects by negative volume.

[Image: wingsvolume.jpg]

Uploaded with ImageShack.us
(11-25-2012, 03:22 PM)optigon Wrote: [ -> ]Micheus, is this fixed?
I noticed you addressed this in the old forum.
Yeah. I supposedly fixed it. Smile
(11-27-2012, 04:41 PM)micheus Wrote: [ -> ]
(11-25-2012, 03:22 PM)optigon Wrote: [ -> ]Micheus, is this fixed?
I noticed you addressed this in the old forum.
Yeah. I supposedly fixed it. Smile

Was it added to the master?
It's one of my pull requests (Some new bug fixes for wings 1.4.1) - still not approved by dgud.
(11-27-2012, 04:58 PM)micheus Wrote: [ -> ]It's one of my pull requests (Some new bug fixes for wings 1.4.1) - still not approved by dgud.

I'll take a look and see if I can recommend this to Dan.