Changeset 5674 in orxonox.OLD for trunk/src/lib/collision_detection
- Timestamp:
- Nov 21, 2005, 4:51:07 PM (19 years ago)
- Location:
- trunk/src/lib/collision_detection
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/Makefile.am
r5463 r5674 2 2 include $(MAINSRCDIR)/defs/include_paths.am 3 3 4 noinst_LIBRARIES = libORXcd.a 4 noinst_LIBRARIES = libORXcd.a 5 5 6 6 libORXcd_a_SOURCES = cd_engine.cc \ … … 13 13 bounding_volume.cc \ 14 14 bounding_sphere.cc 15 16 15 17 16 -
trunk/src/lib/collision_detection/Makefile.in
r5672 r5674 1 # Makefile.in generated by automake 1. 8.5from Makefile.am.1 # Makefile.in generated by automake 1.9.6 from Makefile.am. 2 2 # @configure_input@ 3 3 4 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc.5 # 2003, 2004, 2005 Free Software Foundation, Inc. 6 6 # This Makefile.in is free software; the Free Software Foundation 7 7 # gives unlimited permission to copy and/or distribute it, … … 15 15 @SET_MAKE@ 16 16 17 18 SOURCES = $(libORXcd_a_SOURCES)19 17 20 18 srcdir = @srcdir@ … … 38 36 PRE_UNINSTALL = : 39 37 POST_UNINSTALL = : 38 build_triplet = @build@ 40 39 host_triplet = @host@ 40 target_triplet = @target@ 41 41 subdir = src/lib/collision_detection 42 42 DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ … … 62 62 depcomp = $(SHELL) $(top_srcdir)/depcomp 63 63 am__depfiles_maybe = depfiles 64 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/bounding_sphere.Po \65 @AMDEP_TRUE@ ./$(DEPDIR)/bounding_volume.Po \66 @AMDEP_TRUE@ ./$(DEPDIR)/bv_tree.Po ./$(DEPDIR)/bv_tree_node.Po \67 @AMDEP_TRUE@ ./$(DEPDIR)/cd_engine.Po ./$(DEPDIR)/collision.Po \68 @AMDEP_TRUE@ ./$(DEPDIR)/obb.Po ./$(DEPDIR)/obb_tree.Po \69 @AMDEP_TRUE@ ./$(DEPDIR)/obb_tree_node.Po70 64 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 71 65 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) … … 190 184 target_vendor = @target_vendor@ 191 185 MAINSRCDIR = ../.. 192 noinst_LIBRARIES = libORXcd.a 186 noinst_LIBRARIES = libORXcd.a 193 187 libORXcd_a_SOURCES = cd_engine.cc \ 194 188 collision.cc \ … … 226 220 esac; \ 227 221 done; \ 228 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/collision_detection/Makefile'; \222 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/collision_detection/Makefile'; \ 229 223 cd $(top_srcdir) && \ 230 $(AUTOMAKE) -- foreignsrc/lib/collision_detection/Makefile224 $(AUTOMAKE) --gnu src/lib/collision_detection/Makefile 231 225 .PRECIOUS: Makefile 232 226 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 274 268 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 275 269 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 276 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 277 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 270 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 278 271 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< 279 272 … … 282 275 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 283 276 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 284 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 285 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 277 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 286 278 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 287 279 uninstall-info-am: … … 385 377 386 378 distclean-generic: 387 - rm -f $(CONFIG_CLEAN_FILES)379 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 388 380 389 381 maintainer-clean-generic: -
trunk/src/lib/collision_detection/obb_tree_node.cc
r5511 r5674 20 20 #include "obb.h" 21 21 #include "obb_tree.h" 22 #include " vector.h"22 #include "matrix.h" 23 23 #include "abstract_model.h" 24 24 #include "world_entity.h" 25 25 26 #include <math.h>27 26 #include "color.h" 28 27 29 28 #include "debug.h" 30 #include "stdincl.h"31 29 #include "lin_alg.h" 32 30 #include "glincl.h" … … 361 359 Vector* axis = new Vector[3]; //!< the references to the obb axis 362 360 363 OBBTreeNode::coMat[0][0] = box->covarianceMatrix[0][0]; 364 OBBTreeNode::coMat[0][1] = box->covarianceMatrix[0][1]; 365 OBBTreeNode::coMat[0][2] = box->covarianceMatrix[0][2]; 366 367 OBBTreeNode::coMat[1][0] = box->covarianceMatrix[1][0]; 368 OBBTreeNode::coMat[1][1] = box->covarianceMatrix[1][1]; 369 OBBTreeNode::coMat[1][2] = box->covarianceMatrix[1][2]; 370 371 OBBTreeNode::coMat[2][0] = box->covarianceMatrix[2][0]; 372 OBBTreeNode::coMat[2][1] = box->covarianceMatrix[2][1]; 373 OBBTreeNode::coMat[2][2] = box->covarianceMatrix[2][2]; 374 375 376 // OBBTreeNode::coMat[0][0] = 1; 377 // OBBTreeNode::coMat[0][1] = 2; 378 // OBBTreeNode::coMat[0][2] = 7; 379 // 380 // OBBTreeNode::coMat[1][0] = 2; 381 // OBBTreeNode::coMat[1][1] = 5; 382 // OBBTreeNode::coMat[1][2] = 5; 383 // 384 // OBBTreeNode::coMat[2][0] = 7; 385 // OBBTreeNode::coMat[2][1] = 5; 386 // OBBTreeNode::coMat[2][2] = 8; 387 388 // OBBTreeNode::coMat[1][1] = box->covarianceMatrix[0][0]; 389 // OBBTreeNode::coMat[1][2] = box->covarianceMatrix[0][1]; 390 // OBBTreeNode::coMat[1][3] = box->covarianceMatrix[0][2]; 391 // 392 // OBBTreeNode::coMat[2][1] = box->covarianceMatrix[1][0]; 393 // OBBTreeNode::coMat[2][2] = box->covarianceMatrix[1][1]; 394 // OBBTreeNode::coMat[2][3] = box->covarianceMatrix[1][2]; 395 // 396 // OBBTreeNode::coMat[3][1] = box->covarianceMatrix[2][0]; 397 // OBBTreeNode::coMat[3][2] = box->covarianceMatrix[2][1]; 398 // OBBTreeNode::coMat[3][3] = box->covarianceMatrix[2][2]; 361 Matrix covMat( box->covarianceMatrix[0][0], box->covarianceMatrix[0][1], box->covarianceMatrix[0][2], 362 box->covarianceMatrix[1][0], box->covarianceMatrix[1][1], box->covarianceMatrix[1][2], 363 box->covarianceMatrix[2][0], box->covarianceMatrix[2][1], box->covarianceMatrix[2][2] ); 364 covMat.getEigenVectors(axis[0], axis[1], axis[2] ); 399 365 400 366 401 367 /* new jacobi tests */ 402 JacobI(OBBTreeNode::coMat, OBBTreeNode::eigvlMat, OBBTreeNode::eigvMat, OBBTreeNode::rotCount);403 PRINTF(3)("-- Done Jacobi Decomposition\n");368 // JacobI(OBBTreeNode::coMat, OBBTreeNode::eigvlMat, OBBTreeNode::eigvMat, OBBTreeNode::rotCount); 369 // PRINTF(3)("-- Done Jacobi Decomposition\n"); 404 370 405 371 … … 415 381 // } 416 382 417 axis[0].x = OBBTreeNode::eigvMat[0][0]; axis[0].y = OBBTreeNode::eigvMat[1][0]; axis[0].z = OBBTreeNode::eigvMat[2][0];383 /* axis[0].x = OBBTreeNode::eigvMat[0][0]; axis[0].y = OBBTreeNode::eigvMat[1][0]; axis[0].z = OBBTreeNode::eigvMat[2][0]; 418 384 axis[1].x = OBBTreeNode::eigvMat[0][1]; axis[1].y = OBBTreeNode::eigvMat[1][1]; axis[1].z = OBBTreeNode::eigvMat[2][1]; 419 385 axis[2].x = OBBTreeNode::eigvMat[0][2]; axis[2].y = OBBTreeNode::eigvMat[1][2]; axis[2].z = OBBTreeNode::eigvMat[2][2]; 420 386 axis[0].normalize(); 421 387 axis[1].normalize(); 422 axis[2].normalize(); 388 axis[2].normalize();*/ 423 389 box->axis = axis; 424 390
Note: See TracChangeset
for help on using the changeset viewer.