Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0024185Community[OCCT] OCCT:Modeling Algorithmspublic2013-09-17 14:432021-06-01 17:33
ReporterVitezslav Zajic 
Assigned Toabulychev-ext 
PlatformWindowsOSVC++ 2010OS Version32 bit
Product Version[OCCT] 6.6.0 
Target VersionFixed in Version 
Summary0024185: Modeling Algorithms - Wrong projection of a wire to a face
DescriptionOpenCascade gives a wrong projection of the wire to the face1 (see attached files). The wire was constructed as an intersection between face1 and face2 and then smoothed by Approx_Curve3d. Both faces are attached, so you can compare the wire to the intersection of the faces yourself.
Steps To ReproduceDraw script:
restore face1.brep f1
restore wire.brep w
nproject r w f1

You can compare the wire in wire.brep to the intersection of the two faces:
restore face2.brep f2
section s f1 f2

TagsNo tags attached.
Test case numberbugs modalg_7 bug24185
Attached Files? file icon wire.brep (10,280 bytes) 2013-09-17 14:43
? file icon face1.brep (1,235 bytes) 2013-09-17 14:44
? file icon face2.brep (2,600 bytes) 2013-09-17 14:44

- Relationships
related to 0030090closedbugmaster Open CASCADE Modeling Algorithms - BRepLib::FindValidRange does not find valid range for the edge 

-  Notes
Vitezslav Zajic (reporter)
2013-10-25 19:00

The bug seems to be caused by numerical instability when approximating the projection by a bspline curve. If you increase allowed number of poles of the bspline curve and/or increase precision, the projection looks fine:

nproject r w f1 0.0005 C0 14 1000

This is not so surprising, but maybe default precision/number of poles is too large or small, respectively? Even with few poles, could the approximation be more stable?
apv (tester)
2017-07-25 14:53

Problem described in issue is reproduced on current state of OCCT
git (administrator)
2017-07-25 14:57

Branch CR24185 has been created by apv.

SHA-1: 5fb9e6a42158c6f780f0c552dc605f6181c115fb

Detailed log of new commits:

Author: apv
Date: Tue Jul 25 14:56:37 2017 +0300

    Test for 0024185: Wrong projection of a wire to a face

- Issue History
Date Modified Username Field Change
2013-09-17 14:43 Vitezslav Zajic New Issue
2013-09-17 14:43 Vitezslav Zajic Assigned To => ifv
2013-09-17 14:43 Vitezslav Zajic File Added: wire.brep
2013-09-17 14:44 Vitezslav Zajic File Added: face1.brep
2013-09-17 14:44 Vitezslav Zajic File Added: face2.brep
2013-10-25 19:00 Vitezslav Zajic Note Added: 0026292
2017-07-25 14:53 apv Note Added: 0068677
2017-07-25 14:54 apv Test case number => bugs modalg_7 bug24185
2017-07-25 14:57 git Note Added: 0068678
2018-08-28 11:35 emv Relationship added related to 0030090
2021-06-01 17:28 ifv Assigned To ifv => abulychev-ext
2021-06-01 17:33 kgv Summary Wrong projection of a wire to a face => Modeling Algorithms - Wrong projection of a wire to a face
2021-06-01 17:33 kgv Steps to Reproduce Updated View Revisions

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker