1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0026532: Meshing of edge with minSize parameter leads to incorrect result

Fix missed parameter.

Test case for issue CR26532
This commit is contained in:
oan 2015-09-17 14:58:40 +03:00 committed by bugmaster
parent 4c71cff8e9
commit 127cc1f0a1
2 changed files with 30 additions and 1 deletions

View File

@ -244,7 +244,8 @@ void BRepMesh_IncrementalMesh::discretizeFreeEdges()
BRepAdaptor_Curve aCurve(aEdge);
GCPnts_TangentialDeflection aDiscret(aCurve, aCurve.FirstParameter(),
aCurve.LastParameter(), myAngle, aEdgeDeflection, 2, myMinSize);
aCurve.LastParameter(), myAngle, aEdgeDeflection, 2,
Precision::PConfusion(), myMinSize);
Standard_Integer aNodesNb = aDiscret.NbPoints();
TColgp_Array1OfPnt aNodes (1, aNodesNb);

28
tests/bugs/mesh/bug26532 Normal file
View File

@ -0,0 +1,28 @@
puts "========"
puts "OCC26532"
puts "========"
puts ""
#######################################################################
# Meshing of edge with minSize parameter leads to incorrect result
#######################################################################
restore [locate_data_file bug26533_aal2.brep] a
vinit
vdisplay a
vfit
vdump ${imagedir}/${casename}_1.png
# with min size
# => ugly curve
vclear
incmesh a 0.3 -min 0.06
vdisplay a
vdump ${imagedir}/${casename}_2.png
# without min size
# => nice curve
vclear
incmesh a 0.3
vdisplay a
vdump ${imagedir}/${casename}_3.png