Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-07-07 09:28:10 +0000
committerStijn Buys <ingar@osirion.org>2009-07-07 09:28:10 +0000
commit0332ac950765e7609604f14e459d24d6b917d9d7 (patch)
treef56dcb224f7dd192755812f7fcecaf1caf0b0424 /src
parentb11b8c90c698d014bf8c2c2a9ed696255470ae59 (diff)
disable quad generation in the map reader
Diffstat (limited to 'src')
-rw-r--r--src/model/map.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/model/map.cc b/src/model/map.cc
index b4a747c..1d1983c 100644
--- a/src/model/map.cc
+++ b/src/model/map.cc
@@ -470,7 +470,8 @@ void Map::make_brushface(Plane *face)
class_minbbox[i] = (*(*it))[i];
}
}
-
+/* Quads are disable to use model data for bullet physics
+
// split polygon into quads
while (vl.size() > 3) {
std::vector<Vector3f *>::iterator v0 = vl.begin();
@@ -490,9 +491,9 @@ void Map::make_brushface(Plane *face)
vl.pop_back();
vl.pop_back();
}
-
- // the remainder could be a triangle
- if (vl.size() > 2) {
+*/
+ // split polygon into triangles
+ while (vl.size() > 2) {
std::vector<Vector3f *>::iterator v0 = vl.begin();
std::vector<Vector3f *>::reverse_iterator vn = vl.rbegin();
std::vector<Vector3f *>::reverse_iterator vn1 = vl.rbegin();