 |
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.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic 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