值 |
描述 |
0 |
Solid,使用物件颜色。 |
1 |
线型,由图案文件定义。 |
2 |
Gradient,又填充颜色定义。 |
rhinoscriptsyntax.HatchPatternFillType (hatch_pattern)
rhinoscript.hatch.HatchPatternFillType (hatch_pattern)
hatch_pattern |
必须参数。字符串。现有图案的名称。 |
数字 |
执行成功返回填充类型。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
patterns = rs.HatchPatternNames()
for pattern in patterns:
fill = rs.HatchPatternFillType(pattern)
print pattern, "-", fill