Changeset 4844 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- Jul 12, 2005, 11:25:53 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.cc
r4836 r4844 919 919 } 920 920 921 PRINTF( 0)("***************************************GOT%i triangles, %i vertices\n", this->triangleCount, this->vertexCount);921 PRINTF(3)("got %i triangles, %i vertices\n", this->triangleCount, this->vertexCount); 922 922 923 923 -
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r4842 r4844 34 34 { 35 35 this->setClassID(CL_SPATIAL_SEPARATION, "SpatialSeparation"); 36 36 this->getDimension(model); 37 37 } 38 38 … … 130 130 if( pVertices[2] < minY) 131 131 minY = pVertices[2]; 132 } 133 Rectangle* rect = new Rectangle(); 132 134 133 PRINTF(0)("Dimension Informationation: X: min/max %f/%f Y: min/max %f/%f\n", minX, maxX, minY, maxY); 134 } 135 rect->setCenter((maxX + minX) / 2.0f, 0.0f, (maxY + minY) / 2.0f); 136 137 138 PRINTF(0)("Dimension Informationation: X: min/max %f/%f Y: min/max %f/%f\n", minX, maxX, minY, maxY); 135 139 } 136 140 -
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.h
r4842 r4844 22 22 23 23 public: 24 Rectangle() ;25 virtual ~Rectangle() ;24 Rectangle() {} 25 virtual ~Rectangle() {} 26 26 27 27 /** \brief sets the center of the rectangle to a defined vector @param center the new center */ 28 28 inline void setCenter(const Vector ¢er) { this->center = center;} 29 /** \brief sets the center of the rectangle to a defined vector @param x coord of the center @param y coord of the center @param z coord of the center */ 30 inline void setCenter(float x, float y, float z) { this->center.x = x; this->center.y = y; this->center.z = z; } 29 31 /** \brief returns the center of the rectangle to a defined vector @returns center the new center */ 30 32 inline const Vector* getCenter() const { return &this->center; }
Note: See TracChangeset
for help on using the changeset viewer.