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.

Slice vs Solid Subtract vs Section

Started by samdavo, June 17, 2013, 04:52:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Elsewhere there is a thread that checks out the Cross-Section option.
I wonder if (and suspect that) Slice is more reliable.   It doesn't seem to give strange unwanted lines for a start.
Solid Subtract, eg a rectangular box-prism from a shape is similar to Slice.

Question then... Can Slice and/or Solid Subtract also cause problems?

As step 1 I enclose some Solid Subtracts (alias 3D Slices) in that standard drawing called "Cold Fusion".

It is clear if the yellow "box" is set forward, then there is a section - and you can see that there is no wall further back in that "cave".

Yet if the yellow box is set back, there is a larger area of "section", and yet we know there is no wall there.

So even this method of "sectioning" (albeit much better imo that the Section command)  has problems. 
The way around it? probably move things back and forward a bit (?)

DOH! - nope, the way around it is NOT to make the green box co-planar with the yellow box on one face ! And then deleting the yellow box solid from the red ColdFusionMachine.
This is just a case of z-fighting.   I'll post the dcd drawing that lead to this problem next post.



samdavo

What knot to do ....

Have solids with common planes !

Herewith the dcd,
and two alternative results (quite different, but both corrupted by z-fighting) when the yellow box is subtracted from the red machine (prior to subtracting the green box - not relevant at this stage - except that that green box screws up the first Solid-Subtract operation involving the yellow box). 

Summary - As long as one avoids stupid mistakes like this, I still believe that Solid-Subtract  and/or Slicing are much more predictable than XSectioning.

prl

Quote from: samdavo on June 17, 2013, 04:52:14 AM
Question then... Can Slice and/or Solid Subtract also cause problems?

Short answer is (and I am trying to keep it brief) - all DesignCAD slice, section trim, and solid addition and subtraction commands offer various levels of frustration and surprise.  Add to that that your results occasionally change between releases too.

samdavo

Using Solid\CrossSection is pretty anaemic by comparison:-
Herewith three sections of that machine/plant.
None of the show the perimeter wall, even if it is zero thickness. i.e. a cross-section of a thin plate should still give a line surely?

Hey, I imagine there are instances when cross-section might be ok/appropriate/even best option.     

samdavo

#4
And here's what happens when you do a Slice with Curved Plane.
Just some things I have learnt along the recent way...
Firstly I use diabox4 to draw the bounding box.
Then I go to Options\General and set the "working plane in 2D" as XZ ( plan view)
Then I click the top of that box and go into 2D mode  (that way the line that I draw in 2D will be at the Y level of the top of the box).
Draw the line, go back to 3D, extrude it vertically ( plus a bit extra top and bottom).
Then Slice by Curved Plane.

ok - how reliable is it?  (see next post) :)


samdavo

not very lol - there are those imaginary walls again. 

I am STILL convinced however that , for "simple" drawings, DCAD is ideal. 
How to delineate "simple" from "complex"?
That in itself is more complex than simple.
cheers
sam

Dempsey

For what it is worth, the following issues have been reported before:


  • A Cross Section of a solid created by solid subtracts does not generate the complete cross section of the whole solid. "Draw/Line/Contour line" uses the same internal function but shows different errors. An example, the walls of a house are created and then solid subtracts are used to create the openings for windows and doors. A cross section of the walls has issues.
  • Often the Cross Section of a solid does not have the default colour of the default layer, nor the selected colour when the default layer does not have a default colour.
Dempsey

samdavo

#7
thanks prl and Dempsey,

Just persevering with the glass-half-full  ( or quarter?) option.
I took that "slice with curved plane" dcd,
Explode the solid,
Changed to "show with hidden line removed HLR" - and also check out "wireframe" WF to better choose which panes to delete.
Delete the unwanted plates - (easier to remove with HLR than with full shading imo).
Solid - Define everything (Ctrl+D).
You are left with something half respectable, whether seen in HLR, or re-shaded.

PS.  These jpegs were done in a hurry (just looking at options and principles ok?).   edit - these are second attempt, more time spent polishing them up.    Note that it is easy to delete some plates that strictly belong in that plane, - eg where a thick plate / casting meets the slicing plane.   However, - equally - sometimes they can be left deleted, because they show inside the steel plate in question  (2 cents).

