DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Volume???

Started by kchoekstra, February 19, 2015, 01:44:00 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

kchoekstra

Could someone explain to me why I can not get a simple volume calculation for this solid box?

Thanks, KC.

prl

#1
 You must have created lines and then used "solid define".  Can't do that and that gives you an improper solid.



Use the Solids command "Box" and try it again.  Trace this box with it, then select it move it to the side, and delete the first "lines" box.

kchoekstra

That is a bummer because it is way easier to do some of the 3-D drawings using solid define. Do you have an idea whether a solid defined box would convert properly into an >stl file for printing. Also can a solid defined be added to another solid or solid defined object?

Thanks prl.

Bob P

Well...  I just created a closed box from planes, then converted it to a solid.  As an experiment, I subtracted a cylinder from the box.  It worked, showing the internal cut lines.  That is a reasonable prediction that it's possible for Accutrans to interpret it as a valid solid.  But - it's really going to depend on you creating completely closed solids.

prl

#4
Quote from: Bob P on February 19, 2015, 02:20:07 PM
Well...  I just created a closed box from planes, then converted it to a solid.

That is a valid use. "Solid Define" is one of those misnamed DesignCAD commands.  Its original purpose "Define selected solids as ONE solid for solid add/subtract operations". 

Advanced users use "Solid Define" because you can take anything and use the command, as you did with just lines, which doesn't work, but planes and grid surfaces that create a closed solid, does.

And to quote myself

Quote"Solid define" will always be misunderstood by most users.  It is one of DesignCAD's most flexible and most unclear commands.  Its original purpose and proper name should be "Define multiple solids into one solid".   But since it doesn't do error checking on the selection set, you can define most anything as a solid.  Gives you the power to create a gem or garbage.

Also "solid define" in no way validates or cleans up "dirty" or malformed solids. 

And I would say the normal user creating something in 3d with boolean operations should not be using it.  Consider it an advanced command with a "medicinal poison" sign on it.

Dr PR

KC,

To elaborate a bit, there are "proper" solids and "improper solids." As mentioned above, you can select anything and define it to be a "solid" with "Solid Define." But just because it has been defined to be a solid doesn't mean it is a true or proper solid.

The crux of the issue is whether the so called solid has leaks, or openings from the inside to the outside. Proper solids do not.

True or proper solids have no lines. The sides are made up only of planes and/or grids (or solid surfaces in newer versions). And they are completely enclosed by these planes or grids. Only if this condition is met can you measure the volume of the solid. If there are any openings between the inside and the outside the "volume" is infinite - everything inside and outside.

When working in 3D you should avoid using lines and curves as much as possible. You can use them for geometrical constructions and reference lines for creating the drawing elements, but then draw true solids with the solid drawing tools, or planes and grids.

You can see the difference between a plane and a segmented line if you shade the drawing. Polygons made up only of lines have no surface "fill" between the lines. Planes and grids shade as surfaces.

Your box of lines has no surfaces on the sides, so it is one big leak.

Phil
DesignCAD user since 1987

JJG

Quote from: Bob P on February 19, 2015, 02:20:07 PM
Well...  I just created a closed box from planes, then converted it to a solid.  As an experiment, I subtracted a cylinder from the box.  It worked, showing the internal cut lines.  That is a reasonable prediction that it's possible for Accutrans to interpret it as a valid solid.  But - it's really going to depend on you creating completely closed solids.

I don't agree 100% with such an answer :
when you have some lines, and solid-define them, you can indeed do some Boolean-operations on. I use this "trick" occasionally to "trim" in 3D
Also, the fact that a solid-subtract is working don't certificate you that the solid is completely close.

Bob P

True that you can create a "solid" that isn't really closed, which is why I added the caveat.  A good check (I think...) is to select the object and click on the Area and Volume button.  At least in my experiments, it only gives values if the object is a valid closed solid, otherwise nothing.

Dr PR

One other consideration - if you ever plan to do 3D printing you MUST have proper solids with no leaks. 3D printers can't print zero thickness surfaces, and that's what you have if there are any holes in your "solids." Also, the printers can't print zero thickness lines (so don't use lines) and internal or redundant surfaces will also confuse the 3D printer drivers.

You may get by with leaky solids containing lines and internal surfaces in your DesignCAD virtual world, but the real world abhors them! That's the best reason for not generating improper solids.

Phil
DesignCAD user since 1987

samdavo

#9
Just for fun ok.
I wanted to check out what happens if you extrude a circle (rather than a circular plane),

