Volume is wrong when reversed faces are present!
-
Make your own SKP with a 1m cube Group located at the Origin.
Copy that Group ~1000m away [Move+Ctrl].
Have your Model Info > Unit set to 'mm', with max 0000's etc...The Entity Info will report the volumes for the two slightly differently.
[v2015 Pro PC 64bit] -
@tig said:
...The Entity Info will report the volumes for the two slightly differently.
...Got it: 1000000000 mm³ vs 999999999,999898 mm³
The differences in SRX's original model were significantly larger (in percentage) due to bad geometry.
But yes, that doesn't mean these same two simple solids should report same volumes. -
Yes, I see it too. The size of the difference varies depending on how far away the copy is placed! This certainly looks like a finite-precision effect, but it also seems like a bug because (as already stated) the placement of an instance should be irrelevant when calculating position-independent quantities such as volume.
-
So 0.000 102 mm3 missing on 1 000 000 000 mm3 !
ps
And how many number are available before the numeric decimal point for landscape?
Seems lost precision and pedal : a number is added after
123456789012345680000.000000mm for 123456789012345678901mm or more ENTER
(tested on radius circle) -
Interesting discussion.
For info, I just publish a rudimentary version of a plugin, FredoTools::SolidVolume, which computes the volume of the solids in the current selection (solids as groups or component instances).
It gives the same result regardless of the orientation of faces in the solids and their position in the model.
For the time being, it just display a messagebox with the volume in various units.
I this is of interest I can later derive a more advanced version with choice of units and interactive selection, similar to what I did for areas with FredoTools::ReportLabelArea.Fredo
-
Cool!
And about the M2 surfaces faces?
No possibility to add this inside this one? -
Thank you Fredo! You are my hero! This should be incorporated in Sketchup 2016 to prevent people for making mistakes in calculations..In the meantime we have Fredo Sketchup.
-
@fredo6 said:
......I this is of interest I can later derive a more advanced version with choice of units and interactive selection, similar to what I did for areas with FredoTools::ReportLabelArea.Fredo
It would be nice to be able to make your own selection of multiple solids to obtain the sum of volumes. And with unit of choice! And without differences in volume due to location!
Although I do believe that solids with all back faces outwards should be considered as negative. (also see previous post by TIG).
A mixture of front and back faces in a single shell should result in a warning. -
I published SolidVolume 1.1, which handles also faces area of the solid and allow to navigate in the selection, manually or via the outliner. It also works when the selection includes several solids, either independent or embedded in groups / components.
Mixed back and front faces in a solid should give the same volume value as if all faces were correctly oriented outward.
Fredo
-
Excelent to have Volume + Surface ! Bravo!
If this bug(?) is proved maybe will be useful to apply a correction factor ?
Try also with this volume on the left!
-
Pilou,
On your model, it looks like Sketchup has a problem in computing the aggregate volume of the walls (41.5 m3) and the small cube (1 m3) when reversed. It counts the cube negatively, so the total is 40.5 m3. SolidVolume counts evrything positively, so the aggregate volume is 42.5 m3.
Fredo
-
And about big moving on the space does that change measures ?
-
Fredo6
Attached is a file with two boxes. One was created with sdmitch "Rotated Box" plugin, the other using the rectangle tool in Sketchup. Note there is a difference with your program showing the volume.
I can't see why the volumes would be this far off.
-
-
fredo6
Thanks that did the trick.
Ken
Note, volume isn't everything, I require the weight of a filled container. I have taken one of TIG's volume plugin and added the math to determine the weight of the volume; oil, water, buoyancy salt water, buoyancy fresh water, river mud, concrete, wet river gravel, and barrel of oil. Had a great time in the learning process of modifying a plugin.
fredo6, thanks for this plugin. And thank you TIG.
And not to highjack this thread, your movealong plugin is absolutely fantastic.
-
@unknownuser said:
Note, volume isn't everything, I require the weight of a filled container. I have taken one of TIG's volume plugin and added the math to determine the weight of the volume; oil, water, buoyancy salt water, buoyancy fresh water, river mud, concrete, wet river gravel, and barrel of oil. Had a great time in the learning process of modifying a plugin.
I can easily add an additional section to give the weight for a number of materials in several units.
Fredo
-
fredo6
Thank you for the offer, however I believe that would be a lot of work that wouldn't be of use to most Sketchup user. To give you an idea of my list:
Barrels of Oil (Note there is only 42 gallons)
lbs Steel (A36)
lbs SS304
lbs Brass
lbs Aluminum
lbs zinc
lbs Lead
lbs Gravel Wet
lbs River Mud
lbs Sand Water
FW buoyany 62.4 lbs/cuft - Fresh Water
SW buoyancy 64.1 lb/cuft - Salt Water
lbs Crude oilThis list has been modified or added to as required. So I don't see how a set list would cover all the variables. Now a user input section would be nice, if it held the variables between sessions. Still a lot of work for a very few.
On another note, if you look at the image, you will see that the bottom part of your form is not being displayed. Maybe the box should be a little taller.
-
The free fabulous Designspark Mechanical (SpaceClaim Light) has this inside its library as Volumic Mass
(my French Page(s) about this SU on Steroïds
-
@unknownuser said:
Thank you for the offer, however I believe that would be a lot of work that wouldn't be of use to most Sketchup user.
Just a reasonable work, in hours, to add the feature with a custom editable list.
@unknownuser said:
On another note, if you look at the image, you will see that the bottom part of your form is not being displayed. Maybe the box should be a little taller.
I fixed the problem in Fredotools v2.7e.
Fredo
Advertisement