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.

Surface connect break resolution

Started by bdeck, February 16, 2009, 06:25:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

I would like to make accurate cutting templates from smooth surface connect grids, preferably using the contour line command.

There are 3 problems which currently make that task difficult.

1) Draw/Line/ContourLine creates contours based not on the grid points representing the true surface, but on the grid lines and surfaces. As such, using that function could introduce a serious error into my templates.

No problem, I'll just use basiccad to calculate the templates from the grid points.

Oops, 2 new problems show up:

2) Resolution cheating. Regardless of the number of breaks specified in the dialog, all DC grids are created from a base having 11 breaks between defining curves.

A shaded grid drawn specifying 11 breaks will look better than one specifying 99 breaks,  but it can never be perfect, because the breaks rarely line up with the breaks of the basic polylines.

The result is more troublesome if one is planning to use surface connect grids to provide data for prototyping. When prototyping, the grid data can be unreliably choppy. The error is outside any working tolerance in my experience.

3) A third issue making my task difficult is that the  point/lineplane command generates inaccurate results when used with curves. This would be a good function to use for creating custom contours. That issue can be resolved adequately by increasing the point count on the curve.



 


bdeck

#1
On further review:

Perhaps the situation is not so dire after all.

Attached are results of a macro I have been working on to create smooth surface connect grids for prototype generation and lofting.

The top one was done with the macro, the bottom one was done with the DC surface connect function.

Note:

1) Grid from DC function does not touch the stations (the defining curves) except at endpoints. Macro version touches at each break.

2) DC Grid has straight sections along stations and between stations. Macro version is curved throughout.

3) When shaded, the DC grid shows shadow ripples from res cheating.

I'm adding some esoteric features that may not be practical for DC to add, such as higher res near edges to capture terminal curvature (visible in this file), and break definitions. Let me know if there is interest.

Dr PR

BD,

This is interesting.

I do see that the grid 1100 does have all grid nodes (where lines meet) lying on the original curve, and the surface connect grid nodes are on the curve only occasionally.

I don't follow the straight vs curved "sections" however. It looks to me as if both grids are made up of straight line segments. I do see occasional places in the surface connect grid where several adjacent polygons appear to fall along a straight line, and this doesn't seem to happen in the grid 1100 version.

Your grid does seem to be superior. Since no good deed goes unpunished, what it the performance penalty? How much longer does it take your macro to produce the grid than the Surface Connect function? This isn't a real problem, but I am curious.

I haven't used Surface Connect in V19.0 yet (the file I am working on crashes V19.0 so I have to use V15.3). Do you know the limits for the Surface Connect function? In earlier versions you couldn't have more than 299 segments (I think this is the number) in any direction in a grid. This made it necessary to build up complex surfaces from multiple grids, and they never fit together smoothly.
DesignCAD user since 1987

bdeck

#3
Hi Dr PR,

DC grids are iterpolated linearly from 12-facet grids (11 breaks), no matter how fine you specify them. So you will always get the best visuals with  a setting of 11 breaks.

If you set the breaks for 119, you will get 11 breaks with about 9 non-breaking lines across each facet.

Since both examples were done with 11 breaks, you wont see much cosmetic difference longitudinally. But the points from the macro will be more accurate.

They were both done with a setting of 60 lines (plus 2 on the edges of the macro grid), so you can see that while the macro grid has a resolution of 60 lines, the default grid has 23 lines (11 per point, plus the middle point on these 3-point curves)  On my home monitor, the lines showed noticeable shadows, at my office, the contrast is poorer.

At 100 lines, the macro grid would look better, but the dc grid would look worse, becuase it would more accurately map out the 23 lines that limit it. The Dc grid can be improved cosmetically by simply adding more points to the defining curves, and its accuracy will improve as well. But breaks between curves are stuck at a sloppy 11.

Speedwise, the macro is currrently a pig, compared to the native dc command, but you can see it work, and it looks good.

So i guess it's a pig with lipstick. Make that a dancing pig with lipstick.

Its main purpose, though, is accuracy for cutting 3d templates. So it still needs a better contour line command. Or maybe it will work "as is" with Magic's system.

BD





Dr PR

BD,

When I asked about the maximum number of "segments" I should have been more specific. On the hull of the model I have been working on for some time there were 150 "frames" spaced at 4 foot intervals (this is the way larger ships are built). I tried to stretch a surface over the entire 150 frame lines, with about 6 breaks between, and the program refused to do it. After some experimentation I found that the maximum total number of "breaks" was something line 198, and I had been trying to create a grid with 900. To finish the job I had to skin the hull with four different grids, and they never fit together properly. I had to stitch them together in Point Select mode.

What I was trying to ask is the maximum number of breaks in a grid in a given direction. The Users Manual doesn't give a clue.

I just used Surface Connect to produce a grid. I set the number of planes per line to 60 and the number of breaks to 60 and started selecting template lines. When I clicked on the 5th line a dialog box opened telling me to select fewer breaks. I repeated this up to 15 template lines:

Lines  Breaks    LxB
5       49         245
6       39         234
7       33         231
8       28         224
9       24         216
10     22         220
11     18         198
12     16         192
13     15         195
14     14         196
15     13         195

LxB is Lines x Breaks.

So, with 11 or more lines there seems to be a limit of 198 on the total number of breaks.

I changed the number of planes per line to 10 and tried it again. I got the same results. So it looks like the number of planes doesn't effect the number of breaks.
DesignCAD user since 1987

bdeck

#5
Hi Dr PR,

I havent explored the upper limits, but:

For the smoothest surface appearance, breaks should be an integer divisor of 12, minus one.

So the possible breaks are  0,1,2,3,5,11.

Adding breaks beyond 11 serves no purpose, and only makes things worse visually.

A 60 planes x zero breaks grid should look good in  your application. That would give you 150 break lines on your ship, one at each frame.



Best Regards


BD


PS: The total break limit does indeed appear to be 198, regardless of the number of planes, and regardless of the number of frames. This would mean that 0 and 1 are the only two options available for a single grid on your project.

Once created, there is no practical limit. I have created grids with a million facets by editing the "point" and "line" field in the infobox. (points + lines must not exceed 2000)  But the result still had no better resolution than the original.

In DC surface connect, the maximum useful total longitudinal break lines appears to be the smaller of (198 + frames) and (12*(frames-1)+1).

The macro has no practical limit.


Dempsey

bdeck, Dr PR,

I have never done anything with surfaces in DC and really don't understand all the magic involved.

If this is still a valid feature request then can one of you summarize the feature request in one small paragraph? Thanks.
Dempsey

Dr PR

I think BD has a better handle on this, so I hope he will summarize.

We do need a larger possible number of breaks between lines and planes per line.

The breaks should be calculated on a finer grid than the current maximum of 11 between curves.

There are two comments that I would like to add.

First, if the resolution of the surface between template lines is too coarse I increase the number of template lines. I use a temporary grid with an odd number of breaks to approximate the intermediate curve, and trace the points on the grid surface to create the new template line. Then the temporary grid is erased and a new grid is created using the new set of template lines. It is sometimes necessary to edit these new intermediate template lines in Point Select mode to perfect the grid surface.

Second, a major shortcoming of the Contour Line and Surface Intersect commands is that they put a lot of unnecessary intermediate points (not at the edges of the grid polygons) in the lines, and these can really screw up surface generation! It is necessary to trace over the intersection lines these commands generate and create a new curve that does not have these extra garbage points. This is a problem with these other commands, and not Surface Connect, but it does relate to BD's first point in his initial post.
DesignCAD user since 1987