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.

Cmnd Fail->combine...WHY? (see pic)

Started by boswell, April 21, 2011, 10:03:51 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

boswell

In preparation to due SldSubtr...I tried to
COMBINE, (top-bttm), cols.   Cmnd Fail!

Where should I look for the answer?

Dr PR

You could start by expressing your question in comprehensible English, and explain clearly what you are trying to do. We aren't using cell phones here.
DesignCAD user since 1987

Adrian 2.0

What I think you are trying to do is combine the two blue cylinders into one solid, then subtract the purple cylinder?
The way to combine two solids is to select both, and make a new solid. (solid define)
Then the solid subtract works fine.
See the attached.
As the Doc said, it's pretty hard to figure out what you mean, hope this is right!

boswell

My apologies for not being more verbally explicit.

The Sld-Define, is a valuable Tip.  Thanks!

boswell

Sld-Def WORKED, first time!

Combine does not work on Solids?

DrollTroll

#5
No, Combine (Edit/Selection Edit/Combine Lines, shortcut B) is used to join adjacent lines or curves with matching endpoints into a single continuous line. Curves, if combined in this fashion, or combinations of lines and arcs, will be converted to simple lines.

If I want to combine two curves and keep their original segments, I usually do a Curve to Line both curves (which maintains their original vertices), then Combine (which gives me a single combined line with the original vertices) and finally a Line to Curve (changes the line to a curve with the same vertices).

The Oppposite of the Combine command is the Break command, which breaks a multisegmented line into individual segments at the original vertices.
25 years with DesignCAD

Adrian 2.0

By 'combine' I assume you mean 'edit/selection edit/combine lines'?
That only works on lines, and only if they have a common end point - if more than one line shares an end point with another line the command gets erratic - invariably it combines the wrong line! (sods law) but it will not combine both.
An interesting factor with 'solid define' is that the elements you combine into one solid do not need to have common points. Indeed, they don't need to be anywhere near each other & they still react as one entity. Very useful for 'drilling' multiple holes in plates etc. create multiple 'plugs', combine them as a single solid & you can subtract them in one operation.
There was another thread about this recently....

Dr PR

You don't get the same results with "Solid Define" as with "Solid Add" and this can be good or bad.

1. If you use "Solid Define" to lump two solids, say a cube and a cylinder that passes through the cube, there will be no visible surface intersection in Wireframe of Hidden Line views (screen, printed or saved image). So, if you intend to produce a 2D image the surface intersection information will be missing.

"Solid Define" doesn't actually change the individual solids - they retain all of their original surfaces. It is similar to "Group Define" in this respect. However, if you then use "Solid Explode" to break it apart into the two original solids, the individual solids will be exploded and you will get all of the original surfaces unassociated with each other.

2. If you use "Solid Add" the original solids are combined with all the surfaces on the inside of the resulting single solid removed. Only the external surface remain, with common edges where they join. In wireframe and hidden line views, print images and image save files these edges are visible.

If you explode a solid after using "Solid Add" you get all of the individual surfaces of the final solid, and not the surfaces of the original solids.

All solid Boolean operations (add, subtract, exclusive or, etc.) work this way.

3. Solid Boolean operations can really mess up the surfaces of cylinders if there are only a few facets in the cylinder. The original cylinder will render with a smooth surface, but after a solid Boolean operation the surface may render as flat planes near the cut edges. To solve this problem regenerate the cylinder with many more facets. A minimum of 36 facets (one every 10 degrees of circumference) is a good starting place. You may need 72 or 144 facets - and this greatly increases file size.

Phil
DesignCAD user since 1987

Adrian 2.0

Phil,
Thanks for that very useful info!
I have never used 'solid add' - I have another toy in my toybox now :)
I know what you mean by surfaces getting messed up, the rendered image just doesn't look the same.
I have similar issues trying to cut grids - the surface gets shattered into triangular planes and the rendered image looks different, like a bad paint job on a car repair.

Adrian

Dr PR

Adrian,

The "shattered grid" problem is a reported bug. When this happens a grid is broken apart into individual rectangles and triangles. This causes the file size to grow enormously. I have had file size increase by tens of megabytes suddenly when a large grid was cut with the "Section Trim" function or when solids with grid surfaces were edited with the Boolean functions.

When this happens I usually use the fragmented grid as a template and recreate it on another layer. I draw new curves by gravity snapping to points in the broken grid and then use these curves with the "Surface Connect" function to regenerate a new grid. Where I need a hole in a surface I just create four new grids around the hole and fill in the corners with individual polygons (Plane function).

Then I delete the curves and the original fragmented grid and combine the new grids and polygons into a single solid (Solid Define) so they render as a smooth surface. This brings the file size back down.

****

There is another reported bug to watch for with the solid Boolean functions and the "Section Trim" function with solids. Very often parts of the resulting solid or grid end up on layer 0 (zero). This happens as often as 1/4 to 1/3 of the time I use the solid Boolean functions! In addition, these wayward fragments are usually changed to the "Aluminum" material and will render in a different color from the rest of the solid or grid.

For this reason I never use layer 0. It is a garbage collection layer for the solid Boolean operations. You should check layer 0 after every solid Boolean operation to see if it is not empty.

