AddObjectMesh - PYTHON 不支持

Adds custom render mesh parameters to a meshable object, such as a surface or a polysurface.If an object has custom render mesh parameters and they 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.AddObjectMesh (strObject [, intQuality [, blnEnable]])

参数

strObject

Required.Object.The identifier of a meshable object.

intQuality

可选参数。Number.The initial settings of the new custom render mesh parameters.The available options are as follows:

描述

0

Jagged and faster.Objects may look jagged, but they should shade and render relatively quickly.

1

Smooth and slower.Objects should look smooth, but they may take a very long time to shade and render.

2 (Default)

Use the document's current render mesh parameters.

blnEnable

可选参数。Boolean.Enable the custom render mesh parameters.If omitted, the newly added parameters will be enabled (True).

返回值

Boolean

True if successful, false otherwise.

Null

On error.

示例

Dim strObject

strObject = Rhino.GetObject("Select object")

If Rhino.ObjectHasMesh(strObject) = False Then

Rhino.AddObjectMesh strObject, 1, True

End If

同见

AddObjectMesh

EnableObjectMesh

ObjectHasMesh

ObjectMeshDensity

ObjectMeshMaxAngle

ObjectMeshMaxAspectRatio

ObjectMeshMaxDistEdgeToSrf

ObjectMeshMaxEdgeLength

ObjectMeshMinEdgeLength

ObjectMeshMinInitialGridQuads

ObjectMeshQuality

ObjectMeshSettings