Salome HOME
Statistics of the operation
[plugins/canrecplugin.git] / doc / salome / examples / canrecplugindemo.py
index c88ff1eb502c577e6c9094332d6f6c2155d70dbc..82b5541219801c020717762f27900901b0a63ad4 100644 (file)
@@ -13,6 +13,13 @@ shape_igs = geompy.ImportIGES(path)
 # Build Canonical Recognition
 shape_cr = geompy.MakeCanonicalRecognition(shape_igs, True, True, 0.01)
 
+# Get the number of canonical faces
+init_nb_f = geompy.GetNbCanonicalFaces(shape_igs)
+res_nb_f = geompy.GetNbCanonicalFaces(shape_cr)
+
+print "Number of canonical faces in the initial shape: %s" % init_nb_f
+print "Number of canonical faces in the result shape: %s" % res_nb_f
+
 # Publish in the study
 geompy.addToStudy( shape_igs, 'Import from IGS' )
 geompy.addToStudy( shape_cr, 'Canonical Recognition' )