View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0022778 | Community | OCCT:Mesh | public | 2011-10-25 14:37 | 2016-06-06 16:15 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | A | ||||
Product Version | 6.5.2 | ||||
Target Version | 6.6.0 | Fixed in Version | 6.6.0 | ||
Summary | 0022778: Bug in BRepMesh | ||||
Description | Post from the Forum - http://www.opencascade.org/org/forum/thread_22070/. " Here are a geometry and a program that show the B-spline mesher is still buggy in OCCT 6.5.1. The BRep is a sphere trimmed by a square made of 120 TopoDS_Edge. The program is run with the B-spline mesher and without (thanks to the attached patch). In both cases I give the number of triangles for the sphere as a reference (the optimal mesh), and for the sphere converted to GeomAbs_BSplineSurface. Without the patch (B-spline mesher): $ ./a.out Number of triangles for the sphere geometry: 886 Number of triangles for the nurbs geometry: 46948 With the patch (generic mesher): $ ./a.out Number of triangles for the sphere geometry: 886 Number of triangles for the nurbs geometry: 1676 This geometry is not a pathological case as over refined trimming are more than common in real world. I think a mesh 28 time too thin should be concidered as a bug. See the patch, source code, and geometry attached. Regards, Jerome " So, after applying to the initial shape of the BRepBuilderAPI_NurbsConvert and building a mesh with the same deflection a number of triangles sufficiently differ. | ||||
Steps To Reproduce | plaod ALL restore square.brep s checkshape s incmesh s 0.001 trinfo s ##This shape contains 226 triangles. ## 174 nodes. ##Maximal deflection 0.00088688254163757894 nurbsconvert r s checkshape r ## This shape seems to be valid incmesh r 0.001 Draw[11]> trinfo r This shape contains 2148 triangles. 1135 nodes. Maximal deflection 6.7388607894560643e-005 | ||||
Tags | No tags attached. | ||||
Test case number | bugs mesh bug22778 | ||||
related to | 0022893 | closed | Community | Possible regression in tesselation algorithm of OCCT6.5.2 |
2011-10-25 14:37 manager |
bugocc.tar.bz2 (16,066 bytes) |
|
Mikhail, Could you assign the bug to somebody from MESH pool. SZY |
|
There is no such entity "Mesh pool" in the organization. But I know that the mentioned algorithm was last time improved by various people under inspection of PDN. Dear Pavel, could you help to find the proper person to fix the bug? |
|
After the analysis of the bug description, attached files and step to reproduce I can comment in the following way: 1) The current state of the BRepMesh mesher (OCC 6.5.2 and trunk) are better that state in the proposed patch. Current difference in sphere and NURBS is about 10 times. 2) This difference is quite OK and explained by the simple algorithmic behavior when information on analytic surface type (sphere) is used. In case of sphere, algorithm is able to compute the maximal error analytically, when for NURBS is should be estimated. IMHO, the bug should be resolved as documented. Possible improvements if free BRepMesh algorithm can be considered in the frame of OCCT evolution. Similar issue is recorded for Express Mesh. Thus, I reassign the problem to Andrey to take decision for planning. |
|
Results with OCC 6.5.2 (much better thanks !): B-Spline mesher: Number of triangles for the sphere geometry: 646 Number of triangles for the nurbs geometry: 2148 Generic mesher: Number of triangles for the sphere geometry: 646 Number of triangles for the nurbs geometry: 1438 |
|
I guess that issue 0022893 is probably related to this one, as an opposite side of the medal: decrease of number of triangles on b-splines can lead to decreased shading quality. To be investigated |
|
Test case for this issue (bugs mesh bug22778) pushed to branch CR22778. Note that I have moved test case for #23473 from bugs mesh bug23473 to relevant grid (mesh standard* X5). Please review and test. |
|
Integrated into master of OCCT repository |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-10-25 14:37 |
|
New Issue | |
2011-10-25 14:37 |
|
Assigned To | => jgv |
2011-10-25 14:37 |
|
File Added: bugocc.tar.bz2 | |
2011-10-25 14:38 |
|
Assigned To | jgv => pdn |
2011-10-25 14:44 |
|
Assigned To | pdn => azn |
2011-11-25 14:35 |
|
Note Added: 0018624 | |
2011-11-25 14:35 |
|
Assigned To | azn => msv |
2011-11-25 14:35 |
|
Status | new => assigned |
2011-11-25 14:35 |
|
OS | L => |
2011-11-25 14:35 |
|
OS Version | L => |
2011-11-25 18:43 |
|
Note Added: 0018632 | |
2011-11-25 18:44 |
|
Assigned To | msv => pdn |
2011-11-28 14:53 |
|
Note Added: 0018641 | |
2011-11-28 14:53 |
|
Assigned To | pdn => abv |
2012-01-13 22:11 | jeromerobert | Note Added: 0019128 | |
2012-01-14 08:24 |
|
Note Added: 0019129 | |
2012-01-14 08:24 |
|
Relationship added | related to 0022893 |
2012-03-22 06:18 |
|
Target Version | 6.5.3 => 6.5.4 |
2012-10-23 19:15 |
|
Target Version | 6.5.4 => 6.6.0 |
2012-11-09 09:49 |
|
Category | OCCT:Modeling Algorithms => OCCT:Mesh |
2012-12-03 22:54 |
|
Test case number | => bugs mesh bug22778 |
2012-12-03 22:56 |
|
Note Added: 0022530 | |
2012-12-03 22:56 |
|
Assigned To | abv => bugmaster |
2012-12-03 22:56 |
|
Status | assigned => feedback |
2013-01-16 15:00 | bugmaster | Status | feedback => tested |
2013-01-21 18:30 | bugmaster | Note Added: 0023047 | |
2013-01-21 18:30 | bugmaster | Status | tested => verified |
2013-01-21 18:30 | bugmaster | Resolution | open => fixed |
2013-04-23 13:36 |
|
Status | verified => closed |
2013-04-29 15:21 |
|
Fixed in Version | => 6.6.0 |