3.9.5: Detect Collisions
Fig. 188.8.131.52: A Karamba3D model collides with a mesh
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. 184.108.40.206). 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.