User Tools

Site Tools


DzGeometryUtil

DAZ Script's global static object for geometry manipulation utility functions.

More...

Inherits : QObject

Methods

DAZ Script
DzErrorconvertToSubD ( DzNode node, Number defaultLevel=1 )
DzErrorconvertToSubD ( DzNode node, Number defaultViewLevel, Number defaultRenderLevel )
DzNodecreatePrimitive ( DzSettings settings )

Detailed Description

Methods


DzError : convertToSubD( DzNode node, Number defaultLevel=1 )

Converts a scene item with polygon mesh geometry to a SubD object. If the node passed in is a DzBone or DzSkeleton, the entire figure will be converted to SubD.

Parameter(s):

  • node - The scene item to convert.
  • defaultLevel - The default subdivision level of the item after conversion.

Return Value:

  • DZ_NO_ERROR on success, otherwise an error code.

DzError : convertToSubD( DzNode node, Number defaultViewLevel, Number defaultRenderLevel )

Converts a scene item with polygon mesh geometry to a SubD object. If the node passed in is a DzBone or DzSkeleton, the entire figure will be converted to SubD.

Parameter(s):

  • node - The scene item to convert.
  • defaultLevel - The default subdivision level of the item after conversion.
  • defaultRenderLevel - The default subdivision render level of the item after conversion.

Return Value:

  • DZ_NO_ERROR on success, otherwise an error code.

DzNode : createPrimitive( DzSettings settings )

Creates a primitive based on the settings supplied.

Parameter(s):

  • settings - The settings that specify the type of primitive and corresponding dimensions.

Return Value:

  • DzNode The new primitive node in the scene. NULL if nothing was created.