time_multithread = time1-time0
-print "Time in 4 proc: %.3s"%(time_multithread)
+print("Time in 4 proc: %.3s"%(time_multithread))
Mesh_2 = smesh.Mesh(flight_solid_brep_1)
MG_CADSurf = Mesh_2.Triangle(algo=smeshBuilder.MG_CADSurf)
time3 = time.time()
time_singlethread = time3-time2
-print "Time in 1 proc: %.3s"%(time_singlethread)
+print("Time in 1 proc: %.3s"%(time_singlethread))
assert time_multithread < time_singlethread/2.
non_coincident_nodes = list(set(mesh_nodes) - set(coincident_nodes))
mesh_check.MakeGroupByIds("non_coincident_nodes", SMESH.NODE, non_coincident_nodes)
#raise Exception("Projection failed for %s"%name)
- print "Projection failed for %s"%name
+ print("Projection failed for %s"%name)
checkProjection(gr_right, bottom_rotated)
# Check the minimal area of the box faces to check the proximity
min_area, max_area = Mesh_1.GetMinMax(SMESH.FT_Area, gr_mesh_box)
-print "min_area: ", min_area
+print("min_area: ", min_area)
if min_area > 1.5:
raise Exception("Wrong minimal area on box. Proximity has not worked.")
min_length = min(edges_length)
x1, y1, z1 = Mesh.GetNodeXYZ(node)
-print min_length
+print(min_length)
if min_length<tiny_edge_length:
raise Exception("Small edge has not been removed")