davesrocketshop / Rocket

FreeCAD Rocketry Workbench
GNU Lesser General Public License v2.1
53 stars 11 forks source link

Rounded objects do not always render smoothly and leave "dimples" when exported to STL, AMF, OBJ file formats #25

Closed livetoski78 closed 2 years ago

livetoski78 commented 2 years ago

It's hard to describe this, so I added some pictures to illustrate. This seems to be an issue that occurs when creating an object with multiple compound radii. You can see in the first picture that the leading edge and trailing edge of the fins (airfoil shaped) show some artifacts rather than smooth lines in FreeCAD. In the second picture, I have loaded an exported STL of a nose cone into Cura and the "dimples" are clearly visible on the side of the nose cone. I have confirmed this happens when exporting to OBJ and AMF file formats, as well, albeit the "dimple" pattern is slightly different. So far, I have been able to smooth them with filler and sanding, but it's a lot of extra work...you can't just print a piece, clean up the edges, and go.

Note: for the nose cones, it appears to affect Von Karman and Haack, but not ogive.

image

image

davesrocketshop commented 2 years ago

Generally speaking, I don't worry too much about renders. They're display artifacts and occur under a variety of conditions within FC. The underlying model may not be the problem. That being said, it's worth investigating if you can share your model.

The dimpling is potentially more serious. It may be a problem with the mesh generation, so may also have a simple work around using the Mesh workbench. Again if you are willing to share your model I can investigate.

Additional information that would be helpful:

  1. Your FreeCAD version information. You can get this by going to 'Help -> About FreeCAD', selecting 'Copy to Clipboard' pasting it here.
  2. Cura version information. This is displayed on the splash screen when you start up, or from the 'Help -> About' menu

Thanks for reporting this.

davesrocketshop commented 2 years ago

After some experimentation, I've found an export setting that can help significantly. The problem is not the model, but the granularity of the default mesh generated when exporting. Consider this example:

Artifacts

The nose on the left used the default export parameters. The one on the right was generated after adjusting the maximum mesh deviation. You can do this by selecting 'Edit -> Preferences...'. Select 'Import-Export' in the left hand column, and then the 'Mesh Formats' tab at the top. Decrease the size of 'Maximum mesh deviation'. For this option, the trade off is that as you decrease the deviation, you increase both the memory requirements and the compute time. For more square objects, this isn't really required, but for rounded objects it can make a big difference. This is the setting I used:

ArtifactExport

livetoski78 commented 2 years ago

Generally speaking, I don't worry too much about renders. They're display artifacts and occur under a variety of conditions within FC. The underlying model may not be the problem. That being said, it's worth investigating if you can share your model.

The dimpling is potentially more serious. It may be a problem with the mesh generation, so may also have a simple work around using the Mesh workbench. Again if you are willing to share your model I can investigate.

Additional information that would be helpful:

  1. Your FreeCAD version information. You can get this by going to 'Help -> About FreeCAD', selecting 'Copy to Clipboard' pasting it here.
  2. Cura version information. This is displayed on the splash screen when you start up, or from the 'Help -> About' menu

Thanks for reporting this.

FreeCAD v0.19.3 Cura v4.12.1

davesrocketshop commented 2 years ago

Apologies. That's me being an idiot. I've been testing the pre-release version and used that one by mistake.

You can still do this, but you have to go through the Mesh workbench. From the workbench select the part, and then select 'Meshes -> Create mesh from shape...". You'll see a dialog on the left with a few more options. This is what I used:

ArtifactMesh

Then select the generated mesh and 'File->Export..."

davesrocketshop commented 2 years ago

Again, me being an idiot. The preference I showed is available in 0.19, but workbench options only show up after the workbench has been opened.

Switch to the Mesh Design workbench. You can do this from the main screen... it's not necessary to open a project. This will allow you to see the mesh options in the preferences as I showed earlier.

livetoski78 commented 2 years ago

Thanks Dave!, Yep, I figured it out (load the Mesh Workbench first) just before I saw this. It's a good hack to know, as I also posted it to a Facebook group I belong to for printed rocketry. Apparently, I'm not the only one that has run into this dimpling issue.

davesrocketshop commented 2 years ago

Share the wealth :)

I'll close this issue out then.