コード例 #1
0
 public RTMesh(Mesh unityMesh)
 {
     _unityMesh    = unityMesh;
     _vertices     = _unityMesh.vertices;
     _vertIndices  = _unityMesh.triangles;
     _numTriangles = (int)(_vertIndices.Length / 3);
     _meshTree     = new MeshTree(this);
     _aabb         = new AABB(_unityMesh.bounds);
 }