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.

Everything you wanted to know about solids and a lot more

Started by Dr PR, March 10, 2014, 03:15:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

3D design is mostly done with solids. Occasionally people have problems because they have unknowingly created an "improper" solid.

A "proper" solid is enclosed on all sides, with no "leaks." If you use the "Solids/Box," "Sphere," "Cone," Cylinder" etc. functions DesignCAD creates a complete or "proper" solid.

You can also assemble solids out of polygons and grids and then use "Solids/Solid Define" to bless them and call them a solid. However, it is up to you to be sure all sides are enclosed. If not, you have an "improper" solid with leaks from the outside to the inside.

DesignCAD allows you to create things that are impossible in the real world, and "improper" solids are one of these impossibilities. In the real world all solids have non-zero thickness. Things like zero thickness planes are just theoretical geometrical concepts. But in DesignCAD's virtual universe you can create zero thickness polygons. And you can assemble some of these into an open box with one side missing. Unlike real-world open boxes, which have non-zero thickness walls all around, your virtual box made of polygons has zero thickness sides.

When you attempt to use one of these "improper" unclosed solids with the Solid boolean operations (Solid Add, Solid Subtract, etc.) all bets are off what the program will do. It expects fully enclosed objects, and if you have a missing side polygon it might do all sorts of strange things.

Think of it this way - if you remove (or leave off) any of the sides enclosing a solid, all the solid guts leak out. When this happens you don't have a true or "proper" solid. It is just a "ghost" shape resembling a solid. The solid Boolean operations don't like it when this happens!

****

It is a bit more complicated when part of the surface of a solid is a "grid."

Grids are complex surfaces with zero thickness - again, something that cannot exist in the real 3D world, but which DesignCAD can (and does) create with abandon. Grids are collections of simple polygons assembled into a regular array to simulate surfaces. Grids can be flat, or warped to resemble a bowl, they can loop around to form a "tubular" surface, or they can be fully enclosed to look like a ball.

For example, the solid created with the "Solids/Box" function consistes of two rectangular end polygons with a four-sided grid forming the sides between the two ends. Draw a box with the "Box" function, select it, and use "Solids/Solid Explode" to break it into it's parts. Gravity snap to the exploded box and drag away a part. Repeat to drag away another part. The result is two rectangular end polygons, and a grid with four rectangular elements. You can verify this by selecting an object and opening the Info Box (CTRL I) - two end planes and a grid.

Shade the drawing (Gouraud, with graphics acceleration enabled) and then rotate the view with "View/Set View by Drawing Center." Notice how the four-sided grid is hollow? The grid surfaces and the end rectangles have zero thickness. You can move all the parts back togetner and use "Solids/Solid Define" to make them a "proper" solid again. But if you leave off an end it will be an "improper" solid.

Here is another example. Create a sphere with the "Solids/Sphere" function. Select it and open the Info Box (CTRL I). Notice that the dialog says it is a "solid." Use "Solids/Solid Explode" to explode it. Now select it and open the Info Box - now it is a grid. Then use "Edit/Selection Edit/Convert/Explode" to explode the grid. Now you can select individual rectangular polygons that were parts of the spherical grid.

You can select a grid and explode it into it's individual polygons with "Edit/Selection Edit/Convert/Explode." However, there is no way to put the pieces back together again to form a grid. Once Humpty Dumpty is broken he can't be put back together again. Well, not as a true grid. But you can select them all and define them to be a solid, or a group, but they won't be a grid.

The curved sides of a cylinder that is created with the "Solids/Cylinder" function are made up of a circular array of rectangles. The ends of the cylinder are multisided polygons resembling a circle. The cylindrical side polygons and the two end polygons are lumped together to make a complete cylindrical solid. You can see this for yourself by drawing a cylinder, selecting it, and using the "Solid/Solid Explode" function to break up the solid. You can drag a selection box around each end of the cylinder and select the end polygons. Or you can click on the cylindrical side and select an individual rectangle from the cylindrical grid.

