News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu

Repair of 3D Solids

Started by JoeM, November 04, 2009, 05:22:59 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

JoeM

Compared to other 3D modeling programs, TurboCad is weak when it comes to repairing ACIS solids.  Other programs, even inexpensive ones like ViaCad and Alibre, have stitch to solid commands that allow you to control the minimum gap size and surface thickness.  They also have routines that identify the defective solids and that give some clue as to the problem.

TurboCad has only the mysterious "SAT healing" command. It does not identify which parts are the problem (this would at least let you rebuild the parts manually).  It either works or not, and there is no ability to vary the allowable tolerances and no indication of what is wrong with the (unidentifiable) part.

I tested some parts using "stitch to solid" in ViaCad.  These parts could not be repaired using "SAT healing" in TurboCad.  After reimporting the ACIS solids to TurboCad, I found they were indeed repaired by ViaCad.

I would very much like to see improved repair commands within TurboCad.  The integrity of the model is critical for it to display properly when rendered, when a drafting pallette object is created, and when trying to export to other CAD systems.

For the record, I think TurboCad surpasses these other programs in many ways and overall it does an excellent job for me.  If I didn't think so I would be using these other programs and not TurboCad.  But I do think this is one instance where TurboCad could learn from its competition.

Sincerely,

JoeM


Alan C

Quote from: JoeM on November 04, 2009, 05:22:59 PM
Compared to other 3D modeling programs, TurboCad is weak when it comes to repairing ACIS solids.  Other programs, even inexpensive ones like ViaCad and Alibre, have stitch to solid commands that allow you to control the minimum gap size and surface thickness.  They also have routines that identify the defective solids and that give some clue as to the problem.

TurboCad has only the mysterious "SAT healing" command. It does not identify which parts are the problem (this would at least let you rebuild the parts manually).  It either works or not, and there is no ability to vary the allowable tolerances and no indication of what is wrong with the (unidentifiable) part.

I tested some parts using "stitch to solid" in ViaCad.  These parts could not be repaired using "SAT healing" in TurboCad.  After reimporting the ACIS solids to TurboCad, I found they were indeed repaired by ViaCad.

I would very much like to see improved repair commands within TurboCad.  The integrity of the model is critical for it to display properly when rendered, when a drafting pallette object is created, and when trying to export to other CAD systems.

For the record, I think TurboCad surpasses these other programs in many ways and overall it does an excellent job for me.  If I didn't think so I would be using these other programs and not TurboCad.  But I do think this is one instance where TurboCad could learn from its competition.

Sincerely,

JoeM


I wonder how much various patents hold back various improvements like this example you mention? Chances are that to duplicate a similar [solids healing] process as another developer, there would be patent issues, either requiring a payment which would increase program cost, or the need to be different enough to avoid patent issues, but not be as good, and take longer to implement because of care not to hit the patent issue.  By way of analogy, if the wheel was to be first invented today, tomorrow it would be naturally originally invented by someone else because it is so obvious, so in this age, someone might compromise to avoid patent by using a 100 sided regular polygon shaped 'wheel', which is nearly round [if not too large], nearly as efficient. In this age of patents, it's a race to get it in the bag first.
Alan.
Platinum 21. & Deluxe 21.
TC user since 1995. (version 3)

murray dickinson

#2
Joe, I'd be gobsmacked if there's any instance of a requirement for repair other than trying to enclose a volume with surfaces that share boundaries, ie using the same curve as an edge for two or more surfaces and expecting them to meet.  If you use a curve that you've built discrete surfaces from, then assumed that the shared curve is the boundary edge for adjacent faces, you've built in degeneration.  If you extend the surfaces beyond the boundaries and add them, you've used the surface intersections as trimming curves, which aren't degenerative and the solid will build from faces.   "Build solid from faces" encloses and defines a solid volume, but the faces must overlap.  The opposition programs won't stitch them if they do, but they will let you carve surfaces off a solid with "replace face", a function that the old TC Solid Modeler had (with ACIS V2).  The precondition is that the replacement surface's edges must overlap those of the solid it's being fitted to.  The stitch function you've described in Alibre and ViaCAD fudges surface boundaries, but more tolerantly than SAT healing does.  One side effect of the limits is that sometimes ViaCAD won't scale an object up because doing so takes the fudged gap beyond the tolerance limit.  The workaround is to copy the solid  and scale the copy, which isn't associative to the creation curves.  I've wondered whether it might be possible to do something similar in TC, ie scale copied surfaces down and see if SAT healing works with gaps half the size, then scale up again?

