 |
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: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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