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.

Unclean cut with - Solids>Slice by Curved Surface - leaves remnants.

Started by DaveTK, May 05, 2014, 09:00:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lar

Quote from: minstrel on May 05, 2014, 02:41:39 PM
Have you tried reducing the "grid points"
Yes, I was about to post that same advice (but minstrel beat me to the punch), which I just tried and it worked for me.

I noticed Dave's curved surface not only has many planes but many (and unnecessary) intermediate breaks and was wondering id dcad was overwhelmed.

I tried with 72 facets in the cylinder. For the curve I vector converted Dave's curved surface, deleted all but the bottom line, point reduced it ('convert to curve' off) with 5 as the 'number of points', which resulted in a 12 point line. I then extruded it straight up (Dave must have used the 'surface patch' to get intermediate breaks... now I see what the vertical lines attached to the curved lines are for). The slice worked perfectly.

Minstrel's method of using the info box to reduce the facets in the grid surface is much better. I don't usually use that method because the shape usually changes too drastically. However, my grids usually bend around exact corners (eg, a roof eave, base board or ceiling moulding) but I now see that it works well for gentle curves. This would qualify as my forum lesson for today. Not only will I use less time to reduce the points in such curved surfaces but I will be using the 'slice by curved surface' again, something I haven't done in a very long time.

Lar

prl

Quote from: minstrel on May 05, 2014, 02:41:39 PM
Have you tried reducing the "grid points" prior to performing the Slice by Curved Surface
command?  Works for me 8)

I see what you mean Minstrel.  But when I reduced the grid points to 2, it does get better but the middle cylinder slice still creates a strange vertical facet from the grid, see graphic.  Can we assume DesignCAD is overflowing some point buffers somewhere?


Lar


Dean

If anyone wants to try the attached (rev1) works for me with the original number of grid lines 101>101
I exported the file as a  dwg then imported the dwg into Dcad.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Well Dean, you've explored a different path.  So I was curious about the different rotation so I took David's virgin 2 drawing and rotated everything about the x axis by -90 degrees.  The slice works fine, even with the high point counts.


Lar

The rotation works for me too.

Amazing. Last week Magic's "paramagic hole" or whatever Prl deemed it... this week Dean's/Prl's "get dcad horizontal and get some sweet curve action". What other secrets are being withheld by dcad.

Lar 

DaveTK

Minstrel, Lar, Dean, prl,

I see a lot has been going on while I've been asleep. Well done to all for the helpful work-around(s).

I had noticed that surfaces with a lower numbers of facets had less of a problem but I for one don't like curved surfaces that look too much like a patchwork quilt. If DCAD allows you to go ahead with an operation without a warning saying, "too many facets", then I would expect a proper outcome. In fact on one occasion I wanted to increase the number of facets to get rid of the "jigsaw" look.
Hopefully, we all agree this is a bug in the program. The problem with accepting work- arounds is that bugs become features with a list of operating constraints. The list of operating constraints are not part of the Help pages and the bug become a recurring theme on the forum.
I am so new to DCAD that making any kind of drawing is difficult for me because of a lack of familiarity with the available features and how they should be implemented. If DCAD worked perfectly it would still be difficult for me. Bugs and work-arounds makes a difficult task impossible without a forum like this one.
Having said all that, I am immensely grateful that there are people who are willing to spend their time to come up with solutions to these problems. I now have a few more tools to sort out my current problem. Thank you.

As an aside, how do bugs get reported?

David

prl

Quote from: Lar on May 05, 2014, 07:46:12 PM
"paramagic hole"

:)  Love it, the paramagic hole is the IVS (invisible void solid).  The paramagic whole is the VVS (visible void solid) outside the main solid.  Important terms in DesigCAD physics. Sorry David, off topic.   

Your bug is reported liked this.  DT -  My "before the slice" virgin 2 drawing fails as drawn but works when rotated about the x axis 90 degrees.  He'll see this and wonder what is going on between the two rotations.

Thanks for the drawings.

samdavo

prl
Quick question.  Is it good enough to set temp working plane to get vertical "high-performance" effect?

prl

Quote from: samdavo on May 06, 2014, 04:32:01 AM
Is it good enough to set temp working plane to get vertical "high-performance" effect?

