[Gmsh] Bug in handling option "Mesh.MinimumCirclePoints"
Serban Georgescu
Serban.Georgescu at uk.fujitsu.com
Fri Feb 13 10:43:47 CET 2015
Hello,
I've recently tried to use the option "Mesh.MinimumCirclePoints" to set the minimum number of points when meshing a circle.
However, I found this option has no effect.
Another option, similar to this one, "Mesh.MinimumCurvePoints" is indeed working and it can be used for the purpose above, however the former is much better suited for my needs.
I've looked inside the Gmsh source code (version 2.8.5) and found the issue is in OCCEdge.cpp file, OCCEdge::minimumMeshSegments() function. That function treats as a curve anything that is not a Line, hence MinimumCirclePoints is never used.
I've fixed the bug in the following way:
File: OCCEdge.cpp
236,237d235
< else if (getBeginVertex() == getEndVertex())
< np = CTX::instance()->mesh.minCircPoints - 1;
Could this be included in the SVN version?
Best regards,
Serban
______________________________________________________________________
Fujitsu Laboratories of Europe Limited
Hayes Park Central, Hayes End Road, Hayes, Middlesex, UB4 8FE
Registered No. 4153469
This e-mail and any attachments are for the sole use of addressee(s) and
may contain information which is privileged and confidential. Unauthorised
use or copying for disclosure is strictly prohibited. The fact that this
e-mail has been scanned by Trendmicro Interscan does not guarantee that
it has not been intercepted or amended nor that it is virus-free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150213/8f3753eb/attachment.html>