News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Wavey Grid Lines

Started by darnold, July 11, 2011, 05:31:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darnold

I am trying to create a 3-D model of a fuselage hull (shaped very much like the body of a sailplane--eg. ASK 21). 

I have made a series of egg-shaped planes (the cross section of the fuselage is egg-shaped) by connecting a curve to an arc to get the desired shape and then converting the "fuselage former" to a plane.  I have a series of these along the center-line of the fuselage, changing their overall size to match the shape of the fuselage.

When I then go to use the Surface Connect function (Type: Smooth, No. of Planes: 60; No. of Intermediate Points: 3) I get a bunch of wavey lines between the formers on the grid.  This results in ripples and distortions when it is rendered.

If I leave the top-half of the former as a curve and the bottom-half as an arc, then I do a surface connect, the grid lines are nice and straight/parallel.  However, I then have a slight line down the fuselage when rendered.  If I try to "connect" the top half with the bottom half of the fuselage using Solid Add, I then get missing sections when rendering it--i.e., fragments of the surface are missing.

At this point I am not sure what to do.

Dr PR

darnold,

Been there, done that! I know exactly what you are talking about. "Surface Connect" is a tricky function to master. There are several potential causes of the wavy grid lines.

1. If you want the surface to bend smoothly over your template curves, be sure to select the "Smooth" connection type in the "Surface Connect" dialog. The "Normal" surface will stretch straight between the template lines with sharp kinks at the lines.

2. In the "surface Connect" dialog do you have the "Use original points" or "Retain original point order" selected?

If you select "Use original points" your grid planes will be distributed between the points that define your template curves. For example, if you have 10 points and 60 planes, the planes will be distributed with six between each point. If these points are not evenly spaced around the curves the planes will be bunched up in some places and spread apart in other places. If the point distribution is not the same on all of your template curves the grid lines will be wavy.

If you select "Retain original point order" the planes may be distributed very oddly. When a curve is created each defining point gets a number. When you combine two or more lines all of the points are renumbered, but not necessarily in sequence. If you edit a curve in Point Select mode you can delete points and add points, and the points in the resulting curve will not be numbered in sequence. If you then use this curve as a template for "Surface Connect" with the "Retain original point order" option selected, the planes will be distributed irregularly along the curve, often folding the surface back upon itself.

3. Even when you have curves with points numbered sequentially, some may be numbered clockwise and others counterclockwise. This can cause the surface to be convoluted. You can select a curve, open the "Info Box" and then click the icon with the horizontal blue and red arrows (in the tool bar near the top of the box), and the point order will be reversed. Sometimes this helps straighten out the surface grid.

4. Where you select the curves is important when you are setting up the "Surface Connect" function. Even if neither of the options mentioned in "1" above are selected, the original point order still has an influence on plane distribution along the line. If you select some of the template lines at the top and some at the bottom the grid may be wildly distorted. The program starts placing planes on the line at the point nearest to where you click. It is best to select the template curves at about the same relative position for all curves.

5. Be sure to select the template curves in the order you want the surface to be created. If you don't the surface may fold back upon itself.

****

Here are some suggestions to help you create smooth surfaces.

1. Where you have complex curves made up of several elements, like egg-shaped cross sections made of arcs and curves, first create each segment. Then select them all and use the "Edit/Selection Edit/Combine lines" (B) function to create a single curve. This will be a mess, with far too many points and odd distributions of points.

Use the "Draw/Ticmark" function to mark the desired number of points along the original curve. Then erase the original curve and draw a new curve by gravity snapping to the ends of the ticmarks - be sure to snap to the ends of the ticmarks that were on the original curve. Then erase the ticmarks. This gives you a single new curve with a controlled number of points evenly spaced along the curve.

2. Follow the same procedure with each template curve, using the same number of points in each curve. Start at the same relative position when you draw each successive curve, and draw the new curves in the same direction (top to bottom, clockwise, etc.) This will produce a set of curves identical in point number and point order.

When you create a surface using these curves it will have very orderly alignment and spacing of the grid lines.

3. The points do not have to be evenly distributed along the curves. For example, along relatively straight sections you don't need many grid planes, but where the surface curves a lot you need many planes to get a smooth surface. You can control the distribution of points along the template curve to control the spacing of planes along the curves.

When you create your original curve, use several shorter curves. For example, create separate curves for each part that curves greatly. Then create additional curves along the straighter sections between these sharp curves. Use the "Ticmark" function to place a lot of marks around the highly curved sections and fewer marks along the straighter parts.

Then draw a single new curve, setting points at the ends of the tickmarks, and delete the ticmarks and original curves. Now you have a single curve with points distributed as you wish. Select the "Use original points" and "Retain original point order" options to force the grid plane distribution to be what you want.

4. When you need a bunch of template curves of exactly the same shape but different lengths or diameters, as is often the case along airplane fuselages, create one curve and then duplicate it (N) however many times you need. Then use the "Edit/Selection Edit/Scale" function to change the size as necessary.

5. When you have your surface there is an easy way to check it for irregular waves. Use the "Draw/Lines/Contour Line" function to create lines where a hypothetical plane intersects the surface grid.

Now view the surface using "Set View by Drawing Center." Roate the view and look down the length of the contour lines. This will make even the tiniest ripple visible. Then edit the errant curves in "Point Select" mode (CTRL 1) to reposition points as necessary to eliminate the ripple.

