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.

Can I draw a realistic cushion in DCAD V20?

Started by Flatron, April 28, 2011, 01:38:05 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Flatron

Hi,

I'm struggling to draw a cushion that looks like a cushion (scatter cushion for a sofa). Anyone got any tips on how to go about it?

Cheers

Ron

Dr PR

#1
Ron,

You can use the "Draw/Surface Connect" function to create the cushion surfaces. This function works by stretching a surface grid over some template curves.

Be sure you are in 3D drawing mode by clicking the "3D" icon in the tool bar at the top of the screen.

Work in multiple layers (the "L" key opens the Layers dialog) so it will be easy to eliminate all the reference and template lines after you are finished.

See the attached illustration.

1. Draw a 2D outline of the cushion - for the first attempt make it a simple rectangle composed of four individual lines (don't use the "Box" function, but draw with the "Line" (V) function. In the picture there are two red  and two blue bounding lines.

2. Now draw a curve (C) from the midpoint of one side of the outline to the other, with one point in the middle higher than the end points on the side.

I n the example I snapped the end points to the middle of the blue bounding lines with the "Point/Midpoint" function. Then I stepped the cursor part way across the rectangle, and then up a bit, to set the second point for the curve. The third point was snapped to the midpoint of the opposite blue line.

3. Start the "Surface Connect" function and select one of the red bounding lines of the rectangle, the center curve, and the opposite red bounding line. You want to select the two bounding lines more or less parallel to the curve.

I used the default settings for the surface for this example, and clicked "Enter" to complete the surface.

****

For more complex surfaces, such as to get a "dimple" in the middle of the pillow, draw more template curves between the end lines. You can use curves for the end lines to get sagging corners for the pillow, etc. Experiment with it and you'll find it is pretty easy to get some pretty radical throw cushions.

****

The surface connect function has several parameters:

1. Number of Planes per Line - this sets the number of plane "facets" across the surface along the template lines.

2. Number of Intermediate Breaks - this sets the number of intermediate lines that are created between your template lines.

3. Use Original Points - The command will distribute the grid facets evenly along the template lines/curves if this is not selected. If this option is selected the program will try to distribute facets between your original points - this is not always possible. However, you can use this option to force the surface to bend over specific points.

When you create a curve (C) you can set two points at the same location and there will be a kink in the curve at this point. If you use such a curve as a surface template line you may get a "knuckle" in the grid surface if you select the "Use Original Points" option.

Whether or not the program actually does what you expect depends upon the number of original points and facets. Obviously, if you have ten original points and seven planes per line, the program cannot place a plane between all of the original points. To get this to work you may have to experiment with the number of planes per line.

4. Retain Original Point Order - The program will draw the surface between points on your template curves in the order that you created the points in the curve. This will produce horribly warped and twisted surfaces if the point order is scrambled!

You can edit existing curves in "Point Select" mode (CTRL 1). See the Help file for Point Select mode options. If you add points to a curve the point order will not progress smoothly from one end to the other. If such a line is used as a template and "Retain Original Point Order" is selected you will get what you asked for! Computers are like that!

****

In the example there are 36 facets along the template curves and nine facets (8 intermediate breaks or lines) between my original template lines. I did not select the "Use Original Points" or "Retain Original Point Order" options.

Note: If you get a "bowtie" surface that is twisted between the template lines, Undo and start over. This time when you select the template lines/curves be sure to click near the ends of the lines that are closest to the same side of the surface.

I hope this helps you get started with your throw cushions. To get round or oval cushions use curves for the end template lines.

Phil
DesignCAD user since 1987

Dempsey

Dr PR,

I have read your explanation with interest and can see that Draw/Surface Connect is THE way to do a ship or car or survey surface.

Would it not be easier in this case to create a cushion using 4 curved lines and then do the Draw/Surface Patch?
Dempsey

Flatron

Wow, thanks for the lesson. I had tried to use surface connect and then the hammer tool, but the results were a complete mess.

The task I have at the moment is to draw a dining chair with a padded seat. The chair part is fine but it's the padded seat that I need the guidance for. The seat pad fits in between four rails and is notched in the four corners for the square legs. If I used your method to form the four sided pad would I then use solid subtract to form the leg cutouts or is there a better way so as to keep the cushion appearance?

Cheers and many thanks

Ron

Dr PR

Dempsey,

Surface patch gives you very little control over the surface shape - you have only three or four lines and the program fills in between them. You have almost no control over where the center of the surface goes.

If I was doing a round cushion I would use "Surface Patch" instead of "Surface Connect" IF it was OK for it to be symmetrical about a central axis. I would create 1/4 of the cushion using one quarter circle arc around the edge and two curves from the arc end points to the raised center. Then I would create a 4 part circular array of the grid around the center. Finally, I would select the four grids and define them to be a single solid with "Solids/Solid Define." This last step causes the four surfaces to render smoothly as one surface.

It is often much simpler to create more than one surface with "Surface Connect" and "Surface Patch" and then combine them.

I find "Surface Patch" most useful for filling in corners of surfaces that have curved edges - radiused corners of surfaces. "Surface Connect" does not do a good job with this - it works best on rectangular or trapezoidal surfaces.

Phil
DesignCAD user since 1987

Dr PR

Ron,

It isn't a good idea to use "Solid Subtract" with surface grids. It works mostly, but the grid will be fragmented, causing file size to increase tremendously. The fragmented grid may display oddly, and it is very hard to work with. The hammer tool is hard to predict. It is better to create shallow dimples and such in the original template curves. You can always erase the grid, edit the curves, and then regerate the grid. This gives you very good control of such irregular features.

****

For your notched seat cushion I would create at least three grids with "Surface Connect" and  "Surface Patch." Two of these will be mirrored. See the attached images.

1. First I broke up the cushion into five parts, the middle surface, the side surface, and the front corner.

2. Next I created a single red curve connecting the middle of the back straight edge with the middle of the front curve. I drew the curve freehand using small cursor steps, and then added a few points in Point Select mode to get a suitable cushion cross section.

Then I duplicated the curve two times to one side along the rear edge and used Point Select mode to reposition the points to match the front edge. I used point select to raise the center points a small amount so the lowest part of the depressed cushion surface was in the middle of the cushion.

Then I selected the two outside curves and mirrored them on the opposite side of the center curve. This gave me the five red template lines, symmetrical about the center curve.

3. I used "Surface Connect" to stretch the cyan surface over the five red template lines. I used two intermediate breaks and 36 planes along the template lines. This gave the center part of the cushion surface with the curved front and rear edges.

4. For the side edges I drew three red curves to serve as templates. This is a bit tricky, because you want the curve of these lines to match the curvature of the middle surface. Look at the "matching grid curvature" image to follow the description.

To make the curve (C) I placed the first point at the end of the red line along the side of the cushion. The second point was gravity snapped to the edge of the center grid, at a point about "even" with the first point. Then I gravity snapped four more points to grid corners, following a line across the cushion.

The resulting red curve approximated the continuous curvature across the center grid and down to the edge, but it wasn't steep enough at the edges. I added four intermediate points to the curve  in Point Select mode. First I clicked on the curve to create a new point - that moves with the cursor. Then I used the "K" Point Snap function to place the new point at about the middle of the curve. I selected this point and moved it toward the edge to create a steeper curve. Then I added more points, using them to shape the curve for the edge of the cushion.

After this curve looked OK I deleted the extra points back in the center grid area. This left the template curve for the edge that matched the curvature of the center grid.

I duplicated the first curve twice, one at the center of the side and one at the other end. Then I used moved the points a bit to make the new curves match the edge of the grid.

Note: I was careful to position the end curved 18 grid sections apart, and placed the middle line exactly in between, so there were 9 grid sections between the red lines.

5. Then I created the green grid with "Surface Connect" using 9 planes along each line and 8 intermediate breaks (to create 9 sections between the red curves.

I used 9 planes to match the number of planes along the front curved edge of the center grid. The reason will become apparent in step 7.

6. You can see the center and edge grids.

7. Now I needed the corner grid. I made the three red template curves to work with the "Surface Patch" function.

The bottom line is just the original blue curve from step 1 (recolored red). The other two curves were created by gravity snapping to the edges of the existing grids. This ensured curves that matched the existing grids perfectly.

Then I used "Surface Patch" to create the blue corner grid, using 9 planes across and 9 [planes down.

Note: I have never understood what "across" and "down" mean on a complex 3D curved surface. I had to try several combinations of the lines (which to click on first, which second, and which last) to get a grid with 9 planes on the left and right sides.

8. The three grids are positioned together. It is best to move them to a new layer without any of the template lines.

Unfortunately, the three grids did not match up perfectly - there were slight gaps between edges at some places. To fix this I selected the green side grid first, and moved all 19 points along the edge of the center grid, first picking them up and moving away from the center grid, and then gravity snapping back to the appropriate intersection of the center grid. This placed every point on the edge of the side grid exactly on the corresponding point at the edge of the center grid. The result is a continuous grid surface with no gaps that renders smoothly.

Then I did the same thing with the blue corner grid.

9. After the side and corner grids were finished I mirrored them to the opposite side of the center grid.

10. I selected all 5 grids (and only the grids) and combined them with "Solid Define."

11. The result is shown Gouraud shaded in the "seat cushion" image.

****

See? Nothing to it!

Phil
DesignCAD user since 1987

Dr PR

#6
If you followed through all of the "how to" post above you may have noticed that the cushion surface wasn't perfectly smooth along the front edge where the different grids came together. You could waste a lot of time using the hammer tool trying to fix it, or with trying to modify the original template lines.

Here is a better way.

1. Use the original surface as a pattern to produce a new set of template lines for the "Surface Connect" function. Here I have used gravity snap to create a sequence of new curves (black) around the front and over the top of the old cushion surface. At the back I created another set of new (blue) curves for half of the cushion.

2. I selected these new curves and mirrored them for the full cushion surface. Then I selected each mirrored black pair and drew a new single template curve all the way across the cushion. After that the two half curves were deleted.

I could have used the half curves and mirrored the resulting surface, but this can leave a kink between the two grids. With one grid this problem will not occur.

3. Then I generated two new grid surfaces. As before, I moved all of the points on one grid along the seam between the two surfaces to be sure they matched up perfectly.

4. These were combined with "Solid Define" to create the new cushion surface. notice that there are no kinks in the surface around the front edge of the cushion.

****

You can always use an existing grid as a pattern for a new set of template lines. In this example I reduced the grid count from five to two, and that produced a smaller file that will load/save faster, can be edited faster, and will render faster.
DesignCAD user since 1987

Lar

This very same question was asked back around 2003 in the Upperspace forum (at least that's what my file is dated).

See the attached image for my answer back then, which still applies today (shows how advanced dcad always was).

Lar
note: up to this reply I have not yet read the other replies in this thread so I am most likely repeating info.

Alf

Hello Lar,

That was me you helped with soft pillow.

Regards
Alf from Oslo Norway

Flatron

Well, that's some tutorial. Many thanks.

Most of my drawings are fairly simple and I've never really had a need to attempt any freeform sort of drawings. I had tried to use "Surface Connect" and "Surface Patch" when I first started using DCAD (v7 I think) but I never had much success with it and there has always been a good enough work around. Up until now my chair cushions have been simple extrusions with a round over on the corners – not really very cool!

Many thanks for all the tips – I've now got some work to do putting it all into practice.

Cheers

Ron

Lar

Hi Alf, was it really 2003? I didn't expect to find the file but there it was. Now a days I don't get into too many 3d discussions since much of what I do in dcad is tailored towards being exported for the sake of rendering. Dcad provides a real solid base for 3d since accuracy is real important to me. When it comes to 2d drawings I go dcad 100%.

Lar