Added functions to get trimesh info

This commit is contained in:
Andrea Catania
2018-06-07 15:46:17 +02:00
parent b4c65093d7
commit 0b7c4db5ee
2 changed files with 24 additions and 0 deletions

View File

@ -92,6 +92,10 @@ public:
Vector3 get_area_normal(const AABB &p_aabb) const;
PoolVector<Face3> get_faces() const;
PoolVector<Triangle> get_triangles() const { return triangles; }
PoolVector<Vector3> get_vertices() const { return vertices; }
void get_indices(PoolVector<int> *p_triangles_indices) const;
void create(const PoolVector<Vector3> &p_faces);
TriangleMesh();
};