Intersection points between a plane and a mesh

Hi,

I would like to know if there is a fast method to find all the points where a plane and a mesh intersects.

I think that a method could be check all the triangles in the mesh and see if they intersects with the plane, but maybe there is a faster method.

Thanks.

Use

function OnCollisionStay(collision : Collision) {
    // Check if the collider we hit has a rigidbody
    // Then apply the force
    for (var contact : ContactPoint in collision.contacts) {
        print(contact.thisCollider.name + " hit " + contact.otherCollider.name);
        // Visualize the contact point
        Debug.DrawRay(contact.point, contact.normal, Color.white);
    }
}

Check it out in the scripting reference under Collision.contacts