realthunder / FreeCAD

Link branch FreeCAD
Other
763 stars 45 forks source link

Step file exported from revolution shape is broken #966

Open wsteffe opened 6 months ago

wsteffe commented 6 months ago

Is there an existing issue for this?

Version

0.21 (Development)

Full version info

[code]
OS: Ubuntu 22.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.38957 (Git)
Build type: Unknown
Branch: LinkStable
Hash: fef2b22db6aa7f6304a81a9fddb27a44b613abfc
Python 3.10.12, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.7.0
Locale: English/United States (en_US)
Installed mods: 
  * asm3 0.12.0
  * Assembly4 0.50.2
[/code]

Subproject(s) affected?

PartDesign

Problem description

The generated geometry associated with annexed FC document seems good inside of FC:

Screenshot from 2024-03-06 11-34-41

But after exporting it in a step file and reimporting in Catia il looks like the folowing: catiaImport

filterV7.zip

Anything else?

No response

Code of Conduct

wsteffe commented 6 months ago

Thinking the problem could be related with the seem edge, now I have tried to make smaller rotation (90 deg instead of 360) but the problem persists:

Screenshot from 2024-03-07 13-06-42 catiaImport2

Even if it happen in the opposite direction (step export instead of step import), I suspect that it is related with OCC issue https://tracker.dev.opencascade.org/view.php?id=33620

wsteffe commented 6 months ago

Here is the FC document used for 90 deg rotation filterV7.zip

realthunder commented 5 months ago

Have you tried open the STEP file in FreeCAD? It looks normal to me. I also tried viewing the file in some online viewer and looks normal too. Maybe it's Cartia having problem? Could you please post your STEP file here?

wsteffe commented 5 months ago

The step file is : CMP_FILTER_V7_step.zip I may confirm that it looks ok inside of FreeCAD but it is not a Catia problem. I have opened it also with ZW3D and it looks bad as in Catia.

You may look also at case https://tracker.dev.opencascade.org/view.php?id=33618. The original case posted by ebknudsen goes in the opposite direction but I thinks it is just the other face of the same problem. Using a commercial CAD (OneShape) he revolved a profile made of circles arcs (while I had used ellipse arcs). The exported/reimported step file looks good in OneShape but it looks bad in his viewer tool (not tried with FreCAD) which is based on OpenCascade library. In my opinion OCC is doing something wrong when it exports this kind of structure (the file is not compliant with the step standard).