****

The most common mistake people make in 3D drawing comes from extruding lines. You should work with polygons, grids and true solids in 3D. Use lines only for reference and geometric constructions. A 3D virtual solid should not have any lines in it.

For example, use the circle (C) to draw a segmented circle (select Draw As "line"). Select it and open the Info Box - note that it is a "Vector" and not a plane. Shade the drawing (Gouraud, graphics acceleration enabled) and notice that the interior of the "circle" is not shaded. It is a multisegment line and not a planar polygon.

Now select this line and extrude it with "Draw/Extrude" (X). Shade the drawing and rotate the view with "Set View by Drawing Center" - note that what may look like a solid in wireframe mode is actually a hollow grid, and not a solid.

If you want to create a solid with the "Extrude" function, be CERTAIN you are working with a plane (polygon) and not a vector!!!!

****

These are some examples of "proper" and "improper" solids, and the pieces that form them.

Phil

Note: If you select a true solid and use "Edit/Selection Edit/Convert/Explode" the solid won't explode. But any grids within the solid will be converted into individual polygons, all still lumped together as a solid. Then if you explode the solid all you will have is individual polygons and no grids. Try it with a sphere to see how this works.

Note: When you explode a grid the drawing becomes significantly larger. The grid is DesignCAD's short hand way of defining a complex surface, and the grid definition doesn't require much memory space. Explode the grid into individual polygons and a lot larger memory space is needed for all the individual polygon definitions.
DesignCAD user since 1987

Lar

Good job, Phil. Now we can reference this post when the solids discussion pops up again.

Lar

MASSIVEX

Hay, I'm building solids designed to slot together and bend or flex as they encounter one another, how do you design solids to bend and or flex in animation. . . so as to test the functionality of the design?

DrollTroll

Hi MassiveX, I don't think you'll be able to do that with DesignCAD. There's no mechanism for deforming shapes, other than stretching or rescaling them; bending is not something you can easily do.
25 years with DesignCAD

samdavo

How about using point select mode  ? (plus a fair bit of fiddling around)?
Not dissimilar to, in fact a variation of Stretching of course.

Or move points individually with (*) ?

The other thing, suppose you are drawing the ends of a tuning fork to demonstrate a vibration,  you could draw three or seven or whatever "configurations" on various layers, and turn these on and off as required to get the vibration effect (2 cents)

You'd have to make the movie by adding screensnips I guess.

Here's one I made earlier (just moving bodies and planks etc - but warping would be similar)

Sorry still a fair bit of work.

Dr PR

DO NOT deform existing solids or grids with Point Select mode!!!!!

When DesignCAD creates grids and solids it does so using a set of rules that create individual planar grid facets and solid sides. These surfaces have one and only one surface normal (a line perpendicular to the surface).

If you move a point in a grid or solid using Point Select mode you may warp or twist a facet or side causing it to have more than one surface normal.

THIS IS GUARANTEED TO CAUSE PROBLEMS

1. If the warped solid is used with the solid Boolean functions (Solid Add. Solid Subtract, etc.) some necessary facets may be left out and some that should be removed may remain behind, leaving holes (leaks) in the surface and unnecessary internal planes. These objects cannot be used for 3D printing.

2. Warped facets may display a "bow tie" pattern when the drawing is shaded. The surface normal is used to calculate the amount of shading depending upon the angle between the surface normal and the direction to the light source. If a side/facet has more than one surface normal it will display with two or more tones.

3. Warped planes/facets cast shadows in strange directions. Often they project the shadow in a direction toward the light and not away from it. This causes strange shadow spots to appear on surfaces between the light source and the warped plane/facet casting the shadow.

I speak from experience! Long ago I tweaked objects with Point Select mode to close small gaps and reshape objects so they looked "good." But I have had to redraw many months of work as a result. I learned the lesson the hard way!

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on February 13, 2015, 11:05:42 AM
DO NOT deform existing solids or grids with Point Select mode!!!!!

