Add a new mesh to the BVH.
Debug.WriteLine("--- Just Plane---");
bool[] results = EmbreeRaytracer.IntersectOccluded(bvh, origins, directions);
string out_str = directions[0].
ToString() + (results[0] ?
"Intersected" :
"Did not Intersect") +
"\n";
out_str += directions[1].
ToString() + (results[1] ?
"Intersected" :
"Did not Intersect");
Debug.WriteLine(out_str);
Debug.WriteLine("--- After Addition---");
bool[] post_addition_results = EmbreeRaytracer.IntersectOccluded(bvh, origins, directions);
string post_addition_out_str = directions[0].
ToString() + (post_addition_results[0] ?
"Intersected" :
"Did not Intersect") +
"\n";
post_addition_out_str += directions[1].
ToString() + (post_addition_results[1] ?
"Intersected" :
"Did not Intersect");
Debug.WriteLine(post_addition_out_str);
static MeshInfo[] LoadOBJSubmeshes(string path, GROUP_METHOD gm, float xrot=0, float yrot=0, float zrot=0)
Load an obj from the OBJ file at the given filepath.
Definition: OBJLoader.cs:86
void AddMesh(MeshInfo MI)
Add a new mesh to the BVH.
Definition: EmbreeBVH.cs:118
GROUP_METHOD
Methods for seperating meshes when loading from OBJ.
Definition: OBJLoader.cs:12
A three dimensional vector with built in utility functions.
Definition: CommonTypes.cs:40
override string ToString()
Construct a string representation of this vector's x, y, and z coordinates.
Definition: CommonTypes.cs:111