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.

Hiding the last solid subtract from a solid

Started by samdavo, August 02, 2014, 07:13:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

I'm guessing this is unlikely to be of much use, still one never knows.

If you "Solid Subtract" a green cylinder (layer 4) and a red torus (layer 2) from the face of a blue block (layer 5) -  in that order  - , you will find that if you then hide the red layer 2,  it will be hidden from the solid.   

It is similar to a previous post, where by accident I found that you could select those planes of a solid formed by the last Solid Subtract.  ( i.e. if you unlock just that layer, and use Ctrl+A).  - 2 cents

PS I realise this would be easy to do using Solid explode.  But I find you can subtract the red "0" from the face just using hide layer.

PS This doesn't work for the green "1" - seems it only works for the latest Solid Subtract. 

samdavo

#1
Quote from: samdavo on August 02, 2014, 07:13:01 PM
PS This doesn't work for the green "1" - seems it only works for the latest Solid Subtract. 
Actually I find you can also hide green layer 4.   
That applies to hiding the green layer - even if it doesn't apply to selecting it (in the way that red can be selected - as per the first jpeg in the post above).

samdavo

PS Conversely, this would normally be something to avoid I suspect.

And I am reminded of Phil's comment that he prefers a single solid to be in one layer. - and that seems to make sense - even if your solid maintains multiple colours.   

samdavo

#3
Actually, - trying to AVOID this from happening, PS (i.e trying to have a multi-layered solid that would remain 100% visible even if layers were (progressively) turned off) ,  I thought :-
a) if I exploded the solid
b) then collected the planes in a new solid
it might help - nope.

So then
a) if instead I exploded the solid down to planes
b) then collected the planes into a (new) group
Again no joy.

I suspect the only way to AVOID this is to make all planes (whether or not they are different colours) the same layer.   This is along the lines of Phil's comment - that a single solid should logically be in a single layer. 
cheers.

PS Clearly everyone already knows this :)   Thread closed, even if I'm the only one a little bit wiser, if indeed knowing this crumb of the intergallactic knowledge bank counts as "wisdom".   

Dr PR

Sam,

This is just one of the unexpected wonders of DesignCAD. As you have discovered, the result of a solid subtract is a composite of parts from the two original solids, and the parts retain their original colors, materials and layers.

Where this really comes in handy is creating cutaways of a piece of machinery. I was always fascinated by the real (physical) cutaway propeller and jet engines in museums - especially the motorized ones that show how all the parts move together.

To create something similar I originally would use "Solid Subtract" to cut out part of a solid, explode (Solids Explode) the solid, select the cut surfaces and change the color with the Info Box. Then one day I accidentally discovered that if I used a tool solid that was red, the resulting surfaces in the work piece would be red! Wow, that was easy - too good to be true!

Here's an example (RIM-8 burner). The red surfaces are all cutaway surfaces.

One nice thing about this method of making cutaways with "Solid Subtract" is that you don't have to use a plane - the cut surface can be irregular, and different objects can have different cut angles and cut colors. The "Mk 46 CR warhead" is an example.

Some other programs I have seen don't allow a solid to have multiple materials/colors. I have often wondered if this was a deliberate feature of DesignCAD or if it just happened while they were writing the code.

Phil
DesignCAD user since 1987

samdavo


prl

Quote from: samdavo on August 05, 2014, 02:35:57 PM
i.e trying to have a multi-layered solid that would remain 100% visible even if layers were (progressively) turned off)

Multilayered solids and having toolmark colors can be very useful.  But I am missing what you are asking for in the referenced quote.   Do you simply want to look inside a solid by hiding the toolmark subtracting solid surfaces?

samdavo

#7
prl
Sorry if I've confused anyone here.

Well, - given the blue block with green "1" (layer 4) and red "0" (layer 2) subtracted  - in that order - and V22.1.
I started off finding that I could select just the red "0" using Ctrl A.  And once selected you can copy that "0", or move it etc;  (and sometimes it copies or moves as a "half-torus", sometimes as a full torus (??))

