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.

Why does this subtract destroy my solid?

Started by MarkX, May 07, 2013, 10:05:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

magic

Quote from: prl on May 11, 2013, 02:21:27 AMMaybe 4 and 5 are easy too and just item 6 is reset to NO textures.

Hi prl,

That's the way it works today, so I wouldn't think that there's much work there.

I try to always think, how a user, who uses a function for the first time, would think it logical. Hence the real world reference.

Quote from: prl on May 11, 2013, 04:41:02 AM
Quote from: samdavo on May 11, 2013, 03:58:47 AM
And I'm gonna claim that DCAD is better than many many programs

Is this for surface modeling or solid modeling? 


I agree with Sam here.

1) You can do most anything in DesignCAD and you don't have to work with it all the time, because it's mostly intuitive.
2) You can import and export from and to most other systems via the .dwg/.dxf facilities, but we could use a .stl converter. I have suggested including the AccuTrans .dll from MicroMouse. The license is $100 per year for the Company, but it may demand some implementation costs.
3) Magic Systems provides a comprehensive CAM system, which handles 3D surfaces.
4) And we could have had a complete FEM system, if Dr. Fithen .......
It's a kind of magic!




samdavo

magic
comment from the gallery ok?
but how fair is that ?
$100 in perpetuity to do the drawing, juggle x, y and z ..
and then ...

$100 per annum to convert it;
(assuming I understand you correctly,  - which is an unlikely scenario, given my success rate to date :) )
cheers 

magic

Hi Sam,

The Accutrans .dll is $100 per annum for IMSI to put it into any and all software they want, not per DesignCAD license.
It's a kind of magic!




Dr PR

Here are some more comments/thoughts about solid Booleans.

1. I cannot see any virtue to breaking apart grids and scattering the pieces over more than one layer, especially when the user did not select the layer! This certainly is unexpected and uncontrollable, and that NEVER is a good thing.

2. Likewise, I can't see any virtue in changing the material to something the user didn't define. That is silly.

3. Personally, to me it doesn't make any sense to have a solid split across multiple layers. A solid is a single object, and there are no other single objects that you can create that span multiple layers. Layers are primarily a visibility/editability control function. It is totally wacko to have part of a single object visible and part invisible, and even worse to be able to see an object that is on an unlocked layer and not be able to select it.

Note: Groups, blocks and symbols are not single objects - they are collections of objects that can be manipulated more or less like single objects. Some people (including me) use solids as a type of group, but this is a misuse of the concept, even if DesignCAD makes it possible.

4. I tried to list all of the functions in DesignCAD that interact with solid properties. Objects. materials, color, lighting, shading, texture maps and transparency interact in very complex and often unpredictable ways (at least I can't always predict what will happen and I have been working in 3D for decades).

From a programming standpoint the possible variations resulting from solid Boolean operations are far too large. The programming team will never be able to address them all. So it is necessary to define a limited set of outcomes that might be possible to code in a finite amount of time. We users will have to accept these limitations and learn to work with them, just as we have learned to live with the limitations and bugs in the current code.

5. "Solid Define" should continue to work as it does now. This will allow the user to create solids with any collection of materials, colors and layers, and the programmers won't have to try to figure out how to do it.

****

Here are suggestions that should be relatively easy to program.

Note: These suggestions apply only to "Solid Add," "Solid Subtract," Solid Intersect" and "Solid Segregate" where one single solid object results.

"Solid Exclusive Or" is different. Parts of the two original solids remain, so the original properties should remain.


A. The end result of the Boolean operation should be a single solid object on a single layer. Use the layer of solid 2.

B. The new solid should be a single material for add, subtract, intersect and segregate. With the "Solid Subtract" operation the only reasonable choice is the material of solid 2. For consistency's sake, make all Booleans work this way. It makes no sense to have a single object composed of multiple materials.

C. The resulting solid should assume the transparency inherent in the material of solid 2 if it assumes the material of solid 2.

D. Texture maps are a real problem. Combining texture maps involves far too many variables for the programmers to deal with. Just eliminate texture maps from the resulting solid. If the user wants texture maps wait until all Boolean operations are done and then apply the texture.

E. The new solid should assume the color of solid 2 as the default. This would make life much simpler for the programmers.

HOWEVER

I really like the results of "Solid Subtract" where the cut surfaces in the resulting solid retain the color of the first solid. This is a very nice feature of DesignCAD that I do not want to lose. I use this quite often.

Maybe we need a new function called "Cross Section" that does the solid subtract incorporating the colors of the first solid and have "Solid Subtract" use only the color of the second solid. Or perhaps it should just be an option for "Solid Subtract."

Perhaps this multicolor option should work only if both of the starting solids are the "Default" material. Maybe the result of a Boolean with solids of dissimilar materials should be the "Default" material.

Note: This is extremely complex. If solid 2 is a material other than "Default" and the resulting object assumes the material of solid 2, then color is irrelevant IF "color material" is enabled in the shading options. And "color material" should always be enabled for Phong shading (this is the only way to get true whites and blacks).

This requires more discussion and experimentation, especially with intersect, exclusive OR, and segregate. However, accept the fact that if you ask for something that is too complex it will never happen! We need to establish a simple set of criteria that can be programmed in a short time.

Phil
DesignCAD user since 1987

Rob S

I see yet another tool option request coming up here:

QuoteNew surface color and material:

[ ] Same as Remaining solid

[ ] Same as Removed solid

[ ] Current drawing color, default material

[ ] Selected material (Selection dialog appears)
User since forever

samdavo

#50
Quote from: Dr PR on May 11, 2013, 11:05:44 AM
HOWEVER

I really like the results of "Solid Subtract" where the cut surfaces in the resulting solid retain the color of the first solid. This is a very nice feature of DesignCAD that I do not want to lose. I use this quite often.
... Phil
Phil
Hear_Hear !!

PS By "first " solid (just clarifying) you must mean the one selected first - that is subtracted yes? - that's what happens now anyway.

As I said once before, that's how I know I hit the ring with the (red) handle of the hammer, and the green head of the hammer missed.
cheers
sam

PS whilst I'm there, I'll show some more Alements - but that's not the point of this post !  and I won't even repeat that I like it as a quick way to illustrate that shape  :) -   nor the fact that (i nthe second attachment) it looks like red-hot steel being forged with some mill-scale cooling to a really authentic dark grey colour,  and randomly spalling off -  just like you'd see in a blacksmith's shop, and I'm reminded of Longfellow's "Under the spreading chestnut tree, the village Smithy stands  - "  but I digress   :)) ...

