判断一个网格物件是否具有贴图坐标。
rhinoscriptsyntax.MeshHasTextureCoordinates (object_id)
rhinoscript.mesh.MeshHasTextureCoordinates (object_id)
object_id |
必须参数。字符串或 Guid。物件的 ID 。 |
布尔值 |
如果执行成功,返回 True,如果执行不成功返回 False。 |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a mesh", rs.filter.mesh)
if rs.MeshHasTextureCoordinates(obj):
print "The mesh has texture coordinates."
else:
print "The mesh does not have texture coordinates."