PS (edit) Wow - I posted that dcd here.  Then loaded it back again, - just to double check -  and I find it unstable with respect to those planes/plates that I thought were deleted.  Jury still out.  Ahh - more stable after Solid Defining all those planes before saving.  No probs. All good. 

samdavo

#8
and the Solid Subtract in reply #1 can be improved as well ...
including solid explode
delete that large yellow wall
add a light or two etc.

prl

Quote from: samdavo on June 18, 2013, 02:46:59 AM
thanks prl and Dempsey,

Sam, I'll give this a better look and a better answer towards the end of week.   My line of work;  too much or too little, never just right and always a headache. 

Lar

#10
Guys, after downloading Prl's Sam's dcd file I thought he solid defined the 'cold fusion' model to do the subtractions. So, I found the original in my dcad folder and found out that mine is also wholly defined as a solid.

This is a common mistake for dcad users but one a dcad 'employee, for lack of a better term, should not make (if somehow the copy on my computer alone is solid defined I apologize). That entire model should not be a single solid, since some of the parts penetrate other parts. This would produce unexpected results when doing boolean operations.

I tried to redefine the components into individual proper solids to then try Prl's Sam's solid-subsbut didn't get too far.

Lar


samdavo

Lar,
Not sure how that that particular cold fusion plant works. 
I suspect the employee you are chasing is some gyro gearloose with long curly hair :)
Not expecting you to correct that drawing.

Here's a simpler application which I just whipped up.  A shaft with greaseways and a nipple. Has some errors ( some of the swept stuff, eg top part wasn't a plane when swept obviously.
Anyway this is an example of the simple stuff, where I imagine DCAD is better suited ( rather than solving cold fusion for instance).   I obviously solid deducted a box from the combination of the other solids (i.e. shaft plus nipple solid defined prior to that).
no biggie.
cheers
sam

PS But I am always amazed at the complexity of drawings that you and Phil post here.   I believe you use slice quite often? - always a single plane?  or sometimes more complex?

prl

Quote from: Lar on June 18, 2013, 12:39:54 PM
Guys, after downloading Prl's dcd file

Did you mean Sam's file?  I didn't attach anything.

Quote from: Lar on June 18, 2013, 12:39:54 PM
. . .  to then try Prl's solid-subsbut didn't get too far.

Not sure what you are referring to here, something from the past?

prl

Quote from: Lar on June 18, 2013, 12:39:54 PM
This is a common mistake  . . .   that entire model should not be a single solid, since some of the parts penetrate other parts.

Sam,

Lar's point being that for any of the more sophisticated slices, section trims, section "bites", solid subtracts, etc.,  the original composite solid made with "solid define" needs to be made of valid individual solids.   The neat things you've seen Lar and Phil do are possible because they are careful in creating proper solids using the various addition and subtraction commands.  Once you have a proper assembly, it is possible to make a copy of it and take that copy and "solid define" the entire collection of proper solids and try some of the tricks mentioned.  Many times you will get great results, though not always.


Lar

#14
Quote from: prl on June 18, 2013, 10:47:34 PM
Did you mean Sam's file?  I didn't attach anything.
Sorry, Prl. For some reason I thought you started this post. I corrected my previous post.

Quote from: samdavo on June 18, 2013, 03:59:45 PM
I suspect the employee you are chasing is some gyro gearloose with long curly hair :)
The employee in question would be the person who solid defined the entire cold fusion model (of the layers that are on when the file is opened) as a single solid. Since the model was part of the dcad installation package, I'm assuming the person worked for one of the companies that owned dcad at some point in time.

When solid subtracting you have to subtract one solid from another. However, if one of the solids consists of surfaces that pass through or is coplanar with other surfaces that would amount to an 'improper' solid so boolean operations would probably not work as expected.

The cold fusion model should have consisted of many solids. To solid subtract the green box from all the separate solids one would have to duplicate the green box for every solid and subtract them one at a time. To cut out a box shape from all the solids at once one would have to use the 'section delete' command (D). BUT, the cut surfaces would not be green. If you slice a multi-colored solid the result would be of a single color, probably the color of the majority of the surfaces of the solid.

Lar