-   I simply want to say that I totally agree with you on the captioned point - i.e. retain that red colour on the "dent" ! :)

(I believe I posted those dcd's on the hammer and cycle thread - in the unlikely event that anyone wants to investigate belting up rings further lol).
PS And I'll also let the romantics out there google Henry Longfellow's Smithy poem themselves :)

samdavo

And whilst you are at it programmers, the way the "space,  _ " character disappears when it is underlined - please change that !!!

i.e. when "Hear_Hear !!" is underlined, you get 
"Hear_Hear !!
you've lost the space character !!

(sorry - clearly just a pisstake :)) )

Lar

#52
No boolean operation that requires the user to pick two solids creates any *new* surfaces. Every surface in the resultant solid was generated from the 2 original solids. All dcad has to do is apply the properties of the surfaces of the original solids to the related surface of the resultant solid. This is what it does now, far as I can tell.

I haven't used bitmapped textures in a long while but I remember there being some sore of function of 'fitting' the bitmap to a surface. Trying to get dcad to 'paint' parts of a bitmap on a resultant surface may be an unreasonable expectation so maybe it should be documented in the help that this function may have unpredictable results. Maybe dcad handles this satisfactorily already, I don't know. Cinema4d can handle this but cinema4d was programmed by alien beings (not really, it just has a long history of building off previous functions).

The only time there is any ambiguity as to whether a resulting surface should come from solid-1 or solid-2 is when either the user messes up and creates coplanar surfaces in one solid, or has a surface of solid-1 coplanar with a surface of solid-2. This can happen quite easily when cutting a hole in a corner and the user may not perceive that the subtracting solid is intersecting with the other edge of the corner (I would miter the cutting solid away from the other edge). In the former case I think dcad's new algorithm would clean up the coplanar surfaces in the same solid. In the latter it would leave new lines in the other edge. In either case it is a user mistake. When cinema4d encounters coplanar surfaces in booles it usually crashes.

I think all that needs to be fixed is the bug that scatters bits over many layers, as Phil describes. This rarely happens to me, other than sometimes with 'slice by curved surface', so I can't comment on it too much. I suspect it may be because the slicing surface would be a grid surface, which can have twisted segments, and when dcad create a twisted plane it throws it on layer zero or leaves it out altogether, as I demonstrated with Mark's example. I guess sometimes the bits get thrown on the current layer, which may account for the scattering.

As for booles that don't require 2 solids (the slice and 3d-trim operations), these do create new surfaces, along the cut-lines. They currently do make the resultant solids one-color/one-layer. Since I often use multi-colored solids that have a good chance of getting sliced I would prefer the parts retaining their original colors. For multi-colored solids the user should be asked if the new surfaces should take the active color or the majority-color (maybe via the General options). The same thing could be asked in terms of multi-layered solids.

One thing to keep in mind: If dcad ever moves toward dynamic booles the original properties of the solids would have to be maintained, since there would be no new surfaces created, just parts of the original surfaces being rendered invisible.

