Click or drag to resize
Ab4d.SharpEngine logo

ModelOptimizerOptimize Method

Optimizes the models in the specified GroupNode and returns a new GroupNode with optimized models. Child SceneNodes that cannot be optimized (LineNodes, etc.) are copied to the new GroupNode. This method also flattens the hierarchy of the children.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static GroupNode Optimize(
	GroupNode groupNode,
	string? newGroupNodeName = null
)

Parameters

groupNode  GroupNode
GroupNode that will be optimized
newGroupNodeName  String  (Optional)
optional name of the new GroupNode; when null and the groupNode has name, then "Optimized" + groupNode.Name is used

Return Value

GroupNode
See Also