In connection with the optimization of structures there is often the need to define volumes where there should be no structure (e.g. windows, rooms). One approach is to choose the parametrization in such a way, that the volumes that should stay free can not be crossed by structure. This is often rather hard to achieve. Another method consists of using penalty functions: The parametrization does not preclude “wrong” solutions, but makes them perform worse than the “right” ones. This is where the “Detect Collision”-component comes into play. It takes a model and a mesh as input and determines the number of collisions between model and mesh. The result is returned in “nColl” (see fig. 126.96.36.199). The input-plug “StartInd” accepts the index of the element with which the collision detection should start. By default all elements of the model are included.