Use a dedicated ray casting algorithm for 3d triangles without margin.