Touch transformation.

classic Classic list List threaded Threaded
1 message Options
Ivo
Reply | Threaded
Open this post in threaded view
|

Touch transformation.

Ivo
This is sort of a variation on the collision detection mentioned before. I have a set of objects A,B,C and D and i want only A and the other objects from the set B,C and D touching A.

In my current usecase the objects are generated from outside OpenSCAD and with some naive assumptions and generalizations I can probably also generate the calculations needed for deciding if objects touch. This would be messy and ugly.

Is there a better way ?

For the longer term, I can imagine OpenSCAD being extended with an "touches" operator :

touches() {
  A;
  B;
  C;
  D;
}
 maybe with an "exclusive" option which would return the objects touching A but not A itself.