1 # Canonical Recognition
5 from salome.geom import geomBuilder
7 geompy = geomBuilder.New( salome.myStudy )
10 path = os.path.join(os.getenv("DATA_DIR"), "Shapes/Iges/geom.igs")
11 shape_igs = geompy.ImportIGES(path)
13 # Build Canonical Recognition
14 shape_cr = geompy.MakeCanonicalRecognition(shape_igs, True, True, 0.01)
16 # Publish in the study
17 geompy.addToStudy( shape_igs, 'Import from IGS' )
18 geompy.addToStudy( shape_cr, 'Canonical Recognition' )
20 # Print what is information
21 print "========================================================="
22 print "Information about original shape:"
23 print geompy.WhatIs(shape_igs)
24 print "========================================================="
25 print "Information about converted shape:"
26 print geompy.WhatIs(shape_cr)