Then I found that only applied to the latest solid subtract ( i.e. you can't select the green "1" this way); 

Then if you make layer 2 invisible, the "0" disappears
And that also works for layer 4, i.e. the "1" also disappears.
(so layer invisibility is different to layer selection)...

So I started this thread contemplating uses for this feature, (i.e. turn off red layer 2 parts of the solid but leave the rest)  and I suppose a sectional view into the solid would be one place to start. (as per Phil's examples).

Then I considered how to stop it happening accidentally, i.e. how to avoid losing parts of the solid when constituent  layers were turned off,  - and I can't do that.    Sorry, it an academic exercise - just trying to understand the rules of the game.
cheers

(edit) PS I imagine if I turned the multicoloured solid to a BLOCK, then it would be protected against accidental turning off of layers.  - Nope that doesn't work either  (I'm surprised).   

prl

Quote from: samdavo on August 06, 2014, 05:12:51 AM
Sorry, it an academic exercise - just trying to understand the rules of the game.

No problem.  The rules have changed a bit here and there between versions but I like the current arrangement once you understand the rules.  Strict bool subtractions would result in single layer single color solids, but this arrangement is much more advanced.  Maybe by accident though.  IMSI could kill it in the future, hence we whisper whether or not this is a bug.

prl

#9
The future could hold something similar to what TC does.  I don't prefer this since that result (single layer, single color) is a subset of what we can do now.

But as a subset option (a checkbox or similar), I wouldn't care but otherwise we have something more flexible at the moment.


Dr PR

Well, technically, after you cut away part of a solid all surfaces should be the same material - the original material of the solid. This is the way the real world works, and the goal of 3D modeling has always been to create a virtual world that works like the real world.

However, I really like the way DesignCAD solid subtractions work, and I would hate to lose this capability.

I'll bet the new RedSDK display routines can't deal with a multi-material solid. I know for certain that STL and 3D printers can't work with single solids of different colors/materials (not to be confused with printing a job using multiple solids of multiple colors).

****

So, assuming single color/material solids are in our future, how do we keep our current multi-color solids? One way is to do what I originally was doing - explode a solid, select a surface, and change the color. Then instead of redefining it to be a solid we could just group all the parts.

Better still, a modified "Solid Subtract" - call it an "Illustration Cut" - would make the subtraction and remember the tool solid colors. Then the resulting solid would be exploded, the appropriate color changes would be made, and the pieces recombined either into a group or into a "pseudo solid." Of course, these "pseudo-solids" would just be our original DesignCAD solids that we already have that can include parts of different colors.

If one of these "pseudo-solids" is to be exported to a format that doesn't support multi-colored solids the user would be asked to select which of the multiple colors should be applied to the entire solid. Perhaps this could be automatic - just use the color of the oldest (in the file list) part of a solid.

Phil
DesignCAD user since 1987

samdavo

#11
Thanks gents.
1. sounds like we shouldn't assume that V24 will be better than V23 :)
2. Yep, I prefer our solid subtract to TC's as well.
3. If I ever need a solid to be multicoloured and yet safe from accidentally turning off layers, - probably an unlikely scenario - I will leave the colours unchanged, but change the planes to the same layer (so that all-in,  or all-out),  still multi-coloured but no longer multi-layered.

4. Just for completeness, I illustrate what started me out here - trying to unselect (lock) some layers of a multilayered solid.  It is the same example as I have posted a few times now.   Basically if you use qs2.d3m (or qs3), you can either have red facets selected (with a lot of black lines in that area highlighting these facets) or you can have red unselected (no highlighting of facets).  But the best and/or most reliable way seems to be to explode the solid and treat the red planes as planes rather than parts of a solid.

In the attachments, one box has multiple (extra) colours just to show it has been exploded.  But the thing to note is that turning off doh LOCKING just the red layer stops the entire blue box (left side in both jpegs) from being selected, and if it isn;t selected in qs2, then it isn;t black-line-highlighted.  (2 cents)

John R

Prl, you may want to take a look at the 3D Subtract page in the Wiki. Pretty much the same as their Help, but with a few differences. A user can stop the transference of materials through the "3D Boolean Operations" section in Options / Preference (new in V19).
John R.

prl

Quote from: John R on August 07, 2014, 01:41:17 PM
Prl, you may want to take a look at the 3D Subtract page in the Wiki. Pretty much the same as their Help, but with a few differences. A user can stop the transference of materials through the "3D Boolean Operations" section in Options / Preference (new in V19).

John, I was hoping you would set me straight and give me that pointer.  Thanks.


John R

John R.