When this happens, if layer 0 is locked, you cannot select the solid or grid. You must unlock all layers, select the object and then either use the Info Box to move all parts to the desired layer or use the "A+" (Apply Layer to Selection) tool in the Layers Toolbox to move it to the current layer. Then you need to reassign the material from the Info Box - I normally just use the "make it like this" finger tool and snap to a part of the solid or grid that is still the correct material and color.

What is really strange about this bug is that only a few individual facets of a grid or solid surface are moved to layer 0. The rest of the grid or solid remains on the original layer.

In at least one instance the errant fragments were moved to a higher numbered layer than the layer in which the original objects were on, and were changed to some other material than "Aluminum" but I have never been able to repeat that case.

Maybe someday these bugs will be fixed. They are very annoying if you work much in 3D.

Phil
DesignCAD user since 1987

Adrian 2.0

Hi Phil,
Thanks for the added input - I do recall you discussing this elsewhere on the forum but I haven't bothered to check my layer 0 - You do accurately describe so many issues 'though!
Objects I can't select with the wrong color faces - only happens when I'm in a hurry, which is 1/4 to 1/3rd of the time!!
(lies, I'm in a hurry ALL the time)
The 'shattered grid' would be a huge benefit to fix.
I do try to rebuild using your method, but Invariably once I've trimmed a hole the remaining surfaces are nearly impossible to rebuild and have the joins seamless.
I usually wind up with 5 sided grids & DCad only likes to form 4 sided shapes, so 2 sides get combined, become disproportionately long & locally distort the surface.
Having a surface broken up is also a PITA when I try to take sectional profiles (to make a production plug) - I draw parallel perpendicular planes & use surface intersect to make the profile, but it only traces the intersect of one fragmented surface - even if they are combined into a solid.
Actually, breaking a distorted plane (grid section) into  true planar triangles does yield better results for the 'surface intersect' command, even if I do have to select each triangle individually. trying to plot the intersect of a true plane with a distorted plane gives a wildly jagged line & I then have to figure out the few true points (only on the gridlines) & reconstruct the line as a curve, ignoring the false points.
What I'd really like is to have a command that would take a bunch of planes with common edges & combine them into a single 'surface'.
(I feel a 'feature request' coming on)
Adrian

Dr PR

Adrian,

Here is an example of how I "repaired" a shattered grid.

I originally stretched a grid (Surface Connect) over the entire hull plate at the bow of the ship. Then I made the grid a solid (Solid Define) and created a cylinder "tool solid" to cut the hole in the grid at the desired angle. I used "Solid Subtract" to make the hole, and the grid splintered into hundreds of triangles and rectangles, and increased the file size substantially (already huge).

I used the fractured grid as a template for lines and created the four-sided red, green and orange grids around the hole area. This left a rectangular space where I wanted an oval hole.

Then I used the "Plane" (P) function to draw each individual polygon in the space around the hole, shown here in dark blue and cyan. I first selected each fractured grid polygon in Point Select mode. This marked the points in the original piece. Then I gravity snapped with the "Plane" function to redraw each of the smaller polygons, substituting rectangles for triangles as necessary.

All of the grids and polygons were on a separate layer from the fractured grid. I deleted the fractured grid and then recombined all of the new grids and polygons into a single entity with "Solid Define." If I had not made them a single solid they would have rendered as individual parts and the surface would not have been smooth. The new "solid" renders smoothly, as you can see in the top photo. It increases file size MUCH less than the original fractured grid. And that is how I put the "eyes" in my ship model.

Phil
DesignCAD user since 1987

Bob P

Personally, I've always been uncomfortable with the very concept of a grid made of rectangles that were non-planar.  If you're going to approximate a ("curved") surface, make each element planar.  The only way to do that is with 3-point planes.

Dr PR

Bob,

I agree. DesignCAD grids are actually made up of triangles - the diagonals are hidden. That's why they work as curved surfaces.

When creating the polygons in the example above the planes do snap to flat surfaces - they aren't twisted. The first three points you place when drawing the polygon determine the plane - all other points will snap into this plane - so choose them carefully. There may be small gaps between the edges. But after the lot is designated a solid with the "Solid Define" function DesignCAD renders it as if it was a smooth surface. Of course this works only where it is an almost flat surface.

If you try to make a lot of flat planes into a highly curved  surface the program will render the individual facets as flat surfaces, just as it does with cubes, etc. In fact, whether or not a solid will be rendered with a smooth surface or with flat surface facets depends upon the angle between the facets. You can demonstrate this by creating a series of polygons with the "Draw/Planes/Polygon center-vertex)" function and then extruding the polygon perpendicular to the plane of the polygon. A solid extruded from an 11 sided polygon renders with facets but a solid from a 12 sided polygon renders as a smooth sided cylinder (the end surfaces still have a few "bumps" at the polygon corners). The threshold angle between facets for rendering as a smooth surface seems to be 30 degrees.

If the angle between polygons in a solid surface is less than 30 degrees it will render as a smooth surface. Note: I would not be surprised if there are lighting and angle exceptions to this. However, as in the example I posted above, if the polygons are near planar, with only slight angles between them, the solid surface will render smoothly.

If the tiny gaps between polygons causes a problem with rendering, just fill in with triangular planes to fill the gaps. If you intend to create a 3D stereolith file from your drawing you must fill in the gaps.

Phil
DesignCAD user since 1987