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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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

[Missing <returns> documentation for "M:Ab4d.SharpEngine.Utilities.ModelOptimizer.Optimize(Ab4d.SharpEngine.SceneNodes.GroupNode,System.String)"]

Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.ModelOptimizer.Optimize(Ab4d.SharpEngine.SceneNodes.GroupNode,System.String)"]

See Also