I do use temp work planes often, though I haven't tried or thought of it for this.  I just tried the approach using a temp working plane to make the cutting/slicing grid horizontal and I did notice a much faster slice operation.  Is this what you mean? 

DaveTK

Quote from: prl on May 06, 2014, 04:28:27 AM

Your bug is reported liked this.  DT -  My "before the slice" virgin 2 drawing fails as drawn but works when rotated about the x axis 90 degrees.  He'll see this and wonder what is going on between the two rotations.

Thanks for that prl.

The Rotate'n'Slice works well although I did get one anomaly but I don't know how it happened. I haven't been able to recreate it so I'm not going to worry about it too much. The shading seems to have gone awry making me think that some of the facets have been angled incorrectly. Its an example I started a few days ago when changing grid lines. I've posted a couple of files for interest sake but without knowing how I created it there's little point pursuing it.
Thanks again.
David

Dr PR

David,

The odd shading you noticed can be caused by (at least) four things that I am aware of:

1. Sometimes the solid Boolean operations - especially "Solid Subtract" - move a few facets to layer 0 (zero). This has been a long-standing problem, and hopefully someday this bug will be fixed. When this happens the wayward facets are changed to the "Aluminum" material.

The solution is to select the solid, open the Info Box (CTRL I), change the layer to where you want all of the bits and pieces to be, and select the material/color you want them to be.

However, if layer 0 is disabled you will not be able to select the solid, even though most of it is on a layer you can see. In this case, open the "Layers" dialog (L) and click the "Unlock All" button. This unlocks all layers, even invisible layers, and then you can select the solid.

2. A more common cause of these strange discolorations is non-planar polygons. When DesignCAD shades an object it calculates a "normal" (perpendicular) to a surface that it uses to calculate surface brightness.

If a polygon is warped (not all points lie in a geometric plane) it will have more than one surface normal. If the difference between normals is slight you will not see a difference in shading across the polygon. If the difference is large one end of the polygon may be shaded correctly and the other end may show the reverse side (shadow side) shading. When this happens you get odd bow-tie coloring on facets.

This happens VERY frequently with "Solid Add" if the surfaces of the solid are coarse grids (low facet count). The math of trying to combine multiple flat polygons into a new surface results in warped polygons at the intersections. Adding more facets to the surfaces reduces the severity of this problem, but the only perfect solution requires objects with an infinite number of facets. This shows up regularly when combining two cylinders with low facet counts. A good rule of thumb is to use at least 36 facets around the cylinders. If you add a relatively large diameter cylinder and a small diameter cylinder, use 72 or 144 facets on the large cylinder to get a smoother intersection between the two. Unfortunately, more facets means larger drawings, slower rendering, etc.

3. One particularly odd cause of this problem is mirroring an object that has warped polygons. Sometimes the original displays correctly and the mirrored object is all screwed up. Stranger still, the original object may render OK until after you have mirrored it. In this case the original objects displays with a kaleidoscope of shades but the mirrored copy renders OK!

4. If you deliberately move points in a polygon or grid (using Point Select Mode [CTRL 1 toggles this mode]) and create a non-planar warped polygon all bets are off. It is very tempting to do this to plug a small gap between surfaces. I used to do this all the time to cause two adjacent surfaces to align. Now I have numerous large, complex drawings that have odd rendering problems.

DON'T DO IT!

One very undesirable outcome of this practice is shadows that project in the wrong direction. Surface normals are used to calcualte shadows, and they are projected in the direction from the light source to the surface. Warped surfaces occasionally cause the shadow to be projected in the direction toward the light source. These shadows appear on surfaces between the light source and the warped polygon.

****

Often just using the "View/Regenerate" (CTRL R) or "View/Fit to Window" (CTRL W) functions will correct this problem.

Sometimes it will be necessary to close the file, open it and shade it again - this forces a recalculation of normals.

If all else fails you will have to track down the warped polygon and replace it.

Phil
DesignCAD user since 1987

Dr PR

David,

When you have solids/surfaces with odd out of place facets like you show in your earlier examples there is a way to correct them.

1. Select the solid and use "Solids/Solid Explode" to break it into its separate polygon and grid surfaces.

2. If one of the distorted surfaces is a grid you may need to select it and use "Edit/Selection Edit/Convert/Explode" to break it up into individual polygons.

3. Edit or replace the errant polygons. Work in Wireframe view.

