MantisBT - Open CASCADE
View Issue Details
0030365Open CASCADE[OCCT] OCCT:Modeling Algorithmspublic2018-11-12 16:482019-07-18 12:34
nbv 
msv 
normalintegration request 
resolvedopen 
 
[OCCT] 7.5.0* 
0030365: Create tool to compute deviation between any 2D-curve and some its segment
See the message 0029203:0071647.

Namely

<< 3. Improve the algorithm of computation of deflection between discrete polygon and source curve (see method BRepTopAdaptor_FClass2d::Init()). Currently, the computed deflection is equal to the length of projection of middle-point of arc to the chord. New algorithm can be based on GCPnts_DistFunction2d class or can use simple iteration formula (obtained if we apply Newton-algorithm to GCPnts_DistFunction2d function):

                    U(n+1)=U(n)-(C'(Un).Crossed(D))/(C''(U(n)).Crossed(D))

where C' and C'' are 1st and 2nd derivative of the curve, obtained in the point U(n), D - direction of the segment of the polygon.

Please note that this formula is satisfied for 2D-space only. For 3D-algorithm it will look more complexly.
All necessary test cases have already been created and pushed to the branch.
No tags attached.
related to 0029203feedback  Ambiguous behavior of Point-Face-classification algorithms: shall it return ON-status? 
related to 0029421feedback msv Make face classifier algorithm stable and robust 
Issue History
2018-11-12 16:48nbvNew Issue
2018-11-12 16:48nbvAssigned To => msv
2018-11-12 16:48nbvAssigned Tomsv => nbv
2018-11-12 16:48nbvStatusnew => assigned
2018-11-12 16:51nbvSeverityminor => integration request
2018-11-12 16:52nbvRelationship addedrelated to 0029203
2018-11-12 17:02gitNote Added: 0081063
2018-11-13 09:28nbvNote Added: 0081065
2018-11-13 09:28nbvAssigned Tonbv => msv
2018-11-13 09:28nbvStatusassigned => resolved
2018-11-13 09:28nbvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20369#r20369
2018-11-19 10:04gitNote Added: 0081162
2018-11-19 10:43nbvNote Added: 0081163
2018-11-23 12:57nbvRelationship addedrelated to 0029421
2018-12-03 16:27msvNote Added: 0081366
2018-12-04 10:07gitNote Added: 0081378
2018-12-04 10:07nbvNote Added: 0081379
2018-12-04 10:08nbvNote Edited: 0081379bug_revision_view_page.php?bugnote_id=81379#r20454
2019-07-18 12:34msvTarget Version7.4.0 => 7.5.0*

Notes
(0081063)
git   
2018-11-12 17:02   
Branch CR30365 has been created by nbv.

SHA-1: ee7f6f2b73926ff91d2f109f8c8ad78503365f22


Detailed log of new commits:

Author: nbv
Date: Mon Nov 12 17:00:06 2018 +0300

    0030365: Create tool to compute deviation between any 2D-curve and some its segment
    
    The tool, DRAW-command for its check and corresponding test cases have been created.
    
    See documentation about new tool in GeomLib_Tool.hxx file.
(0081065)
nbv   
2018-11-13 09:28   
Dear Mikhail,

Please review CR30365 branch.

Test results: http://jenkins-test-12.nnov.opencascade.com/view/CR30365-master_NBV/ [^]
(0081162)
git   
2018-11-19 10:04   
Branch CR30365 has been updated forcibly by nbv.

SHA-1: 426649480dc1abc50e5ec1f1ea1e2b1c43b9f83c
(0081163)
nbv   
2018-11-19 10:43   
Branch has been rebased on current MASTER.
(0081366)
msv   
2018-12-03 16:27   
src/GeomliteTest/GeomliteTest_API2dCommands.cxx
- 560: incorrect usage string, does not correspond to help.
(0081378)
git   
2018-12-04 10:07   
Branch CR30365 has been updated forcibly by nbv.

SHA-1: 2a5e819d71838ad1b3869e48400cfcd7cc6ee587
(0081379)
nbv   
2018-12-04 10:07   
(edited on: 2018-12-04 10:08)
Done.

The branch CR30365 has been rebased on current MASTER.