that is a gorgeous demo Petr, i have burned the ship completely, in fact i need time to grasp the code.
in the example holes_in_model4 making bumps and valleys with R-click and shift R-click is a great demo it can be used in a demo to inflate virtual balloons or even in a demo to show a pregnant woman for the biology classes.
i want to add a little thing for the rectangular flat models. this is to cut the time to a half ,ie instead of looping from 1 to vertexCount we check if x is negative or positive, but this is if the model vertices have this coordinates or we need another plan if not.
PS: another idea is to use TBGL_m15GetModelDimensions( 1, dx, dy, dz ) to see what is the half of the rectangle, i will keep thinking about this .
If x > 0 Then
beginsCalc = vertexCount /2
square = (vertexCount /6)/2
beginsCalc = 1: square = 0
For i = beginsCalc To vertexCount Step 6
square += 1
If TBGL_PointInside3D( x, 0, z, %TBGL_OBJ_CUBE, Cubes(square).x, Cubes(square).y, Cubes(square).z, Cubes(square).r) Then