How to resolve Mesh Topological Errors

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
dave.laban
Posts: 320
Joined: Thu Mar 11, 2021 8:38 am
Answers: 5
x 48
x 390

How to resolve Mesh Topological Errors

Unread post by dave.laban »

So for the first time I've got myself some STL files from a 3D Scan, that I now need to turn in to a usable model that I can then make some modifications to.

I can import all my STLs in to SW fine and get some imported mesh bodies (with no errors).
image.png
image.png (11.76 KiB) Viewed 8178 times
First problem, all the parts are in wonky orientations relative to base planes which I'm finding makes thing difficult to mate them up in an assembly. Using the Move/Copy Body command isn't working for me as I can't use any of the mesh body geometry (element face or edge) to then mate to one of the base planes. Reading around, the Scan to 3D addin allows for body manipulation so, I fire that up and reimport my mesh. I now have an error in the tree with the error "The mesh has topological errors!"
image.png
Given that the software isn't giving much useful guidance at this point, what are my options for resolving said topological errors?

I suspect this will be the first of several questions on this subject...
User avatar
mike miller
Posts: 878
Joined: Fri Mar 12, 2021 3:38 pm
Answers: 7
Location: Michigan
x 1070
x 1231
Contact:

Re: How to resolve Mesh Topological Errors

Unread post by mike miller »

FWIW, Solid Edge Synchronous can easily rotate and move bodies. I can do it for you if you post the file.....
He that finds his life will lose it, and he who loses his life for [Christ's] sake will find it. Matt. 10:39
dave.laban
Posts: 320
Joined: Thu Mar 11, 2021 8:38 am
Answers: 5
x 48
x 390

Re: How to resolve Mesh Topological Errors

Unread post by dave.laban »

Thanks for the offer Mike! I'll double check if I'm allowed to be sharing these models.

As for my original query, I've had some luck with the ScanTo3D Mesh Prep Wizard now which has done some sort of magic to remove the error from the tree so I might be able to cobble along for now.
User avatar
DennisD
Posts: 706
Joined: Fri Mar 12, 2021 10:04 am
Answers: 1
Location: Near Jacksonville, FL
x 1031
x 1467

Re: How to resolve Mesh Topological Errors

Unread post by DennisD »

I have an STL file sent to me. I want to perform a shell operation to hollow it out, or to even make extrude cuts, but am getting nowhere. I was hoping the ScanTo3D add-in would help, but I'm still not getting anywhere. Can any of you help? I'm using SWX2021.
Attachments
Interior_Door_Handle_v4.2.stl
(1.51 MiB) Downloaded 145 times
Brick walls are there for a reason. The brick walls aren't there to keep us out. The brick walls are there to show us how badly we want things.
- - -Randy Pausch
User avatar
JSculley
Posts: 643
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 877

Re: How to resolve Mesh Topological Errors

Unread post by JSculley »

DennisD wrote: Thu Dec 09, 2021 11:17 am I have an STL file sent to me. I want to perform a shell operation to hollow it out, or to even make extrude cuts, but am getting nowhere. I was hoping the ScanTo3D add-in would help, but I'm still not getting anywhere. Can any of you help? I'm using SWX2021.
Here's a part file generated from your model after using the AutoSurface tool in DesignX and exporting to SW.
Interior_Door_Handle_v4.SLDPRT
(582.87 KiB) Downloaded 137 times
dave.laban
Posts: 320
Joined: Thu Mar 11, 2021 8:38 am
Answers: 5
x 48
x 390

Re: How to resolve Mesh Topological Errors

Unread post by dave.laban »

mike miller wrote: Thu Dec 09, 2021 8:17 am FWIW, Solid Edge Synchronous can easily rotate and move bodies. I can do it for you if you post the file.....
Not allowed to share the files, but I was allowed to get the 30 day free trial of SE - so far it's looking a better prospect for hacking about with these mesh files and I've already got them oriented how I want. Thanks for the pointer!
User avatar
DennisD
Posts: 706
Joined: Fri Mar 12, 2021 10:04 am
Answers: 1
Location: Near Jacksonville, FL
x 1031
x 1467

Re: How to resolve Mesh Topological Errors

Unread post by DennisD »

JSculley wrote: Thu Dec 09, 2021 11:48 am Here's a part file generated from your model after using the AutoSurface tool in DesignX and exporting to SW.

Interior_Door_Handle_v4.SLDPRT
Thanks, @JSculley, but I am really hoping to learn a technique within SWX (desktop Professional). Your model had many fewer surface segments, but they still keep me from achieving the desired result. If this was a native SWX part, or even a dumb solid with only a single face on the flat end and the other surfaces minimum in number I would be able to select the end face and shell the interior.

I thought that SWX, in the last couple of years, introduced some abilities to deal with STL files such as this. I tucked that nugget of info far into the back of my brain, where it gets mushed around with a lot of other things I might never use, because I had no use for it at the time. Now I'm not sure that's something they did. I haven't been finding anything in their help and I really don't like wading around in their 3DSwamp to look for it either. That's why I came here for help.
Brick walls are there for a reason. The brick walls aren't there to keep us out. The brick walls are there to show us how badly we want things.
- - -Randy Pausch
User avatar
SPerman
Posts: 2053
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2224
x 1874
Contact:

Re: How to resolve Mesh Topological Errors

Unread post by SPerman »

There are online resources that will take your stl and convert it to a step/iges. I've never used them so I can't say how effective they are.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
SPerman
Posts: 2053
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2224
x 1874
Contact:

Re: How to resolve Mesh Topological Errors

Unread post by SPerman »

All of the examples I find start with making sure the STL is manifold, which is always done in something other than solidworks.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: How to resolve Mesh Topological Errors

Unread post by Lucas »

@dave.laban All mesh you get straight from a scan will have topology errors, it is better to clean and reposition it in other software before importing in SW.

For example, this is a bike stem I scanned this week, in Materialise Magics shows all errors of the mesh:
image.png
image.png
After cleaning up in PolyWorks Modeler Light and Magics:
image.png
image.png
In Rhino there is the QuadRemesh that can convert the STL mesh to SubD and later to NURBS
image.png
After that it is easier to work with a step file (NURBS) in SW, the Intersection Curve and Silhouette Entities will provide better results. Also SW wont be so slow, since it cannot handle STL files very well
image.png

@DennisD file after converting in Rhino
image.png
image.png
image.png
I just used the QuadRemesh feature, there is a longer workflow in Rhino: creating guide curves and rebuild the NURBS to get fewer faces.


Most popular software to deal with Reverse Engineering are Geomagic Design X and PolyWorks Modeler, but they cost around 20,000 USD. Faro RevEng is about half the price, I might get a trial next year...

I made a topic about RE in the SubD and Mesh subforum, if you are interested:
viewtopic.php?f=29&t=1264
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: How to resolve Mesh Topological Errors

Unread post by Lucas »

DennisD wrote: Thu Dec 09, 2021 2:28 pm I am really hoping to learn a technique within SWX (desktop Professional).
Some tools used in SW for RE

Convert to Mesh Body (sometimes the tools won't work without this)
Slicing (great to get many profiles fast)

Sketch tools:
Intersect Curve (for profile)
Silhouette Entities (for profile)
Spline on Surface (comes in hand when you need BRep for surfacing)
Fit Spline (For fast resketch or complex geometry)

**********************************************************************************************************************************************
I took this door handle as an exercise today, here are the results I got for now:
1) Used Slicing and Intersect Curve to get the profiles
2) Renamed the Sketches I wanted with numbers; used Fit Spline and deleted the original lines from Slicing.
3) Made some Guide Splines as Guide Curves
4) Divided the solid in many parts, because it was slow and failing to build
5) Could not finish the tip, SW was building it in a bad way, probably due to the Fit Spline change

