griffithinfotech / quickb2

Automatically exported from code.google.com/p/quickb2
0 stars 0 forks source link

Add a slice() function for all qb2Tangibles. #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This function should take an amLine2d and literally slice whatever the object 
is in two.  Circle slices would be approximated by polygons.  This is pretty 
straightforward in most cases, but other cases (non-convex polygons for 
example) can get pretty hairy.  As can partial slices, where a line doesn't go 
all the way through.

Original issue reported on code.google.com by doug...@gmail.com on 29 Nov 2010 at 6:37

GoogleCodeExporter commented 9 years ago
Oh yea, and after slice is well-implemented, all sorts of interesting 
operations can be done, like destructible objects, glass shatters, etc.

Original comment by doug...@gmail.com on 29 Nov 2010 at 7:05