User Tools

Site Tools


DzMeshSmoothModifier

A local space modifier for mesh smoothing and collision detection.

More...

Inherits :

Properties

Constructors

DAZ Script
DzMeshSmoothModifier ()

Methods

Signals

Detailed Description

A specialization of DzModifier that iteratively applies a smoothing algorithm to the position of vertices in the geometry of an object with this modifier, and (potentially) iteratively detects/corrects collisions that occur between it and the geometry of another object as a result of the smoothing.

Properties


DzAuthor : assetAuthor

Holds the author of the file for this property. (Read Only)

Since:

  • 4.20.1.47

DzVersion : assetFileRevision

Holds the revision version of the asset file for this property. (Read Only)

Since:

  • 4.20.1.47

String : assetId

Holds the asset id for this modifier.

Since:

  • 4.8.1.18

Date : assetModifiedDate

Holds the modified date of the asset file for this property. (Read Only)

Since:

  • 4.20.1.47

Boolean : assetNeedSave

Holds whether or not the asset for this modifier needs to be saved. (Read Only)

Since:

  • 4.11.0.249

DzUri : assetSource

Holds the URI of the asset source for this modifier; only valid when the asset is in an embedded state - i.e. modified. (Read Only)

Since:

  • 4.20.1.47

DzUri : assetUri

Holds the asset URI for this modifier. (Read Only)

Since:

  • 4.8.1.18

Constructors


DzMeshSmoothModifier()

Default Constructor.

Methods


DzNode : getCollisionItem()

Return Value:

  • The node to collide with (if any), otherwise null.

DzIntProperty : getCollisionIterationControl()

Return Value:

  • The “Collision Iteration” property that controls the number of collision iterations to perform. The default is 3.

Since:

  • 4.11.0.249

DzNodeProperty : getCollisionNodeControl()

Return Value:

  • The “Collision Node” property that controls the node that provides the geometry to use for collision detection/correction.

Since:

  • 4.11.0.249

DzIntProperty : getCollisionSmoothingIntervalControl()

Return Value:

  • The “Collision Smoothing Interval” property that controls the interval between when mesh smoothing iterations are performed and when collision detection/correction iterations are performed, i.e., every n'th smoothing iteration the collision iterations are performed. The default is 1.

Since:

  • 4.11.0.249

DzBoolProperty : getEnableSmoothingControl()

Return Value:

  • The “Enable Smoothing” property that controls whether or not this modifier is applied. The default value is on/yes/true.

Since:

  • 4.11.0.249

DzBoolProperty : getInteractiveUpdateControl()

Return Value:

  • The “Interactive Update” property that controls whether or not the results of this modifier are applied “interactively” (i.e., as soon as possible, while the object is being manipulated vs when manipulation has stopped). The default is off/no/false.

Since:

  • 4.11.0.249

DzFloatProperty : getLengthInfluenceControl()

Return Value:

  • The “Length Influence” property that controls the amount of influence the length of the edges around a given vertex has on the calculated smoothing result. The default value is 0.5.

Attention:

  • Only has meaning when the Smoothing Type is set to “Base Shape Matching” (Pyramid Coordinates algorithm).

See Also:

Since:

  • 4.11.0.249

DzFloatProperty : getLockDistanceControl()

Return Value:

  • The “Lock Distance” property that controls the distance at which the movement of a given vertex becomes insignificant, and is therefore “locked” (excluded) for the remaining smoothing iterations unless a neighboring vertex moves more significantly. The default is 0.001 (cm).

Since:

  • 4.11.0.249

DzFloatProperty : getSecondaryWeightControl()

Return Value:

  • The “Secondary Weight” property that controls the amount of a separate inverse smoothing iteration to apply. The default is -0.5.

Attention:

  • Only has meaning when the Smoothing Type is set to “Basic” (Laplacian algorithm).

See Also:

Since:

  • 4.11.0.249

DzIntProperty : getSmoothingIterationsControl()

Return Value:

  • The “Smoothing Iterations” property that controls the number of smoothing iterations to perform. The default is 2.

Since:

  • 4.11.0.249

DzEnumProperty : getSmoothingTypeControl()

Return Value:

  • The “Smoothing Type” property that controls the algorithm to use for the smoothing iterations. The default is “Base Shape Matching.”

Attention:

  • The “Base Shape Matching” type uses the Pyramid Coordinates algorithm. The “Basic” type uses the Laplacian algorithm.

Since:

  • 4.11.0.249

DzFloatProperty : getWeightControl()

Return Value:

  • The “Weight” property that controls the amount of the calculated smoothing result to apply. The default is 0.5.

See Also:

Since:

  • 4.11.0.249

Boolean : modifyAsset()

Marks the asset as being modified.

Return Value:

  • true if the asset is marked as modified, otherwise false.

void : setCollisionItem( DzNode item )

Sets the collision item.

Parameter(s):

  • item - The node to collide with.

Signals


void : assetModified()

Signature:“assetModified()”

Emitted when this modifier has been modified.


void : assetWasSaved()

Signature:“assetWasSaved()”

Emitted after this modifier has been saved.