The Body Comparison from it:
image.png
Results: The amount of points used in Fit Spline was giving bad results; increasing deviation, computational time, and reduction of the user's patience
Conclusion: It is better to use Slicing to get the measurements and draw everything else. Also, the file will became slow if many profiles are created due to the amount of points from the mesh.
OBS: Lots of bugs and geometry loosing relations, used the Freeze Bar to stop that.
*******************************************************************************************************************
Using Rhino QuadRemesh:

I tried many configurations and also Guide Curves. In the end, just the regular settings were enough to get a solid build from 10 surfaces. (rebuilding the cap will be just 6)

The Body Comparison in SolidWorks:
image.png
Results: Got a NURBS solid from mesh with high precision
Conclusion: With few surfaces the quality of the Intersection Curve is much better. It is easier to rebuild the solid in SW, or use the Step file fast.
Get Rhino, it's cheaper than any SW add-in =)
image.png

************************************************************************************************
Critics and suggestions are welcome, I am trying to get better at RE
Attachments
From SW.SLDPRT
(6.89 MiB) Downloaded 148 times
From Rhino.SLDPRT
(2.36 MiB) Downloaded 121 times
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: How to resolve Mesh Topological Errors

Unread post by Lucas »

Guess I went off-topic, sorry for that ¯\_(ツ)_/¯
dave.laban
Posts: 320
Joined: Thu Mar 11, 2021 8:38 am
Answers: 5
x 48
x 390

Re: How to resolve Mesh Topological Errors

Unread post by dave.laban »

Don't apologise! Fascinating insight in to a side of CAD modelling I've never touched before. Highly educational and gratefully received.
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: How to resolve Mesh Topological Errors

Unread post by Lucas »

Glad you liked it UU

Btw, @matt posted this cool model some time ago:viewtopic.php?p=11708#p11708

The vane is a tricky part to do, it's when Spline on Surface shines lol
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2304
x 997
Contact:

Re: How to resolve Mesh Topological Errors

Unread post by zxys001 »

Lucas wrote: Fri Dec 10, 2021 6:08 am Glad you liked it UU

Btw, @matt posted this cool model some time ago:viewtopic.php?p=11708#p11708

