diff options
| author | Andrea Catania | 2018-06-07 15:46:17 +0200 |
|---|---|---|
| committer | Andrea Catania | 2018-06-07 15:46:17 +0200 |
| commit | 0b7c4db5ee5aadcbd90761ef976f285e09ae66d7 (patch) | |
| tree | 4ba196a7ee1f82bffafaca69a8dbdbb2a091f2c1 /core/math/triangle_mesh.h | |
| parent | b4c65093d72bf9b48cc3ddce50a0d913d3d75ed3 (diff) | |
| download | godot-0b7c4db5ee5aadcbd90761ef976f285e09ae66d7.tar.gz godot-0b7c4db5ee5aadcbd90761ef976f285e09ae66d7.tar.zst godot-0b7c4db5ee5aadcbd90761ef976f285e09ae66d7.zip | |
Diffstat (limited to 'core/math/triangle_mesh.h')
| -rw-r--r-- | core/math/triangle_mesh.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/math/triangle_mesh.h b/core/math/triangle_mesh.h index 9f145f2af..78de7ae7e 100644 --- a/core/math/triangle_mesh.h +++ b/core/math/triangle_mesh.h @@ -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(); }; |
