|
Public Methods |
| | Polytope (const String &stlfilepath, double tolerance=0.0001) |
| | Polytope () |
| | Polytope (const Polytope &arg) |
| virtual | ~Polytope () |
| Polytope & | operator= (const Polytope &rhs) |
| const String & | GetSTLFileName () const |
| virtual Polytope * | Clone () const |
| virtual bool | createSolid () |
| virtual bool | Update (const Xform &transform) |
| void | SetPosition (OSCAR::Vector3 position) |
| void | SetOrientation (OSCAR::Quaternion orientation) |
| void | SetPose (OSCAR::Xform transform) |
| OSCAR::Vector3 | GetPosition () |
| OSCAR::Quaternion | GetOrientation () |
| OSCAR::Xform | GetPose () |
std::pair< OSCAR::Vector3,
OSCAR::Vector3 > | GetBoundingBox () |
| void | SetMargin (float margin) |
| float | GetMargin () |
| int | GetVertCount () |
| int | GetTriCount () |
| void | SetTolerance (double tolerance) |
| double | GetTolerance () |
| bool | SetVertexArray (MT_Point3 *newVertArray, int arraySize) |
| MT_Point3 * | GetVertexArray () |
| void | SetScene (DT_SceneHandle scene) |
| void | RemoveScene () |
Private Methods |
| bool | setSTLShape () |
| bool | readSTLFile (vector< MT_Point3 > &verts, vector< MT_UInt3 > &tris) |
| int | findVertex (vector< MT_Point3 > &verts, float x, float y, float z) |
| MT_UInt3 | orientCCW (vector< MT_Point3 > &verts, unsigned int v1, unsigned int v2, unsigned int v3, float nx, float ny, float nz) |
Private Attributes |
| String | filePath |
| double | tol |
| MT_Point3 * | vert_array |
| DT_VertexBaseHandle | base_h |
| DT_SceneHandle | sceneHandle |
| MT_Vector3 | pos_s |
| MT_Quaternion | orn_s |
| OSCAR::Vector3 | pos_o |
| OSCAR::Quaternion | orn_o |
| MT_Vector3 | bbmin |
| MT_Vector3 | bbmax |
| float | marg |
| int | sizeverts |
| int | sizetris |