Archived issue #0024145
OCCT fails to project a wire onto BSplineSurface using BRepAlgo_NormalProjection
Description
When projecting the first attached wire, the BRepAlgo_NormalProjection throws an exception:
restore Attachment 1 (BREP) f
restore Attachment 4 (BREP) w1
#throws a Standard_ConstructionError:
nproject r w1 f
When projecting the second attached wire, there is not any exception, but the result is still not built:
restore Attachment 1 (BREP) f
restore Attachment 5 (BREP) w2
nproject r w2 f
Finally, when projecting the third wire, everything is OK:
restore Attachment 1 (BREP) f
restore Attachment 6 (BREP) w3
nproject r w3 f
All the wires lie on the face and are essentially the same, only translated a little. I have also attached a simple c++ code that was used to generate the face and the wires.
restore Attachment 1 (BREP) f
restore Attachment 4 (BREP) w1
#throws a Standard_ConstructionError:
nproject r w1 f
When projecting the second attached wire, there is not any exception, but the result is still not built:
restore Attachment 1 (BREP) f
restore Attachment 5 (BREP) w2
nproject r w2 f
Finally, when projecting the third wire, everything is OK:
restore Attachment 1 (BREP) f
restore Attachment 6 (BREP) w3
nproject r w3 f
All the wires lie on the face and are essentially the same, only translated a little. I have also attached a simple c++ code that was used to generate the face and the wires.
Steps to reproduce
See description above.
Public activity
4 archived notes
Participants are labeled by their role within this record.
I've just managed to generate a DRAW script that generates the shapes anew, if it helps:
pload ALL
bsplinecurve bc 2 4 0 3 0.3333 1 0.6666 1 1 3 0 0 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 0 1
bsplinesurf bs 2 2 0 3 1 3 2 2 0 3 1 3 0 0 0 1 1 -1 0 1 2 0 0 1 -1 1 0 1 1 1 0 1 3 1 0 1 0 2 0 1 1 3 0 1 2 2 0 1
mkedge e bc
mkface f bs
# throws Standard_ConstructionError:
nproject r e f
ttranslate e 0.01 0.01 0
# does nothing:
nproject r e f
ttranslate e 0.1 0.1 0
# projection OK:
nproject r e f
pload ALL
bsplinecurve bc 2 4 0 3 0.3333 1 0.6666 1 1 3 0 0 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 0 0 1
bsplinesurf bs 2 2 0 3 1 3 2 2 0 3 1 3 0 0 0 1 1 -1 0 1 2 0 0 1 -1 1 0 1 1 1 0 1 3 1 0 1 0 2 0 1 1 3 0 1 2 2 0 1
mkedge e bc
mkface f bs
# throws Standard_ConstructionError:
nproject r e f
ttranslate e 0.01 0.01 0
# does nothing:
nproject r e f
ttranslate e 0.1 0.1 0
# projection OK:
nproject r e f
Branch [archived branch] has been created by Participant.
[revision removed]
Detailed log of new commits:
Author: apv
Date: Tue Jul 25 13:03:24 2017 +0300
Test for 0024145: OCCT fails to project a wire onto BSplineSurface using BRepAlgo_NormalProjection
[revision removed]
Detailed log of new commits:
Author: apv
Date: Tue Jul 25 13:03:24 2017 +0300
Test for 0024145: OCCT fails to project a wire onto BSplineSurface using BRepAlgo_NormalProjection
Dear Commenter 1,
Problem described in issue is not reproduced on current state of OCCT.
Problem has been solved in OCCT6.9.0.
Please integrate branch CR24145 into the occt git-repository master.
Problem described in issue is not reproduced on current state of OCCT.
Problem has been solved in OCCT6.9.0.
Please integrate branch CR24145 into the occt git-repository master.
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]