Surface Connect trick

Started by Dr PR, September 21, 2007, 03:07:33 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

I ran into an interesting problem. I was trying to use Surface Connect to wrap a single surface over a concentric set of closed curves (loops) that mapped the surface of half a toroid (sliced through the outer perimeter, like a sliced bagel).

After I produced the loops and stretched the surface with the "Use original points" and "Retain Original Point Order" options the resulting grid was stretched in weird ways all around the object. Apparently the numbering of points in each line was not related in any way to the point numbering in the other lines. The loops were generated by combining several curve segments of different lengths to produce the closed loops, so there was no way to predict what point numbering DesignCAD would generate. Consequently, point 1 on one loop could be half way around the loop from point 1 on the next loop. DesignCAD connects point 1 to point 1, point 2 to point 2, etc.

There is no way I know of to determine the point numbering in a closed loop, and no way to assign a particular point to be number 1. However, there is a way to force point 1 to be in a predictable place.

1. Generate a plane along a major axis or radius of the closed loops so that the plane intersects all loops on one side.
2. Start Draw/Line (V) and use Point/Line-Plane to set a point where a curve intersects the plane - then drag and set a second point to create a temporary line to mark the curve/plane intersect point. Repeat for all curves.
3. Go to Point Select Mode (Ctrl 1).
4. Select a loop. Zoom in on the intersect point of the curve and plane. Now hold down Ctrl-Shift and point at the curve near the intersect point, watching for the scissors to appear in the pointer arrow. Click the mouse to cut the curve.
5. You now have two or more curves instead of one loop (for some reason DesignCAD cuts the loop at at least two places). Again, click on a curve to select it and hold down Ctrl-Shift and move the arrow pointer to the end point near the intersect point. When the "-" appears in the arrow click the mouse to delete the point. Do this on both curves and repeat point deletion until you have a gap between the ends of the two curves, with the intersect point between the curve ends.
6. Select one of the curves and move the arrow pointer over the end point. Click to select the point, drag it to the curve/plane intersect point and gravity snap to set the end of the curve at this point. Do not move the other end point!
7. Now select all of the curve segments that were part of the original loop and press "B" (Edit/Selection edit/Combine lines) to rejoin all the segments into a multisegment vector line. If you wish, use "Edit/Selection edit/ Convert/Line to curve" to restore the original loop. Note: the resulting curve will contain dozens or hundreds of points scattered unevenly along the curve.
8. Now point 1 on the line/curve will be one of the two end points at/near the curve/plane intersect point.
9. Select the curve and then select the end point that is not at the curve/plane intersect point. Drag it to the intersect point and use gravity snap to place it. Now you have a closed but not continuous loop with point 1 in a known position.

Caution: if you perform step 7 with both end points already positioned at the curve/plane intersect point all of the curve segments will be joined but the location of point 1 will be unpredictable. My guess is that it will be at point 1 of the first line segment that appears in the drawing database, and who knows where that will be.

Note: The surface that will be generated by Surface Connect will be discontinuous along the line of curve/plane intersect points. Depending upon the degree of curvature between facets of the surface this joint may be visible when the drawing is rendered with smooth shading. Increase the number of planes per line in the Surface Connect dialog to minimize this effect. Even so, you may have to move each point at the joint manually to eliminate this artifact. If you make the surface a solid (Ctrl D, Solid/Solid Define) the joint may render smoother.

If you need to use the "Use original points" and "Retain Original Point Order" options in Surface Connect in order to force the surface to follow the curves, you will need to redraw the loops with the same number of segments in each loop. If you do not, the results will be unpredictable, and almost certain to not be what you want.

To do this use the "Draw/Tickmark" function to place the desired number of marks on a loop. Then, starting at the curve/plane intersect points (generated as described above), draw a new loop by gravity snapping to the ends of each tickmark. It will help if you delete the original loop after the tickmarks are drawn to eliminate points on the curve that gravity snap might select instead of the desired tickmark end points. This procedure will produce loops with point 1 in the same relative position and with the same number of points/segments in each loop.

With this arrangement the Surface Connect function will produce a nearly perfect surface over extremely convoluted loops IF you have enough defining loops.
DesignCAD user since 1987