I disagree sort of.  Deforming solids or grids with point select mode is an interesting feature of DesignCAD.  But as Phil points out, you may cause yourself modeling/rendering trouble so it is always done with risk.

So,  Use at your own risk and enjoyment (or tears).

A single DesignCAD sphere with texture mapping highly manipulated with point select mode.


Same single sphere but creating glass mountains, etc.. . . .




A single DesignCAD sphere with texture mapping highly manipulated with point select mode and stupid prl animation tricks.

Dr PR

I need to clarify something about modifying planes, solids and grids with Point Select mode. In some cases you can do this with impunity, and in other cases it can cause problems.

Sometimes (always?) DesignCAD creates grid facets that appear rectangular in Wireframe display, but are actually two triangles. You can see this in the "facet triangulation.jpg" image. Older versions of the program did not create triangular grid facets.

In the "facet triangulation.jpg" image at the upper left is a simple black plane with a red plane at an angle. I used "Surface Intersection" to generate the pink/magenta line where the two planes intersect. Notice that there are only two points marked by the little squares in this Point Select mode image. The black rectangle is a single four point planar polygon. If you edit this in Point Select mode you can move a point(s) out of the plane and that would create a surface with more than one surface normal.

Now look at the black cylinder at the upper right and the light blue (cyan) grid surface below. Again I have created the intersection lines of these objects with their respective red planes. Notice that there is a point where the plane intersects the edges of each facet and another point between the edges. This intermediate point is on the hypotenuse of the two right triangles that actually make up the facet.

Because these grid facets are actually made up of triangles, and because, by definition, all three points of a triangle always lie in a plane, you can move the points of these grids almost with impunity. No matter where you move the points each triangle will have only one surface normal.

You can get into trouble even if you are careful to move a point so that it stays in the plane of one facet, while at the same time moving it out of the plane of another. Look at the "point select error.jpg" image.

The picture at the left shows the intersection of the green plane with the red cylinder. Again you can see the intermediate points where the plane intersected the invisible hypotenuses of the triangles forming the rectangular facets. But notice the intersect line across the top of the cylinder - it has no intermediate points. The top of the cylinder is actually a 16 sided plane - all 16 points lay in the same plane.

Now look at the "cylinder" on the right. I selected it in Point Select mode, then selected two points on the top at the back. Then I moved them straight up a bit. I was careful to move these points to that they remained in the plane of the rectangular facet on the back side of the cylinder, so the facet remained a rectangular plane (all 4 points in the same plane). The same is true of the two trapezoidal facets on either side - all four points of each facet are in a plane.

But what about the top 16-sided surface? It is obviously badly warped and no longer planar. If you make the mistake of doing something like this it will come back to bite you in the posterior when you are least expecting it!

To illustrate the point look at the "point select error phong.jpg" image. It was made with shadows enabled and a point light source. You can see that the program doesn't know what to do when shading the warped top of the "cylinder" on the right. It renders as three separate colored surfaces.

If you are going to move points around in Point Select mode you had better know what you are doing!

Phil

PS: prl, I agree that you can get some "special effects" by moving points around in Point Select mode. If you just want weird pictures have at it. But if you are creating a serious CAD design of a real world object (a house, airplane, etc.) you probably won't want these strange and unpredictable effects. And I suspect this applies to all users most of the time.
DesignCAD user since 1987

prl

Quote from: Dr PR on February 13, 2015, 01:33:55 PM
If you are going to move points around in Point Select mode you had better know what you are doing!

Point select mode in addition to the way DesignCAD allows the user to make non-standard shaped solids and surfaces has always given DesignCAD a "fun" capability.   Even before deform-able surfaces and the same became the rage in other programs. 

Regarding your quote, I just rather not scare off users from trying point select mode on solids though I do think it is helpful to warn them to save their hard work before they experiment.