- which gives a grid rather than a solid

- and then try to correct the situation by Ctrl+D = solid define.

Result, 
a) if you extrude the circle around a closed vector, then it is automatically sealed,  and you can Solid-Define, (see the first 4-sided yellow picture frame);  and that Solid has volume.

b) If you extrude a (smaller) circle along the short straight vectors (green), and Solid-Define that, then it is a tube that clearly leaks. ( and volume doesn't work) - if you look at the second jpeg, there is no proper junction (by which I mean no lines around the roughly circular but warped rim of the junction)

c) If you Solid-Add (Ctrl+J) the four short lengths (after solid defining them) progressively to the yellow picture frame, and then add the second frame,   you get a sealed solid  (look carefully at the junctions in the third jpeg).  However it no longer has volume.  (?) 

Conclusion,  Arguably (?) it is not just a question of whether a solid is sealed, it can also be a question of how the solid was drawn.  Agreed?

PS Remedy?  If you want solids like this,  then best to extrude planes, not vectors - and that goes for circular planes, not simple circles.
And do it carefully !!  - see the red frame in next post which was done this way


PS I enclose the dcd (PS see next post) in case anyone can make that solid tubular frame obey the volume command.    Strangely enough, I did get volume to work with a similar construction once ( out of 20 attempts), but I can't replicate it.  Hence in the interests of "best conclusion", I plan to extrude planes rather than vectors in future.   

samdavo

#10
PS the volume of the red frame is apparently 11.5 million cubic mm,   or (dividing by 100x100x100), around 11.5 litres.  ( 2 cents)

PS the first jpeg- which shows the facets as sealed, appears to be same for either red frame - drawn with extruded planes (which has volume);   or yellow frame - drawn with extruded circles (which doesn't) ?  i.e. First and third jpegs are (apparently) the same when viewed in wireframe. - but aren't when volume is checked.

(edit)   V22.1

prl

Quote from: samdavo on February 21, 2015, 03:51:21 PM
I wanted to check out what happens if you extrude a circle (rather than a circular plane),  . . . .
Conclusion,  Arguably (?) it is not just a question of whether a solid is sealed, it can also be a question of how the solid was drawn.  Agreed?

Agreed and depends on which version of DC you are using.  IMSI has changed this behavior because many users were extruding closed non-planes and expecting solids whereas they were only getting extruded surfaces (a grid).

Personally I preferred the original way, if it was a non-plane, give me a grid only (open ends, hence not a solid).  If it was a plane, give me a leakless solid (in other words, cap the ends with planes).

Dr PR

One other caution.

When you extrude a plane the original plane becomes a part of the new solid. If you select the solid you can get the volume.

When you extrude an open polygon you get a grid, but the original line remains behind. After blessing the grid with "Solid Define" and fiddling with solid Boolean functions to combine the grid(s) to create a new solid, IF you accidentally select the original line the volume function will fail. DesignCAD usually selects the oldest entity when you snap to a point common to multiple entities.

Phil
DesignCAD user since 1987

samdavo

#13
ok, a compromise of sorts ...

I extruded a yellow circular line around the two rectangles (then made it a solid with Ctrl+D)...  and a solid circular green plane along each of the four short lines  ... and Solid Added.

and I end up with a valid solid, in that it has volume. (again 11.5 litres, as per the red frame made WHOLLY with extruded planes).
cheers
................................................
PS I exploded each of the frames, and used pushapart.d3m to spread the various planes/facets  - and to compare the three apparently similar if not identical "solids" / sealed set of facets.

The first frame  = the second jpeg =  (i.e. the one made with extruded green circular lines over the short lengths of the framework) explodes with some extra planes - i.e. too many rather than too few  (!?)

Oversealed?

Dr PR

Sam,

Good examples.

Those extra planes in the second image look like left over facet ends after the "Solid Add."

That problem has existed in some form since the very first 3D version of DesignCAD back in the 90s. If I had to guess I would suspect it has something to do with counting edges that are common to two planes. For example, a "proper" cylinder has an end plane, and every edge is also shared with a facet. This is true of every edge in every "proper" solid. But grid "cylinders" don't have that end plane. So maybe the math gets messed up when trying to figure out which pieces should remain after the facets are added/subtracted. Just a guess.

However, as your other images show, it doesn't happen if you are working with "proper" solids.

As I have said many times before, the moral of this story is to avoid "improper" solids. They cause lots of problems.

Phil
DesignCAD user since 1987