add GetMesh() in IInputGeomProvider

This commit is contained in:
ikpil 2023-08-24 23:07:03 +09:00
parent afc9d26d52
commit e4b5bddac7
3 changed files with 15 additions and 4 deletions

View File

@ -61,6 +61,11 @@ namespace DotRecast.Recast.Toolset.Geom
_mesh = new RcTriMesh(vertices, faces);
}
public RcTriMesh GetMesh()
{
return _mesh;
}
public RcVec3f GetMeshBoundsMin()
{
return bmin;

View File

@ -26,6 +26,7 @@ namespace DotRecast.Recast.Geom
{
public interface IInputGeomProvider
{
RcTriMesh GetMesh();
RcVec3f GetMeshBoundsMin();
RcVec3f GetMeshBoundsMax();

View File

@ -81,6 +81,11 @@ namespace DotRecast.Recast.Geom
_mesh = new RcTriMesh(vertices, faces);
}
public RcTriMesh GetMesh()
{
return _mesh;
}
public RcVec3f GetMeshBoundsMin()
{
return bmin;