git-svn-id: svn://db.shs.com.ru/libs@319 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -43,9 +43,9 @@ public:
|
||||
void clear();
|
||||
|
||||
GLuint buffer() const {return buffer_;}
|
||||
int verticesCount() const {return vert_count;}
|
||||
bool isIinit() const {return buffer_ != 0;}
|
||||
bool isEmpty() const {return vert_count == 0;}
|
||||
int verticesCount() const {return vertices_.size() / 3;}
|
||||
bool isInit() const {return buffer_ != 0;}
|
||||
bool isEmpty() const {return vertices_.size() < 3;}
|
||||
|
||||
QVector<GLfloat> & vertices() {changed = true; return vertices_;}
|
||||
QVector<GLfloat> & normals() {changed = true; return normals_;}
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
bool saveToFile(const QString & filename);
|
||||
bool loadFromFile(const QString & filename);
|
||||
|
||||
Box3D boundingBox() const;
|
||||
Box3D boundingBox(const QMatrix4x4 & mat = QMatrix4x4()) const;
|
||||
|
||||
private:
|
||||
void calculateBinormals();
|
||||
|
||||
Reference in New Issue
Block a user