ObjectMeshMaxAspectRatio - PYTHON 不支持

Returns or modifies an object's custom render mesh parameter's maximum aspect ratio property.

For more information on render meshes, see the Document Properties:Mesh topic in the Rhino help file.

语法

Rhino.ObjectMeshMaxAspectRatio (strObject [, dblRatio])

参数

strObject

Required.Object.The identifier of an object that has custom render mesh parameters.

dblRatio

可选参数。Number.The render mesh maximum aspect ratio.The suggested range, when not zero, is from 1 to 100.

返回值

Boolean

If dblRatio is not specified, the current render mesh maximum aspect ratio if successful.

Boolean

If dblRatio is specified, the previous render mesh maximum aspect ratio if successful.

Null

如果执行不成功或出错,返回空值。

示例

Dim strObject

strObject = Rhino.GetObject("Select object")

If Rhino.ObjectHasMesh(strObject) = True Then

  Rhino.Print "Quality:" & Rhino.ObjectMeshQuality

  Rhino.Print "Mesh density:" & Rhino.ObjectMeshDensity

  Rhino.Print "Maximum angle:" & Rhino.ObjectMeshMaxAngle

  Rhino.Print "Maximum aspect ratio:" & Rhino.ObjectMeshMaxAspectRatio

  Rhino.Print "Minimun edge length:" & Rhino.ObjectMeshMinEdgeLength

  Rhino.Print "Maximum edge length:" & Rhino.ObjectMeshMaxEdgeLength

  Rhino.Print "Maximum distance, edge to surface:" & Rhino.ObjectMeshMaxDistEdgeToSrf

  Rhino.Print "Minumum initial grid quads:" & Rhino.ObjectMeshMinInitialGridQuads

  Rhino.Print "Other settings:" & Rhino.ObjectMeshSettings

End If

同见

AddObjectMesh

EnableObjectMesh

ObjectHasMesh

ObjectMeshDensity

ObjectMeshMaxAngle

ObjectMeshMaxDistEdgeToSrf

ObjectMeshMaxEdgeLength

ObjectMeshMinEdgeLength

ObjectMeshMinInitialGridQuads

ObjectMeshQuality

ObjectMeshSettings