Skip to content

Commit

Permalink
Merge branch 'obj-3d'
Browse files Browse the repository at this point in the history
Plus some minor edits
  • Loading branch information
baioc committed Aug 26, 2021
2 parents f81596b + e160f1c commit 6928dbb
Show file tree
Hide file tree
Showing 13 changed files with 6,656 additions and 6,630 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ QT_OBJECTS := $(patsubst $(QT_SRC)/%.ui, $(QT_OBJ)/%.py, $(QT_SOURCES))

# default
run: $(QT_OBJECTS)
$(PYTHON) $(PY_APP) objs/blender.obj
$(PYTHON) $(PY_APP) objs/world.obj

test:
$(PYTHON) -m pytest -vv -s
Expand All @@ -38,7 +38,7 @@ release: submission.zip
$(QT_OBJ)/%.py: $(QT_SRC)/%.ui
$(QT_COMPILER) $< -o $@

submission.zip: $(PY_SOURCES) $(QT_OBJECTS) Makefile README.md requirements.txt objs/blender.obj objs/palette.mtl
submission.zip: $(PY_SOURCES) $(QT_OBJECTS) Makefile README.md requirements.txt objs/world.obj objs/palette.mtl
@ make test
@ make mostlyclean
mkdir PyCG
Expand All @@ -48,7 +48,7 @@ submission.zip: $(PY_SOURCES) $(QT_OBJECTS) Makefile README.md requirements.txt
cp README.md PyCG
cp requirements.txt PyCG
mkdir PyCG/objs
cp objs/blender.obj PyCG/objs
cp objs/world.obj PyCG/objs
cp objs/palette.mtl PyCG/objs
zip -r submission.zip PyCG
rm -r PyCG
27 changes: 19 additions & 8 deletions data/main.ui
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>398</width>
<height>299</height>
<width>415</width>
<height>270</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down Expand Up @@ -526,11 +526,6 @@
<string>Point</string>
</property>
</item>
<item>
<property name="text">
<string>BezierSurface</string>
</property>
</item>
<item>
<property name="text">
<string>Line</string>
Expand All @@ -556,12 +551,28 @@
<string>BSpline</string>
</property>
</item>
<item>
<property name="text">
<string>Wireframe</string>
</property>
</item>
<item>
<property name="text">
<string>Mesh</string>
</property>
</item>
<item>
<property name="text">
<string>BezierSurface</string>
</property>
</item>
</widget>
</item>
<item row="3" column="1">
<widget class="QPlainTextEdit" name="pointsText">
<property name="placeholderText">
<string>Points in the format (x1, y1, z1), (x2, y2, z2), ...</string>
<string>Points in the format (x1, y1, z1), (x2, y2, z2) ...
Use ';' to separate edges/faces in wireframes/meshes.</string>
</property>
</widget>
</item>
Expand Down
41 changes: 0 additions & 41 deletions objs/blender.obj

This file was deleted.

40 changes: 0 additions & 40 deletions objs/scene.obj
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,6 @@ v 696 134 1.0 1.0
v 475 250 1.0 1.0
v 950 0 1.0 1.0

v -300 0 -20 1.0
v -100 0 -20 1.0
v -200 0 80 1.0
v -200 100 30 1.0

v 0 0 0 1.0
v 0 100 0 1.0
v 100 100 0 1.0
v 100 0 0 1.0
v 0 0 100 1.0
v 0 100 100 1.0
v 100 100 100 1.0
v 100 0 100 1.0
v 0 0 0 1.0
v 0 0 100 1.0
v 0 100 100 1.0
v 0 100 0 1.0
v 100 0 0 1.0
v 100 0 100 1.0
v 100 100 100 1.0
v 100 100 0 1.0
v 0 100 0 1.0
v 100 100 0 1.0
v 100 100 100 1.0
v 0 100 100 1.0
v 0 0 0 1.0
v 100 0 0 1.0
v 100 0 100 1.0
v 0 0 100 1.0


o horizon
usemtl green
l 1 2
Expand All @@ -61,12 +30,3 @@ p 6
o snow_mountain
usemtl blue
l 8 9 10 11 12 13 14 8

o pyramid
l 15 16 17 15
l 15 16 18 15
l 15 17 18 15
l 16 18 17 16

o cube
l 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Loading

0 comments on commit 6928dbb

Please sign in to comment.