-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fdded0
commit b06f8aa
Showing
8 changed files
with
372 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
#pragma once | ||
#include <string> | ||
#include <vtkPolyData.h> | ||
#include <vtkOBBTree.h> | ||
|
||
class Mesh | ||
{ | ||
public: | ||
Mesh(const std::string& filename); | ||
Mesh(const Mesh&); | ||
|
||
vtkPolyData* GetPolyData() const { return this->polyData; } | ||
|
||
void Write(const std::string& filename) const; | ||
|
||
void Transform(double xAngle, double yAngle, double zAngle, double shiftX, double shiftY, double shiftZ); | ||
|
||
double getBoundingRadius() const { return boundingRadius; } | ||
|
||
private: | ||
double boundingRadius = 0.0; | ||
std::string filename; | ||
|
||
vtkPolyData* polyData; | ||
}; | ||
vtkOBBTree* meshOBB; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.