JoeM

Murray,

I do try to avoid boolean additions of objects with coplanar faces, but there are some instances where this is either very difficult or where it would take a much larger number of operations to accomplish the same thing.  For instance, I often slice 3D objects up to get rid of unwanted pieces and then add back together the remaining chunks. Also, when creating objects having symmetry, I create half the object, mirror, and add the result - often this is the only way of getting a truly symmetrical object.

Usually these operations do not result in problem objects, at least, as far as I can tell.  Is it theoretically impossible to remove a flaw resulting from adding coplanar faces?  Does a flaw always result from such an operation? If so, why do CAD programs allow these operations?  At least the program should be able to identify and list potential problem objects after they are created.

I like your idea about scaling objects and trying SAT healing.  Still, wouldn't it make more sense to allow the user to vary the tolerance for this operation, as in the competing programs?

I would like to know more about how this actually works.  Do you have a link that gives a good explanation of these issues?

Thanks for your reply.

JoeM

murray dickinson

Joe, I don't think it is possible to eliminate degeneration with absolute certainty.  I posted the link to the articly by Dr. Adrian Bowyer a few days back, and he explains there that the randomness is introduced as a consequence of using  computers that work to a finite number of significant figures, with a floating point.  The same operation can have minutely different outcomes, with the numerical difference being below the resolution of the program.  At one attempt, the result can give a result that doesn't coincide, the next attempt it may, and result in degeneration.   TC's stated maximum precision is to 10, but in Softdev's old ScriptPack, you could define a figure down to 15 figures.  That's one possibility.  Perhaps it would be best to work to a lesser degree of precision and let ACIS make adjustments that'll let an action work, but who can you ask about that?  Even a yes or no answer.  Another is TC's curve definitions.  In ViaCAD, maximum curve definition is degree 22.  You can't draw a degree 22 curve, I think, but you can raise the order/degree, and when spline surfaces intersect, the degree of the intersection curve is the product of the degrees of the two surfaces.  Plus one. Or less one, can't remember.   When the intersecting curve is of a higher order than the program is capable of computing, the program resorts to a subdivided curve and uses piecewise approximations along segments of the curve, a higher-order version of TC's polyline approximation, which brings gaps below ACIS' fixit point.  I don't think that TC works that closely on curve definitions, although you can raise the degree to 9, so that's another possibility, and that was the reason I propose to scale entities down to the point at which gaps are below ACIS's tolerance, which is an absolute.  Because TC gives warning of losing part history with some operations, I assume those ops will break associativity.

Spatial's information on ACIS functions is accessible, but it's mostly referring to programming and the math behind it, and I'm not programmer or mathematician, so what I've written above has a smattering of reasoning, but I can't argue it with figures.  I try to gear my own workflow toward what the programs will allow, more than what I think should work.....

Ken Friend

Sorry to have missed the original post on this. I have just a couple comments to add.

Having worked with commercial CAD systems such as Computervision and EDS Unigraphics, the problem you describe plagues almost every CAD vendor. In those systems, this problem seemed to come from two sources, surface vector orientation, and coplanar surface or faces. I encountered this many times with TC, and have a couple ways to get around the difficulty. First, I have found I can move an object as little as 0.001" left, right, up, down, in, or out and the addition of two solids will work; sometimes it does not. If that doesn't work, I scale the object either to 1.001 or 0.999 in all directions. On rare occasions I have to use slightly larger values to break the stalemate. These techniques work for the type of work I do, but I would not recommend for precision fits like shaft to bearing fits.

