mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +03:00
0028247: Effect of minSize parameter of BRepMesh_IncrementalMesh seems to be too strong Updated description of MinSize parameter of IMeshTools_Parameters
This commit is contained in:
parent
35befde2ad
commit
5e06dfcb32
@ -58,7 +58,8 @@ struct IMeshTools_Parameters {
|
|||||||
//! Linear deflection used to tessellate the face interior
|
//! Linear deflection used to tessellate the face interior
|
||||||
Standard_Real DeflectionInterior;
|
Standard_Real DeflectionInterior;
|
||||||
|
|
||||||
//! Minimal allowed size of mesh element
|
//! Minimum size parameter limiting size of triangle's edges to prevent
|
||||||
|
//! sinking into amplification in case of distorted curves and surfaces.
|
||||||
Standard_Real MinSize;
|
Standard_Real MinSize;
|
||||||
|
|
||||||
//! Switches on/off multi-thread computation
|
//! Switches on/off multi-thread computation
|
||||||
|
@ -6,40 +6,35 @@ puts ""
|
|||||||
# Effect of minSize parameter of BRepMesh_IncrementalMesh seems to be too strong
|
# Effect of minSize parameter of BRepMesh_IncrementalMesh seems to be too strong
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
restore [locate_data_file bug28247_face.brep] f
|
restore [locate_data_file bug28247_face.brep] result
|
||||||
whatis f
|
whatis result
|
||||||
tolerance f
|
tolerance result
|
||||||
|
|
||||||
vinit
|
vinit
|
||||||
|
vdefaults -autoTriang 0
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
vdisplay f
|
|
||||||
|
tclean result
|
||||||
|
incmesh result 0.59
|
||||||
|
vdisplay result -redisplay
|
||||||
vfit
|
vfit
|
||||||
|
|
||||||
tclean f
|
checktrinfo result -tri 1235
|
||||||
incmesh f 0.59
|
|
||||||
trinfo f
|
|
||||||
vdisplay f
|
|
||||||
vfit
|
|
||||||
checkview -screenshot -3d -path ${imagedir}/${test_image}-1.png
|
checkview -screenshot -3d -path ${imagedir}/${test_image}-1.png
|
||||||
|
|
||||||
tclean f
|
tclean result
|
||||||
incmesh f 0.59 -a 11.45
|
incmesh result 0.59 -a 11.45
|
||||||
set tri_info_1 [trinfo f]
|
vdisplay result -redisplay
|
||||||
regexp { +([-0-9.+eE]+) +triangles} $tri_info_1 full tri_1
|
|
||||||
regexp { +([-0-9.+eE]+) +nodes} $tri_info_1 full nod_1
|
|
||||||
vdisplay f
|
|
||||||
vfit
|
vfit
|
||||||
|
|
||||||
|
checktrinfo result -tri 6438
|
||||||
checkview -screenshot -3d -path ${imagedir}/${test_image}-2.png
|
checkview -screenshot -3d -path ${imagedir}/${test_image}-2.png
|
||||||
|
|
||||||
tclean f
|
tclean result
|
||||||
incmesh f 0.59 -a 11.45 -min 0.035
|
incmesh result 0.59 -a 11.45 -min 0.035
|
||||||
set tri_info_2 [trinfo f]
|
vdisplay result -redisplay
|
||||||
regexp { +([-0-9.+eE]+) +triangles} $tri_info_2 full tri_2
|
|
||||||
regexp { +([-0-9.+eE]+) +nodes} $tri_info_2 full nod_2
|
|
||||||
vdisplay f
|
|
||||||
vfit
|
vfit
|
||||||
|
|
||||||
|
checktrinfo result -tri 7079
|
||||||
checkview -screenshot -3d -path ${imagedir}/${test_image}-3.png
|
checkview -screenshot -3d -path ${imagedir}/${test_image}-3.png
|
||||||
|
|
||||||
if { ${tri_1} > ${tri_2} } {
|
|
||||||
puts "Error: Effect of minSize parameter of BRepMesh_IncrementalMesh seems to be too strong"
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user