optimizeByStructureFlattening
Syntax
<Path>.optimizeByStructureFlattening(KeepGrouping:boolean, PreserveObstacles:boolean, RemovePolylinesAndPointSets:boolean) |
The method optimizeByStructureFlattening optimizes the graphic designated by <Path>.
Note:
The method deactivates graphic inheritance.
Note:
You cannot assign the method when the graphic is an automatically generated graphic group or when the graphic is located in an automatically generated graphic group.
Parameters
The parameter KeepGrouping of data type boolean sets if the structure of the object will be flattened while preserving its contents (true) or not (false).
The parameter PreserveObstacles of data type boolean sets if obstacles are preserved (true) or not (false).
The parameter RemovePolylinesAndPointSets of data type boolean sets if polylines and point sets are deleted (true) or not (false).
Example
.Models.Frame._3D.getGraphic("deco", [1]).optimizeByStructureFlattening(true, true, false) |
Related Topics
Related Topics
Detailed Access To GraphicsaddGraphicTransformation
deleteGraphic
graphic
groupGraphics
Index
InternalGraphicType
makeAnimatableObject
MaterialActive
MaterialAmbientColor
MaterialDiffuseColor
MaterialEmissiveColor
MaterialShininess
MaterialSpecularColor
MaterialTransparency
Name
NumGraphics
ObstacleForWorker
optimizeByPruningTinyGraphics
optimizeByVisibilityFilter
Position
Rotation
Scale
TransformationMatrix
ungroupGraphic