ObjectMeshSettings

Returns or sets the render mesh settings of an object's custom render mesh parameters.

Syntax

Rhino.ObjectMeshSettings (strObject [, intSettings])

Parameters

strObject

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

intSettings

Optional.  Number.  The render mesh settings, which is a bit-coded number that allows or disallows certain features.  The bits can be added together in any combination to form a value between 0 and 15.  The bit values are as follows:

Value

Description

0

No settings enabled.

1

Refine mesh enabled.

2

Jagged seams enabled.

4

Simple planes enabled.

8

Pack textures enabled

Returns

Number

If intSettings is not specified, the current render mesh settings if successful.

Number

If intSettings is specified, the previous render mesh settings if successful.

Null

If the object does not have custom render mesh parameters, or on error.

Example

Dim strObject

strObject = Rhino.GetObject("Select object")

If Rhino.ObjectHasMesh(strObject) = True Then

Rhino.ObjectMeshSettings strObject, 11

End If

Also See

AddObjectMesh

EnableObjectMesh

ObjectHasMesh

ObjectMeshDensity

ObjectMeshMaxAngle

ObjectMeshMaxAspectRatio

ObjectMeshMaxDistEdgeToSrf

ObjectMeshMaxEdgeLength

ObjectMeshMinEdgeLength

ObjectMeshMinInitialGridQuads

ObjectMeshQuality