Create these contour lines on another layer so it is easy to get rid of them after you are finished with them.

6. You can create sharp kinks (knuckles) in otherwise smooth surfaces. If you set two points in a curve at the same place the smooth curve will have a sharp kink at the position where the two points are set. If you use such a curve as a template for "SUrface Connect" the surface will have a kink.

However, you must carefully place the points on all curves, so the double points are at the same relative point order position. Otherwise you will find the surface will be distorted between the kinks where a column of planes is bent around the kink. This results in flat spots along the kink. It can be very tricky getting everything aligned.

Another way to ensure a sharp knuckle is to create two surfaces on opposite sides of the knuckle. This will produce a sharp kink between the surfaces.

7. Sometimes you want to create a surface with sharp localized curves. One way to do this is to create an overall smooth surface first, using an odd number of intermediate breaks. Then use this surface as a template to draw a new curve (or curves) between two existing template curves. Then erase the surface grid.

Now you can reshape these new intermediate curves to cause deliberate waves in a new surface. You can reposition the points in these curves using "Point Select" mode. Then create a new surface, edit the curves again as necessary, etc. This is a lot of work, but it allows you to reshape the surface, and is a lot easier than using the "Hammer" tool (which I have never been able to use effectively).

Phil
DesignCAD user since 1987

darnold

Very helpful advice.

I did a quick test and no more wavey lines!  Great!

Now for my next challenge.  Blank patches when I do a Solid Subract.  When I subtract a solid from the shape blank patches appear (see attached photo of my quick test object)?  My plan was to create the overall shape of the fusalage and then use solid subtract to "cutout" the cockpit area.

Dean

Dr PR

Dean,

This is a known bug in DesignCAD - it's on the "to do" list.

Quite often when the solid Boolean operations are performed bits and pieces of grids are moved to Layer 0 (zero). In addition, the material is changed (usually to "Aluminum").

All you need to do is disable all layers (Layers dialog, or "L") except the layer the grid is on and Layer 0. Then select the grid, open the Info Box (CTRL I), and the layers box will say "Multiple." Pull down the layers list and select the layer that the grid was on ofiginally. Now all parts of the grid will be on the one layer.

Next, while the grid is still selected,  look at about the middle of the info box. There is a square window with a shaded sphere in it. This shows what the material of the object looks like - it will be colored in four quadrants to indicate that there are multiple materials in the selected object. In the "Material" box click the pull-down button to open the list of materials and select the material that the grid should be.

Finally, if the material is "Default" you may need to click the color tile at the left end of the tool bar near the top of the Info Box and select the color you want the grid to be.

It is a nuisance to have to do this, but not a lot of trouble. Lets hope this one gets fixed soon. I NEVER use Layer 0 for anything, leaving it to be the garbage collection layer for the solid Boolean operations.

By the way, on one occasion the wayward grid segments ended up in a higher numbered layer than any in use in the drawing. I have seen this only once. If you select a grid and the Info Box says it is on multiple layers, and the Layers dialog says Layer 0 is empty, you will have a bit of an Easter egg hunt to discover where the odd bits and pieces fell. The easiest thing to do is select the grid, enable and unlock all layers, and then use the Info Box to move all of the grid back to one layer.

Phil
DesignCAD user since 1987

Dr PR

#4
Dean,

There is another problem with grids you need to know about since you are planning to use "Solid Subtract" to cut a canopy opening in your fuselage grid. See:

http://forum.designcad.com/index.php?topic=3814.0

You may want to create multiple grids for different parts of the fuselage where you need openings for the canopy, wheel wells, etc. This really isn't as difficult as you might imagine. First, create a single large surface grid and get it shaped as you want it. This is VERY important. You need the correct overall shape without ripples before proceeding.

Then use this initial grid as a template to create collections of curves to be used to generate new smaller grids with "Surface Connect."

Punch holes in these smaller grids as described in the post referenced above. In some cases you can just redraw the template curves so the new grid just fits around rectangular openings like wheel wells.

After you have created all of the smaller grids with the openings you need, select them all and use "Solids/Solid Define" to lump them into one single solid. This will cause the surfaces to render smoothly as one object with no seams.

However, if you want the grid sections to render as separate pieces with visible seams between them, do not make a single solid. This is the effect I wanted to show the hull plating in a CAD model:

http://www.okieboat.com/Copyright%20images/stern%201024%20C.jpg

Phil
DesignCAD user since 1987

darnold

Thanks for the help.

Pretty much working now although I still struggle to get a "prefectly smooth" hull. 

At certain angles you can see slight undulations along the hull.




Dr PR

It is looking good.

Getting the surface perfectly smooth is mostly a matter of repeated fiddling with points on the original template curves.

Another trick for shaping a surface quickly is to alternate between horizontal and vertical template curves.

1. Draw the original template curves and create a surface.

2. Use the surface as a pattern for drawing a second set of template curves perpendicular to the first. So if the first set of lines were vertical sections, make the second set horizontal, and create a new surface from this.

3. Use the new surface to draw a third set of curves, again perpendicular to the last, and create another surface.

4. Repeat 2 and 3 until the surface is smooth.

This uses the tendancy of the "Surface Connect" algorithm to produce smooth surfaces between the curves to take out the kinks.

Phil
DesignCAD user since 1987