mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
28 lines
466 B
Text
28 lines
466 B
Text
|
# WaveFront .obj file - a single square based pyramid
|
||
|
|
||
|
# Start a new group:
|
||
|
g MySquareBasedPyramid
|
||
|
|
||
|
# List of vertices:
|
||
|
# Front left
|
||
|
v -0.5 0 0.5
|
||
|
# Front right
|
||
|
v 0.5 0 0.5
|
||
|
# Back right
|
||
|
v 0.5 0 -0.5
|
||
|
# Back left
|
||
|
v -0.5 0 -0.5
|
||
|
# Top point (top of pyramid).
|
||
|
v 0 1 0
|
||
|
|
||
|
# List of faces:
|
||
|
# Square base (note: normals are placed anti-clockwise).
|
||
|
f 4 3 2 1
|
||
|
# Triangle on front
|
||
|
f 1 2 5
|
||
|
# Triangle on back
|
||
|
f 3 4 5
|
||
|
# Triangle on left side
|
||
|
f 4 1 5
|
||
|
# Triangle on right side
|
||
|
f 2 3 5
|