DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0033570

Modeling Algorithms - Incorrect result of cutting spheres

CommunityOCCT:Modeling Algorithmsverified7 public notes

Search issues

Description

I found there might be a problem of the BRepAlgoAPI_Cut algorithm.
For 2 spheres,s1 and s2:
s1=BRepPrimAPI_MakeSphere(gp_Pnt(0,5.5,18),4.0).Shape()
s2=BRepPrimAPI_MakeSphere(gp_Pnt(0,4.5,14),1.0).Shape()

as shown in pict1. when I cut the s2 from s1 using the BRepAlgoAPI_Cut and got the shape s3:
s3=BRepAlgoAPI_Cut(s1,s2).Shape()

The result is shown in pict2. It seems the result is wrong.
But when I change the radius of sphere s2 from 1.0 to 0.99, I got the right shape as shown in pict3.

Steps to reproduce

psphere s1 4
psphere s2 1
ttranslate s1 0 5.5 18
ttranslate s2 0 4.5 14

bcut result s1 s2

Additional information

Public activity

7 archived notes

Participants are labeled by their role within this record.

01Author
Attachment 3 (PNG) (108,718 bytes)   
Attachment 2 (PNG) (105,172 bytes)   
Attachment 1 (PNG) (103,675 bytes)   
02Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
Date: Thu Jun 13 16:06:47 2024 +0100

    0033570: Modeling Algorithms - Incorrect result of cutting spheres
    
    The reason of current problem lies inside projection algorithm
    Function_SetUVBounds() for projection of circle onto sphere produces shifted bounds.
    Incorrect checking of placement on summit of the sphere was fixed.
03Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
Date: Thu Jul 4 13:48:22 2024 +0100

    0033570: Modeling Algorithms - Incorrect result of cutting spheres
    
    The reason of current problem lies inside projection algorithm
    Function_SetUVBounds() for projection of circle onto sphere produces shifted bounds.
    Incorrect checking of placement on summit of the sphere was fixed.
04Commenter 3
05Author
06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]
07Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]