OCCT
OCCT copied to clipboard
Revolved shape in STEP file is imported inverted
Description
The attached file is imported incorrectly. It appears as if the revolved shape is imported with the complementary angles instead.
Expected Behavior
Shape should look like this:
Actual Behavior
It looks like this instead:
Sample Code or DRAW Tcl Script
pload XDE OCAF VISUALIZATION MODELING
# read STEP file into XDE document using STEPCAFControl_Reader
jsupload /models/occ/as1-oc-214.stp
ReadStep D as1-oc-214.stp
# display the document in 3D viewer using XCAFPrs_AISObject
vinit View1
XDisplay -dispMode 1 D -explore
vfit
(sample from https://draw.sview.ru/xde-import-step/)
Operating System
Windows
Compiler
MSVC
Bitness
64-bit
OCCT Version
latest
Additional Files
STEP file to reproduce: b15.zip
7.6.3 it was correct. 7.7.0 - already broken. Regression. But unfortunately, can't be done for 7.9.0. Will be planned for the next release
Thanks. Can it be fixed at least in the development branch?
Yes, if the fix will be ready, it will be available in dev
I have another file that has a problem with a revolved surface. Not sure if it's the same problem, but I'm sharing here nonetheless.
You can see a sort of "blemish" at the center of the shape, when the surface is triangulated.
The regression commit: b0f92d3d5c78548a1e5d14f7b7c28463a3981092
I saw the fix in the draft PR, but you wrote that the regression is deeper. Would taking this commit be enough for fixing the case I posted? Or would I need to wait for a different PR?
@elias-bananaz the fix is planned to be done. But case is fixed. Need more changes for general case
Original issue resolved. In case of the keeping the problem, reopen the issue or create a new one.
The above fix worked well for the torus example, but I just tried testing the above PR with more complex geometry and found certain torodial surfaces continue to have inverted faces.
Please report it separately. It is new dateset. Please create a new bug report
Please report it separately. It is new dateset. Please create a new bug report
Will do, thank you!
Please report it separately. It is new dateset. Please create a new bug report
Will do, thank you!
No needs for any info to reproduce,you can create a bug report with empty details and these dataset