Open robinmoussu opened 4 years ago
Hi!
Yes, Triangle
does not implements the trait Shape
because that would be redundant with ConvexPolygon
.
Yet, triangles exist because they are used by triangle-meshes to simply their collision detection. So basically, they are not expected to be used directly by the end-user, but are useful for algorithmic reasons.
I agree the documentation should be more explicit. Or event better: you should consider putting in the shape
module only geometries actually implementing the Shape
trait.
I also have the same question for Compound
. I guess, it's the same answer?
Shape is implemented for Compound
.
I don't know what I've done, I guess I did a syntax error and was too tired, so I just iterated over my ConvexPolgon
manually.
I think I don't understand what the use of
Triangular
is since it doesn't implements the traitShape
. After reading #202, it feels that the right shape to use isConvexPolygon
, but in that case, I don't see whyTriangular
exists at all (and I'm sure there is a reason). I think that the documentation could be more explicit.