 |
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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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