I agree that TC needs more tools to repair these difficulties. There is a free download from MiniMagics that allows a person to see problem areas with SAT files. The areas represented are usually the same as with the original model. You can simply save your model as a SAT file and call it up in the viewer. P.S. you won't be able to "cure" any problems unless you pay $3K for the software....

Ken
Ken Friend
AMD Ryzen 7 3700X 8-Core Processor                3.70 GHz
32GB
Radeon RX 570 Series
Windows 11 Home

JoeM

Quote from: kfriend on February 11, 2010, 07:44:46 AM
Sorry to have missed the original post on this. I have just a couple comments to add.

There is a free download from MiniMagics that allows a person to see problem areas with SAT files. The areas represented are usually the same as with the original model. You can simply save your model as a SAT file and call it up in the viewer. P.S. you won't be able to "cure" any problems unless you pay $3K for the software....

Ken

Thanks for the Minimagics tip - I will check this out.

JoeM

Kenneth Martin

Just out of curiosity, why would one need to "repair" a solid. Is this something that happens via file translation from one program to the next? Just something I have not had the "pleasure" of dealing with. :-)
TurboCAD user since v3
TurboCAD on flickr || My twitter ||

Ken Friend

There are times when solids don't play well together. Adding, subtracting, shelling, etc. can cause errors instead of results. Vector errors can occur when lofts and similar actions are made between irregular curves that have been created in opposite directions, i.e.; clockwise vs. counterclockwise. When adjacent solids share exactly the same face, the boolean math has a hard time dealing with operations concerning both entities. In either case, it would be nice to "see" which directions the vectors are headed, and to have a tool that would alleviate the coplanar math problems. Some vendors do have tools like this, but they are dealing with problems that can't always be fixed. The problem is not unique to TC.
Ken Friend
AMD Ryzen 7 3700X 8-Core Processor                3.70 GHz
32GB
Radeon RX 570 Series
Windows 11 Home

Kenneth Martin

Quote from: kfriend on February 11, 2010, 01:39:46 PM
There are times when solids don't play well together. Adding, subtracting, shelling, etc. can cause errors instead of results. Vector errors can occur when lofts and similar actions are made between irregular curves that have been created in opposite directions, i.e.; clockwise vs. counterclockwise. When adjacent solids share exactly the same face, the boolean math has a hard time dealing with operations concerning both entities. In either case, it would be nice to "see" which directions the vectors are headed, and to have a tool that would alleviate the coplanar math problems. Some vendors do have tools like this, but they are dealing with problems that can't always be fixed. The problem is not unique to TC.

Thanks for the reply. I sort of in the dark, if you know what I mean.
TurboCAD user since v3
TurboCAD on flickr || My twitter ||

Ken Friend

I gave some bad information in my previous post. MiniMagics lets a person look at STL files not SAT files. I was thinking one thing and wrote another. Sorry, these darned senior moments seem to be coming more frequently nowadays.....
Ken Friend
AMD Ryzen 7 3700X 8-Core Processor                3.70 GHz
32GB
Radeon RX 570 Series
Windows 11 Home

Josh T.

Quote from: kfriend on February 11, 2010, 07:44:46 AM
There is a free download from MiniMagics that allows a person to see problem areas with SAT files. The areas represented are usually the same as with the original model. You can simply save your model as a SAT file and call it up in the viewer. P.S. you won't be able to "cure" any problems unless you pay $3K for the software....

I just installed the MiniMagics program this morning and did some experiments exporting a TurboCAD part to STL Format using various ACIS quality settings and importing into MiniMagics.  Here are a few observations:

-A Hollow cylinder with some short cylindrical bits subtracted from it opens fine if ACIS was set to "quality" when exported
-The same cylinder is still okay if it is exported next to a non-overlapping complicated part (lots of fillets and intersected shapes)
-The cylinder shows problems at all the edges if it is imported with the part overlapping (not 3D add--you can still see the hidden overlapped edges)
-The cylinder shows the same problems when exported after adding the parts together

