Skip to content

Shape Healing - Reusing Surface Analysis for Wire fixing#565

Merged
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:surface_analyzer_cascading
Jun 23, 2025
Merged

Shape Healing - Reusing Surface Analysis for Wire fixing#565
dpasukhi merged 2 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:surface_analyzer_cascading

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

Providing prepared analysis from ShapeFix_Face to wire.

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 enhances the wire fixing functionality by enabling the reuse of prepared surface analysis from ShapeFix_Face for wire repairs. Key changes include:

  • Addition of overloaded SetFace methods to accept both a face and a surface analysis object in ShapeFix_Wire and ShapeAnalysis_Wire.
  • Updates in ShapeFix_Face to invoke the new overloads, ensuring the surface analysis object is propagated.
  • Implementation of corresponding SetSurface methods in both ShapeFix_Wire and ShapeAnalysis_Wire.

Reviewed Changes

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

File Description
src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wire.hxx Added new overloads for SetFace and SetSurface to pass surface analysis.
src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.cxx Updated calls to SetFace to forward the surface analysis object.
src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Wire.hxx Added overloads for SetFace and SetSurface for surface analysis handling.
src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_Wire.cxx Implemented the new overloads for SetFace and SetSurface.
Files not reviewed (1)
  • src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wire.lxx: Language not supported

Comment thread src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Wire.hxx
Comment thread src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.cxx
@dpasukhi dpasukhi marked this pull request as ready for review May 25, 2025 21:32
@dpasukhi dpasukhi self-assigned this May 25, 2025
@dpasukhi dpasukhi added 1. Shape Healing Shape healing operation (fixing topology issue with BRep data) 2. Enhancement New feature or request labels May 25, 2025
@dpasukhi dpasukhi added this to the Release 8.0 milestone May 25, 2025
@dpasukhi dpasukhi requested a review from a team May 25, 2025 21:32
@dpasukhi dpasukhi moved this from Todo to Review in Maintenance May 29, 2025
@dpasukhi dpasukhi requested a review from ikochetkova May 30, 2025 09:15
Copy link
Copy Markdown
Contributor

@ikochetkova ikochetkova left a comment

Choose a reason for hiding this comment

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

I have one comment about the changes, please have a look.

void SetFace(const TopoDS_Face& theFace, const Handle(ShapeAnalysis_Surface)& theSurfaceAnalysis);

//! Set surface analysis for the wire
Standard_EXPORT void SetSurface(const Handle(ShapeAnalysis_Surface)& theSurfaceAnalysis);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please update Standard_EXPORT macros using equal for equal inline (should they be?) methods.

@github-project-automation github-project-automation bot moved this from Review to In Progress in Maintenance May 30, 2025
@dpasukhi dpasukhi force-pushed the surface_analyzer_cascading branch from 3ba1856 to 9c1ac64 Compare June 21, 2025 09:15
@dpasukhi dpasukhi requested a review from ikochetkova June 23, 2025 07:26
Copy link
Copy Markdown
Contributor

@ikochetkova ikochetkova left a comment

Choose a reason for hiding this comment

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

No more remarks.

@github-project-automation github-project-automation bot moved this from In Progress to Integration in Maintenance Jun 23, 2025
@dpasukhi dpasukhi merged commit 57d6038 into Open-Cascade-SAS:IR Jun 23, 2025
34 checks passed
@dpasukhi dpasukhi deleted the surface_analyzer_cascading branch June 23, 2025 17:22
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Shape Healing Shape healing operation (fixing topology issue with BRep data) 2. Enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants