mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
Merge branch 'fix_occ_err_faces' into 'master'
fix occ error faces in topology explorer See merge request ngsolve/netgen!511
This commit is contained in:
commit
56ae4fdc48
@ -101,7 +101,7 @@ proc occdialogbuildtree {} {
|
||||
set nrfaces [expr [llength $faces]]
|
||||
if {$nrfaces >= 2} {
|
||||
#$hlist add ErrorFaces -itemtype text -text "Faces with surface meshing error"
|
||||
$w.tree insert {} -id ErrorFaces -text "Faces with surface meshing error"
|
||||
$w.tree insert {} end -id "ErrorFaces" -text "Faces with surface meshing error"
|
||||
#$w.mtre open ErrorFaces
|
||||
$w.tree item ErrorFaces -open true
|
||||
set i [expr 0]
|
||||
@ -109,12 +109,12 @@ proc occdialogbuildtree {} {
|
||||
set entity [lindex $faces [expr $i]]
|
||||
set myroot [string range $entity 0 [string last / $entity]-1]
|
||||
if { [string length $myroot] == 0 } {
|
||||
set myroot ErrorFaces
|
||||
}
|
||||
set myroot "ErrorFaces"
|
||||
}
|
||||
incr i 1
|
||||
set entityname [lindex $faces [expr $i]]
|
||||
#$hlist add ErrorFaces/$entity -text $entityname -data $entityname
|
||||
$w.tree insert {myroot} end -id $entity -text $entityname -value 0
|
||||
$w.tree insert $myroot end -id $entity -text $entityname -value 0
|
||||
incr i 1
|
||||
}
|
||||
}
|
||||
|
@ -3992,18 +3992,18 @@ DLL_HEADER const char * ngscript[] = {""
|
||||
,"set faces [Ng_OCCCommand getunmeshedfaceinfo]\n"
|
||||
,"set nrfaces [expr [llength $faces]]\n"
|
||||
,"if {$nrfaces >= 2} {\n"
|
||||
,"$w.tree insert {} -id ErrorFaces -text \"Faces with surface meshing error\"\n"
|
||||
,"$w.tree insert {} end -id \"ErrorFaces\" -text \"Faces with surface meshing error\"\n"
|
||||
,"$w.tree item ErrorFaces -open true\n"
|
||||
,"set i [expr 0]\n"
|
||||
,"while {$i < $nrfaces} {\n"
|
||||
,"set entity [lindex $faces [expr $i]]\n"
|
||||
,"set myroot [string range $entity 0 [string last / $entity]-1]\n"
|
||||
,"if { [string length $myroot] == 0 } {\n"
|
||||
,"set myroot ErrorFaces\n"
|
||||
,"set myroot \"ErrorFaces\"\n"
|
||||
,"}\n"
|
||||
,"incr i 1\n"
|
||||
,"set entityname [lindex $faces [expr $i]]\n"
|
||||
,"$w.tree insert {myroot} end -id $entity -text $entityname -value 0\n"
|
||||
,"$w.tree insert $myroot end -id $entity -text $entityname -value 0\n"
|
||||
,"incr i 1\n"
|
||||
,"}\n"
|
||||
,"}\n"
|
||||
|
Loading…
Reference in New Issue
Block a user