Module OsgUtil.Optimizer


module Optimizer: sig .. end
Traverses scene graph to improve efficiency. See OptimizationOptions. For example of usage see examples/osgimpostor or osgviewer.

type t 
osgUtil::Optimizer holder.

type optimization_options =
| FLATTEN_STATIC_TRANSFORMS
| REMOVE_REDUNDANT_NODES
| REMOVE_LOADED_PROXY_NODES
| COMBINE_ADJACENT_LODS
| SHARE_DUPLICATE_STATE
| MERGE_GEOMETRY
| CHECK_GEOMETRY
| SPATIALIZE_GROUPS
| COPY_SHARED_NODES
| TRISTRIP_GEOMETRY
| TESSELLATE_GEOMETRY
| OPTIMIZE_TEXTURE_SETTINGS
| MERGE_GEODES
| FLATTEN_BILLBOARDS
| TEXTURE_ATLAS_BUILDER
| STATIC_OBJECT_DETECTION
| DEFAULT_OPTIMIZATIONS (*FLATTEN_STATIC_TRANSFORMS | REMOVE_REDUNDANT_NODES | REMOVE_LOADED_PROXY_NODES | COMBINE_ADJACENT_LODS | SHARE_DUPLICATE_STATE | MERGE_GEOMETRY | CHECK_GEOMETRY | OPTIMIZE_TEXTURE_SETTINGS | STATIC_OBJECT_DETECTION*)
| ALL_OPTIMIZATIONS
val create : unit -> t
val optimize : t -> Osg.Node.t -> unit
val optimize2 : t ->
Osg.Node.t -> optimization_options list -> unit