plane surf 
trim surf surf -1 1 -1 1
convert surf surf
mkface f surf
getanasurf asurf f pln  1.e-7
if {[isdraw asurf]} {
  set log [dump asurf]
  if { [regexp {Plane} $log ] != 1 } {
     puts "Error: surface is not a plane"
  }
} else {
  puts "Error: required surface is not got"
}