I have read elsewhere on this forum that TurboCAD is kinda iffy when exporting to STL format.  I'm sure MiniMagics is reading the data just fine; I just wonder how useful TC-saved STL files are for evaluation purposes.  I have exported (in STP or STEP format) the same complicated drawing (as above) into a different free program (suggested by GregT) without problems, so it may just be the way TurboCAD translates STL.  Of course, if STL is the format one needs, then I suppose it could be a problem no matter what.  In other words, problems found via MiniMagics may merely be an evaluation of TurboCAD's STL-exporting capabilities rather than an evaluation of the quality of a particular ACIS solid model.

I hope this info is useful to someone.   :)
Josh T.
meatballrocketry.com
TC Pro 18.2 & Platinum 2016

Josh T.

On a related note...

Here is an older post from Murray Dickenson on improving STL output from TurboCAD:

http://forums.turbocad.com/index.php/topic,459.0.html
Josh T.
meatballrocketry.com
TC Pro 18.2 & Platinum 2016

Ken Friend

Good feedback guys. I have attached a screen shot of STL parts I had made with STL files from TC. I didn't perform any special tricks; the files came straight from TC. There were some errors, but the vendor was able to correct them with an "automatic" feature within his full version of MiniMagics.


Ken

[attachment deleted by admin]
Ken Friend
AMD Ryzen 7 3700X 8-Core Processor                3.70 GHz
32GB
Radeon RX 570 Series
Windows 11 Home

Josh T.

Quote from: kfriend on February 12, 2010, 08:28:56 AM
Good feedback guys. I have attached a screen shot of STL parts I had made with STL files from TC. I didn't perform any special tricks; the files came straight from TC. There were some errors, but the vendor was able to correct them with an "automatic" feature within his full version of MiniMagics.


Ken

That looks great, Ken.  That must be the same ship you posted renders of a while back.  Really cool!  8)  So is that going to be the basis for molds for selling resin kits, or do you have something else planned for that beauty? 
Josh T.
meatballrocketry.com
TC Pro 18.2 & Platinum 2016

Ken Friend

Yes, this is the same Normandie ocean liner that has made the rounds on the forum. I appreciate the comments. My partner and I will be marketing the ship as a kit once we have all the parts molded and know that we can generate the quality the ship builders expect. I have created over 100 other part files and still have about that many to go. It will be unique in that it will represent the ship as originally built, not as it is typically modeled after 1937 modifications. There still are no injection molded or resin kits of the ship in either configuration. The research has been exhausting, but we feel it will be hard to question the accuracy. The only other kit we know of that represents the original configuration of the Normandie was done in 1938. It is wood and the first line of the instructions say "make wood look like hull". I think we will be able to do a little better than that.....
Ken Friend
AMD Ryzen 7 3700X 8-Core Processor                3.70 GHz
32GB
Radeon RX 570 Series
Windows 11 Home

Josh T.

Quote from: kfriend on February 12, 2010, 10:10:29 AM
There still are no injection molded or resin kits of the ship in either configuration. The research has been exhausting, but we feel it will be hard to question the accuracy. The only other kit we know of that represents the original configuration of the Normandie was done in 1938. It is wood and the first line of the instructions say "make wood look like hull". I think we will be able to do a little better than that.....

The nice thing is that--thanks to your rendered work in TurboCAD--you won't have to necessarily finish a model prototype in order to have "box art".

Do you know if you're going to go with resin or injection-molded?  If resin, that's a ton of rubber to deal with, and of course, rubber will need to be replaced due to wear, shrinking, etc.  I've read that the tooling for injection moulding can be extremely expensive.  Either way, it sounds like you'll have your hands full. 
Good luck with the project.

Some folks have prodded me every once in a while to offer a kit version of my 1:59 scale Saturn I model, but having to deal with the resin parts (and there are a lot of them), and keeping things light enough to make it flyable is not an easy task.  For those who haven't seen the link before, the project starts here:  http://www.meatballrocketry.com/saturn1_59.htm.
Josh T.
meatballrocketry.com
TC Pro 18.2 & Platinum 2016

Henry Hubich

Quote from: kfriend on February 12, 2010, 10:10:29 AM
It is wood and the first line of the instructions say "make wood look like hull".

I love it!

Henry H