Hello,
this command seems to have a bug.
'imprint Tolerant surface %d curve ’
When I generate daughter surfaces based on this command the surfaces are skipped in some cases. I imprint 100 surfaces based on curve sets. Just two of the surfaces seem to be causing error. Is there any catch in using this command?
[code]# Imprinting of surface and making of new surfaces!
totalSurface = cubit.get_surface_count()
print " total surface = d " totalSurface
for surfaceID_s in range(1,totalSurface+1):
print “Surface ID %d” %surfaceID_s
COG_Surface =
COG_Surface=cubit.get_center_point(“surface”, surfaceID_s)
xCoord=COG_Surface[0]
yCoord=COG_Surface[1]
zCoord=COG_Surface[2]
print ("Creating center point for the surface ")
cubit.cmd('surface %d Copy Scale X 0.95 Y 0.95 Z 1 about %10f %10f 10f' (surfaceID_s, COG_Surface[0], COG_Surface[1], COG_Surface[2] ))
imprintSurfaceID= cubit.get_last_id(“surface”)
curve_list = cubit.get_relatives(“surface”, imprintSurfaceID, “curve”)
totalCurvesInSurface=len(curve_list)
b= 'imprint Tolerant surface d curve ' (surfaceID_s), ’ ‘.join(map(str, curve_list))
print b
print b[0]
print b[1]
cubit.cmd(’ %s s keep' (b[0], b[1]))[/code]