optimizeByVisibilityFilter

Syntax

<Path>.optimizeByVisibilityFilter(CullGranularity:integer, ReductionLevel:integer)

The method optimizeByVisibilityFilter optimizes the graphic designated by <Path> i. e., it removes graphic components which are not visible from the outside.

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 CullGranularity of data type integer sets the granularity for deleting graphics. 0 is very fine granular, 3 is very coarse granular.

  • The parameter ReductionLevel of data type integer sets how close the procedure looks at the graphic. 0 stands for a rather coarse look which causes a lot of graphics to be deleted very quickly, 3 stands for a very close look which takes a lot longer.

Example

.Models.Frame._3D.getGraphic("default", [1]).optimizeByVisibilityFilter(0, 1)
.Models.Frame._3D.getGraphic("deco", [1]).optimizeByVisibilityFilter(0, 1)

Related Topics

Optimize Selected Graphic

Step 2: Visibility filter