EnableObjectMesh - PYTHON 不支持

启用或禁用一个物件的自定义渲染网格参数。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

同见

AddObjectMesh

ObjectHasMesh

ObjectMeshDensity

ObjectMeshMaxAngle

ObjectMeshMaxAspectRatio

ObjectMeshMaxDistEdgeToSrf

ObjectMeshMaxEdgeLength

ObjectMeshMinEdgeLength

ObjectMeshMinInitialGridQuads

ObjectMeshQuality

ObjectMeshSettings