The vane is a tricky part to do, it's when Spline on Surface shines lol

I got similar results and was able to shell at 2mm.. for less than 5mins of work, not bad overall!

BTW,.. for those interested and a great stocking stuffer, for $295... is another great program written by the same guy.
... http://moi3d.com
Attachments
moi3d.png
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2304
x 997
Contact:

Re: How to resolve Mesh Topological Errors

Unread post by zxys001 »

..merry xmas!
Attachments
mxmas0.png
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: How to resolve Mesh Topological Errors

Unread post by Lucas »

zxys001 wrote: Sat Dec 11, 2021 4:02 pm..merry xmas!
You did in Rhino or MOI3d? oa
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: How to resolve Mesh Topological Errors

Unread post by Lucas »

Checking more tool, this time from ScanTo3D

Mesh Prep Wizard
1) Reposition the part (automatic, using reference and numerically)
2) Delete mesh faces
3) Mesh enhancement (Triangle reduction and Smoothness)
4) Starts Surface Wizard

Mesh Edit
It is Move/Copy Bodies feature, plus scale and offset

Surface Wizard
Automatic and Guided NURBS creation
Automatic: Allow to select Surface Detail and Edit the feature lines (has some glitches but can fix bad geometry)
Guided: Allow to select a symmetry plane and extract surfaces semi-automatically, but it is difficult to set the boundaries. I just got bad results.

Curve Wizard
Failed to select the mesh, so whatever

Deviation Analysis
Need to reopen the STL file and import the solid generated to work. lol

*************************************************************************************************************
Tried to Shell the door handle using the Automatic (generated with Min, Max and Intermediate details): Failed
image.png
Importing a Scanned Mesh I got the same topology error, but was able to create surfaces from it automatically. (some intersecting/overlapping triangles are not a big deal to print)
image.png
The quality from the NURBS solid was bad tho.
Minimum Detail: 2245 surfaces
Maximum Detail: 37189 surfaces (so slooow)
Rhino: 469 surfaces (and repaired the crappy boundaries)

ScanTo3D for Reverse Engineering:
- For Meshes created by CAD (door handle) it works OK or Bad, depending on what you want to do.
- For Scanned Meshes the amount of surfaces generated is too high, it is easier to work with mesh data. tu
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2304
x 997
Contact:

Re: How to resolve Mesh Topological Errors

Unread post by zxys001 »

Great work, Lucas! oa UU
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
User avatar
DennisD
Posts: 706
Joined: Fri Mar 12, 2021 10:04 am
Answers: 1
Location: Near Jacksonville, FL
x 1031
x 1467

Re: How to resolve Mesh Topological Errors

Unread post by DennisD »

I appreciate all the help and suggestions.

This handle is being done by high school students. It is an interior door handle for a B-17 restoration project. There are no markings on the part to indicate make/model and there are no detailed drawings on it so they are using calipers and their modeling skills. They chose to do this originally in Rhino because they could not figure out how to do it in SWX. I don't have Rhino, nor do I want to use it so I asked for something in SWX.

They initially sent me an STL and I just couldn't do anything with it. I asked for a dumb solid from Rhino and got a Parasolid. They had added a few features and now I really needed to work on it because, well, the changes weren't good.
image.png

At least I could cut away the non-blended and non-round barrel they had added and make it match the original different non-round barrel. Really?! :?
image.png
I was also trying to hollow this out somewhat, to a wall thickness of approximately .150". This was going to be printed in a resin printer so it needed to be hollowed out a bit, but the slicer program was leaving artifact tessellated holes using the STL version. Shelling the Parasolid in SWX was failing when I used anything close to .15" so I had to resort to creating a lofted cut. But I got it!

The printed part matches very nicely with the original so now we have a model we can use to make replications.

I would like to see better native abilities in SWX to deal with STL files and was really hoping you all had the answers. Thanks for all your efforts!!
Brick walls are there for a reason. The brick walls aren't there to keep us out. The brick walls are there to show us how badly we want things.
- - -Randy Pausch
Imics13
Posts: 50
Joined: Fri Apr 02, 2021 3:33 am
Answers: 0
x 41
x 100
Contact:

Re: How to resolve Mesh Topological Errors

Unread post by Imics13 »

Hi Guys,

Sorry for dropping a Solid Edge video here, but somebody has talked about it. I've recorded a video how Solid Edge handles stl file what was shared here. Yes, the result depends on quality of stl file, but SE has some great tools to edit it. Peace&love!

Here is the video:


BR,
BR,
Imics - SolidEdgeST.wordpress.com
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: How to resolve Mesh Topological Errors

Unread post by Lucas »

Imics13 wrote: Thu Dec 16, 2021 7:32 am Hi Guys,

Sorry for dropping a Solid Edge video here, but somebody has talked about it. I've recorded a video how Solid Edge handles stl file what was shared here. Yes, the result depends on quality of stl file, but SE has some great tools to edit it. Peace&love!

Here is the video:


BR,
Wish SW could do that, pretty awesome **
Post Reply