Sometimes it is easy to use "Point Select Mode" (CTRL 1 toggles) and move the wayward points of a grid facet back to where they should be (CAUTION: you can create non-planar polygons).

It may be easier to just draw a new polygon (P) using the points on the other parts and then delete the malformed polygon. When I do this I usually use a different color for the new polygons. Then I can shade the drawing and see where I have made replacements - and see where there are missing facets.

4. After you have made all necessary changes, select all parts of the solid and use "Solids/Solid Define" to bless them and make them whole (solid) again. If you have multicolored facets you can use the Info Box (CTRL I) to change all parts of the solid to the same color or material.

****

In the early days of 3D modeling in DesignCAD EVERY solid Boolean operation created a mess of out of place facets. We just accepted the fact that we would have to explode and edit every resulting solid. At least it almost always works correctly now.

Phil
DesignCAD user since 1987

DaveTK

Quote from: Dr PR on May 06, 2014, 09:10:46 AM

.............................3. Edit or replace the errant polygons. Work in Wireframe view.

Sometimes it is easy to use "Point Select Mode" (CTRL 1 toggles) and move the wayward points of a grid facet back to where they should be (CAUTION: you can create non-planar polygons).

Dr PR,

I've had a go at repairing drawing errors that I have made using point select mode and find it fraught with dangers which makes me want to go dust off the old drawing board and get out a set of pencils. It is not so bad if there is a reference point where points can be dragged to but if successive adjacent facets are out of place then it becomes too difficult with a curved surface. Flat or slanted surfaces that are parallel to a common axis I find quite easy to deal with although the editing tools don't always work consistently as I expect them to work. Fortunately there are enough tools in the arsenal that I can get something to work but it is laborious and very time consuming.
There are lot more issues, quirks and bugs in DCAD than I would like to address on the forum because I would spend too much time on here and I am sure that most forum members have encountered them and have their own ways of dealing with them.
I like DCAD but I would like it much more if it did what is says on the tin. :)
Thanks for your guidance.
David

Dr PR

Dave,

I have used a bunch of CAD programs and all of them have bugs similar to those in DesignCAD. But after you have used a program for a while you learn what not to do.

In many cases it is the user's lack of understanding of how a function works, or elevated expectations of what a little work can accomplish that is the real problem. With more practice your understanding and expectations come closer to realilty.

Yes, it is quite frustrating when what you expect to happen doesn't. And it is a bit tedious trying to repair "broken" solids. You have to decide just how badly you want the results.

For example, in your example to slice with a surface I would never have used a "Surface Connect" grid with lots of facets. I would have drawn a curve and extruded it to get a far simpler curved surface with just a few facets to use for the slice. The initial extrusion curve would have been created with the "Draw as a line" option and I would select the desired number of segments.

This isn't an excuse for the program not producing clean slices with the complex grid surface you used, but just a way to get around the problems. You will find quite a few "get arounds" on the Forum.

In many cases you must use complex grid surfaces. Quite often you can eliminate problems by carefully selecting the number of facets in objects that are to be added, subtracted or sliced. Think of it this way - if the function produces rational math you are more likely to get good results than if you give it irrational math to solve. In either case DesignCAD generates something, but as posts on this thread have shown, some results are better than others.

****

One other thing. In the 27 years I have been using DesignCAD I don't recall ever using the "Slice" or "Slice by Curved Surface" functions. I had to hunt around in the menus to find them. However, I have "sliced" solids many times.

I guess I figured out a "get around" to accomplish this task before the slice functions were added to the program, and I still do it that way. There are often many ways to accomplish the same thing in DesignCAD.

When I want to slice a solid into two parts I use "Solid Subtract."

1. First I create the solid to be sliced, and then another solid to do the cutting.

2. Then I "Duplicate" (N) both solids.

3. Next I subtract the cutting solid from the solid to be sliced - that gives me one half of it.

4. I create another solid that surrounds the copy of the solid to be sliced and use the copy of the cutting solid to subtract from it - making the complementary cutting solid.

5. Then I subtract the complementary cutting solid from the copy of the solid to be sliced and that gives me the other part.

Is this a lot more work than slicing? Of course. But it works correctly every time. Or mostly - there is the problem with "Solid Subtract" moving facets to layer 0 ..."

Phil
DesignCAD user since 1987