Attached is a screen shot from cinema4d that demonstrates this. The top-left (unrendered) and bottom-left (rendered) shows the solids un-booled. As you can see, one of the spheres have transparency and a bitmap. The bitmap is 'projected' on, not wrapped completely around, so you see the same thing on the front and back. The top-right (rendered) shows the result of a subtraction-boole. Here you can see that the booled surface only shows the part of the bitmap it holds, ie, it is not 're-fitted' to the booled surface. The bottom-right (unrendered) shows that when any of the boole-solids are selected the invisible parts are highlighted in wireframe, ie, they are still there. If you deactivate the boole the whole solids becomes visible again.

Lar

samdavo

#53
Lar ..
arguably off subject (or marginally related)  but ...
I still have to successfully achieve transparent surfaces .

i.e so that you see the far corner of that blue box through the transparent front - or even ...

suppose you have the entire blue object made transparent
and you had objects behind that
could you see through the blue to see the others ?
 
any tips?
(or maybe I should start another thread - TRANSPARENCY ?
or maybe Should BOOLEAN RELATIONSHIPS be TRANSPARENT?
PS like marriages ?  :)  Mother's Day here.

PPS Lar, you know your big drawings (Retro thread refers)
you could just paste a jpeg "view/ crossection/ on a plane with BoxWrapping.  Surely you would end up with a trivially small file ??  ( 2 cents)

samdavo

Quote from: magic on May 11, 2013, 06:32:33 AM
Hi Sam,

The Accutrans .dll is $100 per annum for IMSI to put it into any and all software they want, not per DesignCAD license.
sounds like a good deal to me :)
But then again, I'm not really keeping up with you on its capabilities and /or limitations (if any) lol.
cheeres - thanks

prl

#55
Quote from: Lar on May 11, 2013, 06:33:50 PM
No boolean operation that requires the user to pick two solids creates any *new* surfaces.

??  You are thinking visually and I do see your special use of the word *new*.  So we don't gloss over what is really happening, refer to Sam's CSG topic. The intersection of the sphere and the cube.  DC needs to intersect facets, create new edges, create new surfaces, recreate existing surface mapping patterns, etc.    Programming wise it also generates this resulting solid as a new solid.  It receives its own SolidID, the previous ones are lost.  Currently it does use the color and layer of the appropriate surface.  Only exception is the initial defective solid which apparently forces DesignCAD into creative repair mode where it uses layer 0 and odd material settings (according to Lar . . . which is a good observation).


prl

Quote from: Dr PR on May 11, 2013, 11:05:44 AM
We need to establish a simple set of criteria that can be programmed in a short time.

So at this point, boiling down the responses.  Seems DC (at least version 22.1) already does many of the things required, item 2 being the exception.

Standard Rules

1.  Bool Ops: Solid 1 modifies solid 2. The result is always something new.
2.  Layers: The resulting object is on the layer of the second solid.
3.  Colors: The resulting object color(s) uses the colors of both solids with the subtracting object, solid 1,  providing the tool mark surface color for subtractions (as it does now).
4.  Material: The resulting object uses the material of the second solid.
5.  Transparency: The resulting object uses the transparency of the second solid.
6.  Texture mapping: New resulting object has NO texture mapping.

Lar

Quote from: prl on May 12, 2013, 12:41:00 AM
Quote from: Lar on May 11, 2013, 06:33:50 PM
No boolean operation that requires the user to pick two solids creates any *new* surfaces.

??  You are thinking visually and I do see your special use of the word *new*.  So we don't gloss over what is really happening, etc
Prl, you are correct that the booled surfaces in dcad are indeed entirely new entities. That was the reason for me enclosing the "new" (in my "any new surfaces)" in asterisks (something originated by DT). What I'm saying is that in the 2-solid booles there are no surfaces in the booled solid that cannot be traced back to those in the original solids, so no new decisions has to made by dcad concerning the layer and color/material of the booled surfaces, because all the information is there in the originals. Only in the booles that slice does dcad generate surfaces that cannot be traced backed to those in the original solids, ie, those along the cut lines.

Lar

samdavo

#58
I post another multi-booly-toolshopped drawing.

Based roughly on the well recognised 60's Peace Sign ( and if you can remember the 60's you weren't there, as they say ) :)

Minstrel - you'll be pleased to know I had to use Solid Segregate to "trim the outsides of those cylinders" - i.e. outside the torus. cheers

PS I had to use slightly different/longer  "cylinder spokes" to get the beachball in the middle of the drwg called "Intersect peace cylinders" (2 cents)

PPS - No 0-layer BUG elements were involved at any stage making this drawing.

What was my point doing it? Maybe to illustrate how much more interesting it is than a simple mono-layered and mono-coloured emblem.


samdavo

and herewith the dcd, if'n you're int'rested