Graphics assignment 6 part 1 is almost finished.

parent 1596b66a
/* Computer Graphics, Assignment, Ray-tracing 1
*
* Student name ....
* Student email ...
* Collegekaart ....
* Date ............
* Comments ........
*
*
* (always fill in these fields before submitting!!)
* Student name .... Sander van Veen, Taddeüs Kroes
* Student email ... sander@vo20.nl, taddeuskroes@gmail.com
* Collegekaart .... 6167969,
* Date ............
* Comments ........
*/
#include <sys/time.h>
......@@ -167,7 +164,8 @@ ray_trace(void)
// Compute camera coordinate system from camera position
// and look-at point
up_vector = v3_create(0, 0, 1);
forward_vector = v3_normalize(v3_subtract(scene_camera_lookat, scene_camera_position));
forward_vector = v3_normalize(v3_subtract(scene_camera_lookat,
scene_camera_position));
right_vector = v3_normalize(v3_crossprod(forward_vector, up_vector));
up_vector = v3_crossprod(right_vector, forward_vector);
......@@ -175,26 +173,69 @@ ray_trace(void)
// and image aspect ratio. This is the size of the plane at distance
// of one unit from the camera position.
image_plane_height = 2.0 * tan(0.5*VFOV/180*M_PI);
image_plane_width = image_plane_height * (1.0 * framebuffer_width / framebuffer_height);
image_plane_width = image_plane_height * (1.0 * framebuffer_width
/ framebuffer_height);
float l = image_plane_width * .5f, // measured from e along right_vector
r = -l,
b = image_plane_height * .5f, // measured from e along up_vector
t = -b;
float u, v;
// ...
// ...
// ...
float frame_height_div = 1.0 / framebuffer_height,
frame_width_div = 1.0 / framebuffer_width;
up_vector = v3_normalize(up_vector);
vec3 ray_o = scene_camera_position,
ray_d = forward_vector;
// e = scene_camera_position;
// e = v3_subtract(scene_camera_lookat, scene_camera_position);
// Loop over all pixels in the framebuffer
for (j = 0; j < framebuffer_height; j++)
for( j = 0; j < framebuffer_height; j++ )
{
for (i = 0; i < framebuffer_width; i++)
for( i = 0; i < framebuffer_width; i++ )
{
// ...
// ...
// ...
// compute viewing ray
//u = l + (r - l) * (i + 0.5) * frame_width_div;
//v = b + (t - b) * (j + 0.5) * frame_height_div;
// One unit distance, adjust to plane center and normalize
ray_d = v3_normalize(v3_create(
((i + .5f) * frame_width_div) + r,
((framebuffer_height - j + .5f) * frame_height_div) + t,
1.f
));
ray_d = v3_create(
right_vector.x * ray_d.x + up_vector.x * ray_d.y
+ forward_vector.x * ray_d.z,
right_vector.y * ray_d.x + up_vector.y * ray_d.y
+ forward_vector.y * ray_d.z,
right_vector.z * ray_d.x + up_vector.z * ray_d.y
+ forward_vector.z * ray_d.z
);
//ray_d = v3_normalize(v3_add(
// ray_o,
// v3_add(v3_multiply(right_vector, u), v3_multiply(up_vector, v))
//));
//if( i == 0 && j < 20 )
// printf("d: [%f, %f, %f]\n", ray_d.x, ray_d.y, ray_d.z);
//ray_origin = v3_add(e, v3_add(v3_multiply(right_vector, u),
// v3_multiply(up_vector, v)));
color = ray_color(0, ray_o, ray_d);
// Output pixel color
put_pixel(i, j, color.x, color.y, color.z);
}
sprintf(buf, "Ray-tracing ::: %.0f%% done", 100.0*j/framebuffer_height);
sprintf(buf, "Ray-tracing ::: %.0f%% done",
100.0 * j / framebuffer_height);
glutSetWindowTitle(buf);
}
......@@ -522,7 +563,6 @@ motion_func(int x, int y)
}
}
int
main(int argc, char **argv)
{
......
This source diff could not be displayed because it is too large. You can view the blob instead.
ply
format ascii 1.0
comment Created by Blender3D 247 - www.blender.org, source file: rt3.blend
element vertex 33
property float x
property float y
property float z
property float nx
property float ny
property float nz
element face 16
property list uchar uint vertex_indices
end_header
0.617256 -0.000000 0.662460 0.838717 0.347408 0.419359
0.436466 0.436466 0.662460 0.838717 0.347408 0.419359
0.000000 0.000000 1.896971 0.838717 0.347408 0.419359
0.000000 0.000000 1.896971 0.838717 -0.347408 0.419359
0.436466 -0.436466 0.662460 0.838717 -0.347408 0.419359
0.617256 -0.000000 0.662460 0.838717 -0.347408 0.419359
0.000000 0.000000 1.896971 0.347408 -0.838717 0.419359
-0.000000 -0.617256 0.662460 0.347408 -0.838717 0.419359
0.436466 -0.436466 0.662460 0.347408 -0.838717 0.419359
0.000000 0.000000 1.896971 -0.347408 -0.838717 0.419359
-0.436466 -0.436465 0.662460 -0.347408 -0.838717 0.419359
-0.000000 -0.617256 0.662460 -0.347408 -0.838717 0.419359
0.000000 0.000000 1.896971 -0.838717 -0.347408 0.419359
-0.617256 0.000000 0.662460 -0.838717 -0.347408 0.419359
-0.436466 -0.436465 0.662460 -0.838717 -0.347408 0.419359
0.000000 0.000000 1.896971 -0.838717 0.347408 0.419358
-0.436466 0.436465 0.662460 -0.838717 0.347408 0.419358
-0.617256 0.000000 0.662460 -0.838717 0.347408 0.419358
0.000000 0.000000 1.896971 -0.347408 0.838717 0.419359
-0.000000 0.617256 0.662460 -0.347408 0.838717 0.419359
-0.436466 0.436465 0.662460 -0.347408 0.838717 0.419359
0.000000 0.000000 1.896971 0.347408 0.838717 0.419358
0.436466 0.436466 0.662460 0.347408 0.838717 0.419358
-0.000000 0.617256 0.662460 0.347408 0.838717 0.419358
0.000000 0.000000 0.662460 -0.000000 0.000000 -1.000000
0.436466 0.436466 0.662460 -0.000000 0.000000 -1.000000
0.617256 -0.000000 0.662460 -0.000000 0.000000 -1.000000
0.436466 -0.436466 0.662460 0.000000 0.000000 -1.000000
-0.000000 -0.617256 0.662460 0.000000 0.000000 -1.000000
-0.436466 -0.436465 0.662460 0.000000 0.000000 -1.000000
-0.617256 0.000000 0.662460 0.000000 0.000000 -1.000000
-0.436466 0.436465 0.662460 0.000000 -0.000000 -1.000000
-0.000000 0.617256 0.662460 0.000000 -0.000000 -1.000000
3 0 1 2
3 3 4 5
3 6 7 8
3 9 10 11
3 12 13 14
3 15 16 17
3 18 19 20
3 21 22 23
3 24 25 26
3 24 26 27
3 24 27 28
3 24 28 29
3 24 29 30
3 24 30 31
3 24 31 32
3 32 25 24
This source diff could not be displayed because it is too large. You can view the blob instead.
ply
format ascii 1.0
comment Created by Blender3D 246 - www.blender.org, source file: rt3.blend
element vertex 28
property float x
property float y
property float z
property float nx
property float ny
property float nz
element face 10
property list uchar uint vertex_indices
end_header
-0.335900 -0.208247 0.711887 -0.392166 0.919895 0.000001
-0.335901 -0.208247 0.000000 -0.392166 0.919895 0.000001
-0.990118 -0.487150 0.000000 -0.392166 0.919895 0.000001
-0.335900 -0.208247 0.711887 -0.392166 0.919894 0.000001
-0.990118 -0.487150 0.000000 -0.392166 0.919894 0.000001
-0.990118 -0.487151 0.711887 -0.392166 0.919894 0.000001
-0.711214 -1.141368 0.000000 -0.919895 -0.392166 -0.000001
-0.711215 -1.141368 0.711887 -0.919895 -0.392166 -0.000001
-0.990118 -0.487151 0.711887 -0.919895 -0.392166 -0.000001
-0.711214 -1.141368 0.000000 -0.919894 -0.392166 -0.000001
-0.990118 -0.487151 0.711887 -0.919894 -0.392166 -0.000001
-0.990118 -0.487150 0.000000 -0.919894 -0.392166 -0.000001
-0.056997 -0.862464 0.000000 0.392167 -0.919894 -0.000001
-0.056997 -0.862465 0.711887 0.392167 -0.919894 -0.000001
-0.711214 -1.141368 0.000000 0.392167 -0.919894 -0.000001
-0.056997 -0.862465 0.711887 0.392165 -0.919895 0.000001
-0.711215 -1.141368 0.711887 0.392165 -0.919895 0.000001
-0.711214 -1.141368 0.000000 0.392165 -0.919895 0.000001
-0.335901 -0.208247 0.000000 0.919894 0.392167 -0.000001
-0.335900 -0.208247 0.711887 0.919894 0.392167 -0.000001
-0.056997 -0.862464 0.000000 0.919894 0.392167 -0.000001
-0.335900 -0.208247 0.711887 0.919895 0.392165 0.000001
-0.056997 -0.862465 0.711887 0.919895 0.392165 0.000001
-0.056997 -0.862464 0.000000 0.919895 0.392165 0.000001
-0.335900 -0.208247 0.711887 0.000000 -0.000000 1.000000
-0.990118 -0.487151 0.711887 0.000000 -0.000000 1.000000
-0.711215 -1.141368 0.711887 0.000000 -0.000000 1.000000
-0.056997 -0.862465 0.711887 0.000000 -0.000000 1.000000
3 0 1 2
3 3 4 5
3 6 7 8
3 9 10 11
3 12 13 14
3 15 16 17
3 18 19 20
3 21 22 23
3 24 25 26
3 24 26 27
This source diff could not be displayed because it is too large. You can view the blob instead.
ply
format ascii 1.0
comment Created by Blender3D 246 - www.blender.org, source file: rt3.blend
element vertex 34
property float x
property float y
property float z
property float nx
property float ny
property float nz
element face 16
property list uchar uint vertex_indices
end_header
1.526115 1.526115 0.000000 0.000000 -0.000000 1.000000
-1.526115 -1.526115 0.000000 0.000000 -0.000000 1.000000
1.526115 -1.526115 0.000000 0.000000 -0.000000 1.000000
-1.526115 1.526116 0.000000 -0.000000 0.000000 1.000000
1.526115 1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 1.526116 0.000000 0.000000 0.000000 0.000000
-1.526115 1.526116 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 -0.867699 0.000000 0.497089
-1.526115 1.526116 0.000000 -0.867699 0.000000 0.497089
-1.868441 1.868442 -0.597550 -0.867699 0.000000 0.497089
-1.868441 -1.868441 -0.597550 -0.867699 0.000000 0.497089
1.526115 -1.526115 0.000000 0.000000 -0.867699 0.497090
-1.526115 -1.526115 0.000000 0.000000 -0.867699 0.497090
-1.868441 -1.868441 -0.597550 0.000000 -0.867699 0.497090
1.526115 -1.526115 0.000000 0.000000 -0.867699 0.497089
-1.868441 -1.868441 -0.597550 0.000000 -0.867699 0.497089
1.868441 -1.868441 -0.597550 0.000000 -0.867699 0.497089
-1.526115 1.526116 0.000000 0.000000 0.867699 0.497089
1.526115 1.526115 0.000000 0.000000 0.867699 0.497089
1.868441 1.868441 -0.597550 0.000000 0.867699 0.497089
-1.868441 1.868442 -0.597550 0.000000 0.867699 0.497089
1.526115 1.526115 0.000000 0.867699 -0.000000 0.497089
1.526115 -1.526115 0.000000 0.867699 -0.000000 0.497089
1.868441 -1.868441 -0.597550 0.867699 -0.000000 0.497089
1.868441 1.868441 -0.597550 0.867699 0.000000 0.497089
1.868441 1.868441 -0.597550 0.000000 0.000000 -1.000000
-1.868441 -1.868441 -0.597550 0.000000 0.000000 -1.000000
-1.868441 1.868442 -0.597550 0.000000 0.000000 -1.000000
1.868441 -1.868441 -0.597550 0.000000 0.000000 -1.000000
3 0 1 2
3 0 3 1
4 4 5 6 7
4 8 4 7 9
4 5 10 11 6
4 10 8 9 11
3 12 13 14
3 12 14 15
3 16 17 18
3 19 20 21
3 22 23 24
3 22 24 25
3 26 27 28
3 26 28 29
3 30 31 32
3 30 33 31
ply
format ascii 1.0
comment Created by Blender3D 246 - www.blender.org, source file: rt3.blend
element vertex 257
property float x
property float y
property float z
property float nx
property float ny
property float nz
element face 256
property list uchar uint vertex_indices
end_header
0.763057 0.000000 0.000000 0.000000 0.000000 1.000000
1.526115 0.000000 0.000000 0.000000 0.000000 1.000000
1.526115 0.763057 0.000000 0.000000 0.000000 1.000000
0.763057 0.763057 0.000000 0.000000 0.000000 1.000000
0.000000 0.000000 0.000000 0.000000 0.000000 1.000000
1.526115 1.526115 0.000000 0.000000 0.000000 1.000000
0.000000 -0.763057 0.000000 0.000000 0.000000 1.000000
0.763057 -0.763057 0.000000 0.000000 0.000000 1.000000
0.000000 -1.526115 0.000000 0.000000 0.000000 1.000000
0.763057 -1.526115 0.000000 0.000000 0.000000 1.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 1.000000
1.526115 -0.763057 0.000000 0.000000 0.000000 1.000000
-0.763057 -1.526115 0.000000 0.000000 0.000000 1.000000
-0.763057 -0.763057 0.000000 0.000000 0.000000 1.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 1.000000
0.000000 0.763058 0.000000 0.000000 -0.000000 1.000000
0.763057 1.526115 0.000000 -0.000000 0.000000 1.000000
0.000000 1.526115 0.000000 0.000000 -0.000000 1.000000
-0.763057 0.763058 0.000000 -0.000000 0.000000 1.000000
-0.763057 0.000000 0.000000 0.000000 -0.000000 1.000000
-1.526115 0.000001 0.000000 -0.000000 0.000000 1.000000
-1.526115 -0.763057 0.000000 0.000000 -0.000000 1.000000
-1.526115 0.763058 0.000000 0.000000 -0.000000 1.000000
-0.763057 1.526116 0.000000 -0.000000 0.000000 1.000000
-1.526115 1.526116 0.000000 0.000000 -0.000000 1.000000
1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 0.000000 0.000000 0.000000 0.000000 0.000000
1.526115 0.000000 0.000000 0.000000 0.000000 0.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 0.000000 0.000000 0.000000 0.000000 0.000000
1.526115 0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 0.000000 0.000000 0.000000 0.000000 0.000000
1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 0.000000 0.000000 0.000000 0.000000 0.000000
1.526115 0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 1.526115 0.000000 0.000000 0.000000 0.000000
1.526115 0.763057 0.000000 0.000000 0.000000 0.000000
1.526115 1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 1.526115 0.000000 0.000000 0.000000 0.000000
-0.763057 1.526116 0.000000 0.000000 0.000000 0.000000
-0.763057 1.526116 0.000000 0.000000 0.000000 0.000000
-1.526115 1.526116 0.000000 0.000000 0.000000 0.000000
-1.526115 1.526116 0.000000 0.000000 0.000000 0.000000
-0.763057 1.526116 0.000000 0.000000 0.000000 0.000000
-1.526115 1.526116 0.000000 0.000000 0.000000 0.000000
0.763057 1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 1.526115 0.000000 0.000000 0.000000 0.000000
-0.763057 1.526116 0.000000 0.000000 0.000000 0.000000
-1.526115 1.526116 0.000000 0.000000 0.000000 0.000000
-0.763057 1.526116 0.000000 0.000000 0.000000 0.000000
-1.526115 1.526116 0.000000 0.000000 0.000000 0.000000
-0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
-0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 -1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
-0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 -1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
-0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 -1.526115 0.000000 0.000000 0.000000 0.000000
-0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
0.000000 -1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
0.763057 -1.526115 0.000000 0.000000 0.000000 0.000000
-1.526115 0.763058 0.000000 0.000000 0.000000 0.000000
-1.526115 0.763058 0.000000 0.000000 0.000000 0.000000
-1.526115 0.000001 0.000000 0.000000 0.000000 0.000000
-1.526115 0.000001 0.000000 0.000000 0.000000 0.000000
-1.526115 0.763058 0.000000 0.000000 0.000000 0.000000
-1.526115 0.000001 0.000000 0.000000 0.000000 0.000000
-1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
-1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
-1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
-1.526115 0.763058 0.000000 0.000000 0.000000 0.000000
-1.526115 0.000001 0.000000 0.000000 0.000000 0.000000
-1.526115 0.763058 0.000000 0.000000 0.000000 0.000000
-1.526115 0.000001 0.000000 0.000000 0.000000 0.000000
-1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
-1.526115 -0.763057 0.000000 0.000000 0.000000 0.000000
-1.611696 0.085582 -0.149388 -0.867699 0.000000 0.497089
-1.697278 0.171163 -0.298775 -0.867699 0.000000 0.497089
-1.611696 -0.677476 -0.149388 -0.867699 0.000000 0.497089
-1.526115 -0.763057 0.000000 -0.867699 0.000000 0.497089
-1.526115 0.000001 0.000000 -0.867699 0.000000 0.497089
-1.526115 -1.526115 0.000000 -0.867699 0.000000 0.497089
-1.611696 0.848640 -0.149388 -0.867699 0.000000 0.497089
-1.697278 0.934221 -0.298775 -0.867699 0.000000 0.497089
-1.697278 1.697279 -0.298775 -0.867699 0.000000 0.497089
-1.782859 1.782861 -0.448163 -0.867699 0.000000 0.497089
-1.868441 1.868442 -0.597550 -0.867699 0.000000 0.497089
-1.782859 1.019803 -0.448163 -0.867699 0.000000 0.497089
-1.611696 1.611697 -0.149388 -0.867699 0.000000 0.497089
-1.526115 0.763058 0.000000 -0.867699 0.000000 0.497089
-1.526115 1.526116 0.000000 -0.867699 0.000000 0.497089
-1.697278 -0.763057 -0.298775 -0.867699 0.000000 0.497089
-1.697278 -1.697278 -0.298775 -0.867699 0.000000 0.497089
-1.611696 -1.611696 -0.149388 -0.867699 0.000000 0.497089
-1.782859 0.085582 -0.448163 -0.867699 0.000000 0.497089
-1.782859 -0.848639 -0.448163 -0.867699 0.000000 0.497089
-1.868441 0.000001 -0.597550 -0.867699 0.000000 0.497089
-1.868441 -0.934220 -0.597550 -0.867699 0.000000 0.497089
-1.868441 -1.868441 -0.597550 -0.867699 0.000000 0.497089
-1.782859 -1.782859 -0.448163 -0.867699 0.000000 0.497089
-1.868441 0.934221 -0.597550 -0.867699 0.000000 0.497089
-0.085581 -1.611696 -0.149388 0.000000 -0.867699 0.497089
-0.171163 -1.697278 -0.298775 0.000000 -0.867699 0.497089
0.677476 -1.611696 -0.149388 0.000000 -0.867699 0.497089
0.763057 -1.526115 0.000000 0.000000 -0.867699 0.497089
0.000000 -1.526115 0.000000 0.000000 -0.867699 0.497089
1.526115 -1.526115 0.000000 0.000000 -0.867699 0.497089
-0.848639 -1.611696 -0.149388 0.000000 -0.867699 0.497089
-0.934220 -1.697278 -0.298775 0.000000 -0.867699 0.497089
-1.697278 -1.697278 -0.298775 0.000000 -0.867699 0.497089
-1.782859 -1.782859 -0.448163 0.000000 -0.867699 0.497089
-1.868441 -1.868441 -0.597550 0.000000 -0.867699 0.497089
-1.019802 -1.782859 -0.448163 0.000000 -0.867699 0.497089
-1.019802 -1.782859 -0.448163 0.000000 -0.867699 0.497090
-0.934220 -1.697278 -0.298775 0.000000 -0.867699 0.497090
-1.782859 -1.782859 -0.448163 0.000000 -0.867699 0.497090
-1.697278 -1.697278 -0.298775 0.000000 -0.867699 0.497090
-0.171163 -1.697278 -0.298775 0.000000 -0.867699 0.497090
-1.611696 -1.611696 -0.149388 0.000000 -0.867699 0.497089
-0.763057 -1.526115 0.000000 0.000000 -0.867699 0.497089
-1.526115 -1.526115 0.000000 0.000000 -0.867699 0.497089
0.763057 -1.697278 -0.298775 0.000000 -0.867699 0.497089
1.697278 -1.697278 -0.298775 0.000000 -0.867699 0.497089
1.611696 -1.611696 -0.149388 0.000000 -0.867699 0.497089
0.763057 -1.697278 -0.298775 0.000000 -0.867699 0.497090
-0.085581 -1.782859 -0.448163 0.000000 -0.867699 0.497090
0.848639 -1.782859 -0.448163 0.000000 -0.867699 0.497090
1.697278 -1.697278 -0.298775 0.000000 -0.867699 0.497090
0.848639 -1.782859 -0.448163 0.000000 -0.867699 0.497089
-0.085581 -1.782859 -0.448163 0.000000 -0.867699 0.497089
0.000000 -1.868441 -0.597550 0.000000 -0.867699 0.497089
0.934220 -1.868441 -0.597550 0.000000 -0.867699 0.497089
1.868441 -1.868441 -0.597550 0.000000 -0.867699 0.497089
1.782859 -1.782859 -0.448163 0.000000 -0.867699 0.497089
1.782859 -1.782859 -0.448163 0.000000 -0.867699 0.497090
-0.934220 -1.868441 -0.597550 0.000000 -0.867699 0.497089
0.085581 1.611697 -0.149388 0.000000 0.867699 0.497090
0.171163 1.697278 -0.298775 0.000000 0.867699 0.497090
-0.677476 1.611697 -0.149388 0.000000 0.867699 0.497090
-0.763057 1.526116 0.000000 0.000000 0.867699 0.497090
0.000000 1.526115 0.000000 0.000000 0.867699 0.497090
-1.526115 1.526116 0.000000 0.000000 0.867699 0.497090
0.848639 1.611697 -0.149388 0.000000 0.867699 0.497090
0.934220 1.697278 -0.298775 0.000000 0.867699 0.497090
1.697278 1.697278 -0.298775 0.000000 0.867699 0.497090
1.782859 1.782859 -0.448163 0.000000 0.867699 0.497090
1.868441 1.868441 -0.597550 0.000000 0.867699 0.497090
1.019802 1.782859 -0.448163 0.000000 0.867699 0.497090
1.019802 1.782859 -0.448163 0.000000 0.867700 0.497089
0.934220 1.697278 -0.298775 0.000000 0.867700 0.497089
1.782859 1.782859 -0.448163 0.000000 0.867700 0.497089
1.697278 1.697278 -0.298775 0.000000 0.867700 0.497089
0.171163 1.697278 -0.298775 0.000000 0.867700 0.497089
1.611696 1.611696 -0.149388 0.000000 0.867699 0.497090
0.763057 1.526115 0.000000 0.000000 0.867699 0.497090
1.526115 1.526115 0.000000 0.000000 0.867699 0.497090
-0.763057 1.697279 -0.298775 0.000000 0.867699 0.497090
-1.697278 1.697279 -0.298775 0.000000 0.867699 0.497090
-1.611696 1.611697 -0.149388 0.000000 0.867699 0.497090
-1.611696 1.611697 -0.149388 0.000000 0.867699 0.497089
-0.677476 1.611697 -0.149388 0.000000 0.867699 0.497089
-0.763057 1.697279 -0.298775 0.000000 0.867699 0.497089
0.171163 1.697278 -0.298775 0.000000 0.867699 0.497089
-1.526115 1.526116 0.000000 0.000000 0.867699 0.497089
0.085581 1.782860 -0.448163 0.000000 0.867699 0.497090
0.085581 1.782860 -0.448163 0.000000 0.867699 0.497089
-0.848639 1.782860 -0.448163 0.000000 0.867699 0.497089
-1.697278 1.697279 -0.298775 0.000000 0.867699 0.497089
0.000000 1.868441 -0.597550 0.000000 0.867699 0.497089
-0.934220 1.868442 -0.597550 0.000000 0.867699 0.497089
-1.868441 1.868442 -0.597550 0.000000 0.867699 0.497089
-1.782859 1.782861 -0.448163 0.000000 0.867699 0.497089
-1.782859 1.782861 -0.448163 0.000000 0.867699 0.497090
-0.848639 1.782860 -0.448163 0.000000 0.867699 0.497090
-0.934220 1.868442 -0.597550 0.000000 0.867699 0.497090
0.000000 1.868441 -0.597550 0.000000 0.867699 0.497090
0.934220 1.868441 -0.597550 0.000000 0.867699 0.497089
0.934220 1.868441 -0.597550 0.000000 0.867699 0.497090
1.611696 -0.085581 -0.149388 0.867699 0.000000 0.497089
1.697278 -0.171163 -0.298775 0.867699 0.000000 0.497089
1.611696 0.677476 -0.149388 0.867699 0.000000 0.497089
1.526115 0.763057 0.000000 0.867699 0.000000 0.497089
1.526115 0.000000 0.000000 0.867699 0.000000 0.497089
1.526115 1.526115 0.000000 0.867699 0.000000 0.497089
1.611696 -0.848639 -0.149388 0.867699 0.000000 0.497089
1.697278 -0.934220 -0.298775 0.867699 0.000000 0.497089
1.697278 -1.697278 -0.298775 0.867699 0.000000 0.497089
1.782859 -1.782859 -0.448163 0.867699 0.000000 0.497089
1.868441 -1.868441 -0.597550 0.867699 0.000000 0.497089
1.782859 -1.019802 -0.448163 0.867699 0.000000 0.497089
1.611696 -1.611696 -0.149388 0.867699 0.000000 0.497089
1.526115 -0.763057 0.000000 0.867699 0.000000 0.497089
1.526115 -1.526115 0.000000 0.867699 0.000000 0.497089
1.697278 0.763057 -0.298775 0.867699 0.000000 0.497089
1.697278 1.697278 -0.298775 0.867699 0.000000 0.497089
1.611696 1.611696 -0.149388 0.867699 0.000000 0.497089
1.782859 -0.085582 -0.448163 0.867699 -0.000000 0.497089
1.782859 0.848639 -0.448163 0.867699 0.000000 0.497089
1.868441 -0.000000 -0.597550 0.867699 -0.000000 0.497089
1.868441 0.934220 -0.597550 0.867699 0.000000 0.497089
1.868441 1.868441 -0.597550 0.867699 0.000000 0.497089
1.782859 1.782859 -0.448163 0.867699 0.000000 0.497089
1.868441 -0.934220 -0.597550 0.867699 0.000000 0.497089
0.000000 0.934221 -0.597550 -0.000000 -0.000000 -1.000000
0.000000 1.868441 -0.597550 -0.000000 -0.000000 -1.000000
0.934220 1.868441 -0.597550 -0.000000 -0.000000 -1.000000
0.934220 0.934220 -0.597550 0.000000 0.000000 -1.000000
0.000000 -0.000000 -0.597550 -0.000000 -0.000000 -1.000000
1.868441 1.868441 -0.597550 -0.000000 -0.000000 -1.000000
-0.934220 0.000000 -0.597550 0.000000 0.000000 -1.000000
-0.934220 0.934221 -0.597550 -0.000000 -0.000000 -1.000000
-1.868441 0.000001 -0.597550 0.000000 0.000000 -1.000000
-1.868441 0.934221 -0.597550 -0.000000 -0.000000 -1.000000
-1.868441 1.868442 -0.597550 -0.000000 -0.000000 -1.000000
-0.934220 1.868442 -0.597550 -0.000000 -0.000000 -1.000000
-1.868441 -0.934220 -0.597550 -0.000000 -0.000000 -1.000000
-0.934220 -0.934220 -0.597550 0.000000 0.000000 -1.000000
-1.868441 -1.868441 -0.597550 -0.000000 -0.000000 -1.000000
0.934220 -0.000000 -0.597550 0.000000 -0.000000 -1.000000
1.868441 0.934220 -0.597550 0.000000 0.000000 -1.000000
1.868441 -0.000000 -0.597550 0.000000 -0.000000 -1.000000
0.934220 -0.934220 -0.597550 0.000000 0.000000 -1.000000
0.000000 -0.934220 -0.597550 0.000000 -0.000000 -1.000000
0.000000 -1.868441 -0.597550 0.000000 0.000000 -1.000000
-0.934220 -1.868441 -0.597550 0.000000 -0.000000 -1.000000
0.934220 -1.868441 -0.597550 0.000000 -0.000000 -1.000000
1.868441 -0.934220 -0.597550 0.000000 0.000000 -1.000000
1.868441 -1.868441 -0.597550 0.000000 -0.000000 -1.000000
3 0 1 2
3 2 3 0
3 4 0 3
3 3 2 5
3 0 4 6
3 6 7 0
3 1 0 7
3 7 6 8
3 9 10 11
3 11 7 9
3 8 9 7
3 7 11 1
3 12 8 6
3 6 13 12
3 14 12 13
3 13 6 4
3 15 4 3
3 3 16 15
3 17 15 16
3 16 3 5
3 15 17 18
3 18 19 15
3 4 15 19
3 19 18 20
3 21 14 13
3 13 19 21
3 20 21 19
3 19 13 4
3 22 20 18
3 18 23 22
3 24 22 23
3 23 18 17
4 25 26 27 28
4 29 25 28 30
4 28 27 31 32
4 30 28 32 33
4 34 29 30 35
4 36 34 35 37
4 35 30 33 38
4 37 35 38 39
4 32 31 40 41
4 33 32 41 42
4 41 40 43 44
4 42 41 44 45
4 38 33 42 46
4 39 38 46 47
4 46 42 45 48
4 47 46 48 49
4 50 36 37 51
4 52 50 51 53
4 51 37 39 54
4 53 51 54 55
4 56 52 53 57
4 58 56 57 59
4 57 53 55 60
4 59 57 60 61
4 54 39 47 62
4 55 54 62 63
4 62 47 49 64
4 63 62 64 65
4 60 55 63 66
4 61 60 66 67
4 66 63 65 68
4 67 66 68 69
4 70 71 72 73
4 74 70 73 75
4 73 72 76 77
4 75 73 77 78
4 79 74 75 80
4 26 79 80 27
4 80 75 78 81
4 27 80 81 31
4 77 76 82 83
4 78 77 83 84
4 83 82 85 86
4 84 83 86 87
4 81 78 84 88
4 31 81 88 40
4 88 84 87 89
4 40 88 89 43
4 90 58 59 91
4 92 90 91 93
4 91 59 61 94
4 93 91 94 95
4 96 92 93 97
4 71 96 97 72
4 97 93 95 98
4 72 97 98 76
4 94 61 67 99
4 95 94 99 100
4 99 67 69 101
4 100 99 101 102
4 98 95 100 103
4 76 98 103 82
4 103 100 102 104
4 82 103 104 85
3 105 106 107
3 107 108 105
3 109 105 108
3 108 107 110
3 105 109 111
3 111 112 105
3 106 105 112
3 112 111 113
3 114 115 116
3 116 112 114
3 113 114 112
3 112 116 106
3 117 113 111
3 111 118 117
3 119 117 118
3 118 111 109
3 120 121 122
3 122 107 120
3 106 120 107
3 107 122 110
3 120 106 123
3 123 124 120
3 121 120 124
3 124 123 125
3 126 127 128
3 128 124 126
3 125 126 124
3 124 128 121
3 129 125 123
3 123 116 129
3 115 129 116
3 116 123 106
3 130 131 132
3 132 133 130
3 134 130 133
3 133 132 135
3 130 134 136
3 136 137 130
3 131 130 137
3 137 136 138
3 139 140 141
3 142 143 144
3 145 144 143
3 143 142 146
3 147 138 136
3 136 148 147
3 149 147 148
3 148 136 134
3 150 151 152
3 152 132 150
3 131 150 132
3 132 152 135
3 153 146 154
3 154 155 153
3 156 153 155
3 157 158 159
3 160 161 162
3 162 157 160
3 159 160 157
3 155 163 156
3 164 159 158
3 158 141 164
3 140 164 141
3 142 154 146
3 165 166 167
3 167 168 165
3 169 165 168
3 168 167 170
3 165 169 171
3 171 172 165
3 166 165 172
3 172 171 173
3 174 175 176
3 177 178 179
3 180 179 178
3 178 177 181
3 182 173 171
3 171 183 182
3 184 182 183
3 183 171 169
3 185 186 187
3 188 189 190
3 191 190 189
3 189 188 192
3 185 166 193
3 194 195 190
3 196 190 195
3 195 194 197
3 198 199 200
3 201 202 203
3 204 203 202
3 202 201 186
3 205 197 194
3 193 176 206
3 175 206 176
3 176 193 166
3 207 208 209
3 209 210 207
3 211 207 210
3 210 209 212
3 207 211 213
3 213 214 207
3 208 207 214
3 214 213 215
3 216 217 218
3 218 214 216
3 215 216 214
3 214 218 208
3 219 215 213
3 213 220 219
3 221 219 220
3 220 213 211
3 222 223 224
3 224 209 222
3 208 222 209
3 209 224 212
3 222 208 225
3 225 226 222
3 223 222 226
3 226 225 227
3 228 229 230
3 230 226 228
3 227 228 226
3 226 230 223
3 231 227 225
3 225 218 231
3 217 231 218
3 218 225 208
3 232 233 234
3 234 235 232
3 236 232 235
3 235 234 237
3 232 236 238
3 238 239 232
3 233 232 239
3 239 238 240
3 241 242 243
3 243 239 241
3 240 241 239
3 239 243 233
3 244 240 238
3 238 245 244
3 246 244 245
3 245 238 236
3 247 236 235
3 235 248 247
3 249 247 248
3 248 235 237
3 247 249 250
3 250 251 247
3 236 247 251
3 251 250 252
3 253 246 245
3 245 251 253
3 252 253 251
3 251 245 236
3 254 252 250
3 250 255 254
3 256 254 255
3 255 250 249
ply
format ascii 1.0
comment Created by Blender3D 246 - www.blender.org, source file:
element vertex 60
property float x
property float y
property float z
property float nx
property float ny
property float nz
element face 20
property list uchar uint vertex_indices
end_header
-0.276385 -0.850640 -0.447215 0.187597 -0.577354 -0.794651
0.000000 0.000000 -1.000000 0.187597 -0.577354 -0.794651
0.723600 -0.525720 -0.447215 0.187597 -0.577354 -0.794651
0.723600 -0.525720 -0.447215 0.607065 0.000000 -0.794652
0.000000 0.000000 -1.000000 0.607065 0.000000 -0.794652
0.723600 0.525720 -0.447215 0.607065 0.000000 -0.794652
-0.894425 0.000000 -0.447215 -0.491122 -0.356829 -0.794652
0.000000 0.000000 -1.000000 -0.491122 -0.356829 -0.794652
-0.276385 -0.850640 -0.447215 -0.491122 -0.356829 -0.794652
-0.276385 0.850640 -0.447215 -0.491122 0.356829 -0.794652
0.000000 0.000000 -1.000000 -0.491122 0.356829 -0.794652
-0.894425 0.000000 -0.447215 -0.491122 0.356829 -0.794652
0.723600 0.525720 -0.447215 0.187597 0.577354 -0.794651
0.000000 0.000000 -1.000000 0.187597 0.577354 -0.794651
-0.276385 0.850640 -0.447215 0.187597 0.577354 -0.794651
0.723600 -0.525720 -0.447215 0.982246 0.000000 -0.187597
0.723600 0.525720 -0.447215 0.982246 0.000000 -0.187597
0.894425 0.000000 0.447215 0.982246 0.000000 -0.187597
-0.276385 -0.850640 -0.447215 0.303536 -0.934172 -0.187589
0.723600 -0.525720 -0.447215 0.303536 -0.934172 -0.187589
0.276385 -0.850640 0.447215 0.303536 -0.934172 -0.187589
-0.894425 0.000000 -0.447215 -0.794649 -0.577359 -0.187587
-0.276385 -0.850640 -0.447215 -0.794649 -0.577359 -0.187587
-0.723600 -0.525720 0.447215 -0.794649 -0.577359 -0.187587
-0.276385 0.850640 -0.447215 -0.794649 0.577359 -0.187587
-0.894425 0.000000 -0.447215 -0.794649 0.577359 -0.187587
-0.723600 0.525720 0.447215 -0.794649 0.577359 -0.187587
0.723600 0.525720 -0.447215 0.303536 0.934172 -0.187589
-0.276385 0.850640 -0.447215 0.303536 0.934172 -0.187589
0.276385 0.850640 0.447215 0.303536 0.934172 -0.187589
0.894425 0.000000 0.447215 0.794649 -0.577359 0.187587
0.276385 -0.850640 0.447215 0.794649 -0.577359 0.187587
0.723600 -0.525720 -0.447215 0.794649 -0.577359 0.187587
0.276385 -0.850640 0.447215 -0.303536 -0.934172 0.187589
-0.723600 -0.525720 0.447215 -0.303536 -0.934172 0.187589
-0.276385 -0.850640 -0.447215 -0.303536 -0.934172 0.187589
-0.723600 -0.525720 0.447215 -0.982246 0.000000 0.187597
-0.723600 0.525720 0.447215 -0.982246 0.000000 0.187597
-0.894425 0.000000 -0.447215 -0.982246 0.000000 0.187597
-0.723600 0.525720 0.447215 -0.303536 0.934172 0.187589
0.276385 0.850640 0.447215 -0.303536 0.934172 0.187589
-0.276385 0.850640 -0.447215 -0.303536 0.934172 0.187589
0.276385 0.850640 0.447215 0.794649 0.577359 0.187587
0.894425 0.000000 0.447215 0.794649 0.577359 0.187587
0.723600 0.525720 -0.447215 0.794649 0.577359 0.187587
0.276385 -0.850640 0.447215 0.491122 -0.356829 0.794652
0.894425 0.000000 0.447215 0.491122 -0.356829 0.794652
0.000000 0.000000 1.000000 0.491122 -0.356829 0.794652
-0.723600 -0.525720 0.447215 -0.187597 -0.577354 0.794651
0.276385 -0.850640 0.447215 -0.187597 -0.577354 0.794651
0.000000 0.000000 1.000000 -0.187597 -0.577354 0.794651
-0.723600 0.525720 0.447215 -0.607065 0.000000 0.794652
-0.723600 -0.525720 0.447215 -0.607065 0.000000 0.794652
0.000000 0.000000 1.000000 -0.607065 0.000000 0.794652
0.276385 0.850640 0.447215 -0.187597 0.577354 0.794651
-0.723600 0.525720 0.447215 -0.187597 0.577354 0.794651
0.000000 0.000000 1.000000 -0.187597 0.577354 0.794651
0.894425 0.000000 0.447215 0.491122 0.356829 0.794652
0.276385 0.850640 0.447215 0.491122 0.356829 0.794652
0.000000 0.000000 1.000000 0.491122 0.356829 0.794652
3 0 1 2
3 3 4 5
3 6 7 8
3 9 10 11
3 12 13 14
3 15 16 17
3 18 19 20
3 21 22 23
3 24 25 26
3 27 28 29
3 30 31 32
3 33 34 35
3 36 37 38
3 39 40 41
3 42 43 44
3 45 46 47
3 48 49 50
3 51 52 53
3 54 55 56
3 57 58 59
ply
format ascii 1.0
comment Created by Blender3D 246 - www.blender.org, source file: rt3.blend
element vertex 9
property float x
property float y
property float z
property float nx
property float ny
property float nz
element face 3
property list uchar uint vertex_indices
end_header
0.216364 1.395244 0.000000 0.280241 0.910549 0.303917
0.686369 0.958168 0.876110 0.280241 0.910549 0.303917
1.275200 1.069365 0.000000 0.280241 0.910549 0.303917
0.686369 0.958168 0.876110 -0.896260 -0.288467 0.336904
0.216364 1.395244 0.000000 -0.896260 -0.288467 0.336904
0.555064 0.342909 0.000000 -0.896260 -0.288467 0.336904
0.686369 0.958168 0.876110 0.662107 -0.656347 0.361696
0.555064 0.342909 0.000000 0.662107 -0.656347 0.361696
1.275200 1.069365 0.000000 0.662107 -0.656347 0.361696
3 0 1 2
3 3 4 5
3 6 7 8
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment