Skip to content

Shape Healing, STP Import - Revolved shape in STEP file is imported inverted#699

Merged
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
ikochetkova:gh_bug378
Sep 4, 2025
Merged

Shape Healing, STP Import - Revolved shape in STEP file is imported inverted#699
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
ikochetkova:gh_bug378

Conversation

@ikochetkova
Copy link
Copy Markdown
Contributor

Make the degenerated torus bounded in two values of parameters processed as a regular to insert a seam edge properly.

@ikochetkova ikochetkova requested a review from a team September 3, 2025 12:33
@ikochetkova ikochetkova self-assigned this Sep 3, 2025
@ikochetkova ikochetkova added 2. Bug Something isn't working 1. Data Exchange Import/Export or iterating of the CAD data 2. Regression labels Sep 3, 2025
@ikochetkova ikochetkova linked an issue Sep 3, 2025 that may be closed by this pull request
Make the degenerated torus bounded in two values of parameters processed as a regular to insert a seam edge properly.
@dpasukhi dpasukhi changed the title Revolved shape in STEP file is imported inverted Shape Healing, STP Import- Revolved shape in STEP file is imported inverted Sep 3, 2025
@dpasukhi dpasukhi changed the title Shape Healing, STP Import- Revolved shape in STEP file is imported inverted Shape Healing, STP Import - Revolved shape in STEP file is imported inverted Sep 3, 2025
@dpasukhi dpasukhi added this to the Release 7.9.2 milestone Sep 3, 2025
@dpasukhi dpasukhi requested a review from Copilot September 3, 2025 15:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where revolved shapes in STEP files are imported with inverted orientation by modifying the shape healing logic for degenerated torus surfaces. The fix ensures that when a torus is bounded by two parameter values, it's processed as a regular surface to properly insert seam edges.

Key Changes

  • Modified the degenerated torus detection logic to consider the presence of a second wire
  • Added a test case to verify the fix for imported STEP files with revolved shapes

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.cxx Added logic to treat degenerated torus as regular when second wire exists
tests/bugs/step/gh_bug378 Added test case for verifying proper import of revolved STEP shapes

@dpasukhi dpasukhi merged commit 0d30b42 into Open-Cascade-SAS:IR Sep 4, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Maintenance Sep 4, 2025
dpasukhi pushed a commit that referenced this pull request Sep 6, 2025
…nverted (#699)

Make the degenerated torus bounded in two values of parameters processed as a regular to insert a seam edge properly.
dpasukhi pushed a commit that referenced this pull request Sep 6, 2025
…nverted (#699)

Make the degenerated torus bounded in two values of parameters processed as a regular to insert a seam edge properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Data Exchange Import/Export or iterating of the CAD data 2. Bug Something isn't working 2. Regression

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Revolved shape in STEP file is imported inverted

3 participants