启用或禁用一个物件的自定义渲染网格参数。If an object's custom render mesh parameters are enabled, then they will be used, instead of the document's render mesh parameters, when a render mesh is generated for the object.
For more information on render meshes, see the Document Properties:Mesh topic in the Rhino help file.
Rhino.EnableObjectMesh (strObject [, blnEnable])
arrObjects |
Required.Object.The identifier of a meshable object. |
blnEnable |
可选参数。Boolean.Enable the custom render mesh settings. |
Boolean |
If blnEnable is not specified, then the current enabled/disabled state if successful. |
Boolean |
If blnEnable is not specified, then the current enabled/disabled state if successful. |
Null |
If the object does not have custom render mesh parameters, or on error. |
Dim strObject
strObject = Rhino.GetObject("Select object")
If Rhino.ObjectHasMesh(strObject) = True Then
Rhino.EnableObjectMesh strObject, True
End If