0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / heal / surface_to_revolution_advanced / end
CommitLineData
c2a0f481 1puts [DT_ShapeConvertRev result a 1 1]
2
3set expsh [expshape result 0 0]
4set nb_plane 0
5set nb_other_surf 0
6set nb_curve 0
7set nb_pcurve 0
8regexp {Number +of +Planes +- +([-0-9.+eE]+)} $expsh full nb_plane
9regexp {Number +of +other +surfaces +- +([-0-9.+eE]+)} $expsh full nb_other_surf
10regexp {Number +of +other +curves +- +([-0-9.+eE]+)} $expsh full nb_curve
11regexp {Number +of +other +pcurves +- +([-0-9.+eE]+)} $expsh full nb_pcurve
12if { $nb_plane != 0 || $nb_other_surf != 0 || $nb_curve != 0 || $nb_pcurve != 0} {
94a57f1f 13 puts "Error : The resulting shape is not correct"
c2a0f481 14}
fffc249f 15regexp {Mass +: +([-0-9.+eE]+)} [sprops a $rel_tol] full mass
16regexp {Mass +: +([-0-9.+eE]+)} [sprops result $rel_tol] full m
c2a0f481 17
fffc249f 18if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 1.5*$rel_tol) || ($mass == 0 && $m != 0) } {
94a57f1f 19 puts "Error : The area of the resulting shape is $m"
c2a0f481 20} else {
94a57f1f 21 puts "The areas of the initial and the resulting shape are equal"
c2a0f481 22}