Skip to content

Commit

Permalink
Add support for polygon mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen authored and Levi-Armstrong committed Jan 8, 2024
1 parent 8042e6c commit 82c2a81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions scene_graph/src/models/collision_standard_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void CollisionStandardItem::ctor()
}
case tesseract_geometry::GeometryType::CONVEX_MESH:
case tesseract_geometry::GeometryType::MESH:
case tesseract_geometry::GeometryType::POLYGON_MESH:
case tesseract_geometry::GeometryType::SDF_MESH:
{
geometry_item = new PolygonMeshStandardItem(
Expand Down
5 changes: 5 additions & 0 deletions scene_graph/src/models/polygon_mesh_standard_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ void PolygonMeshStandardItem::ctor()
setIcon(icons::getMeshIcon());
setText("Mesh");
}
else if (mesh->getType() == tesseract_geometry::GeometryType::POLYGON_MESH)
{
setIcon(icons::getMeshIcon());
setText("Polygon Mesh");
}
else if (mesh->getType() == tesseract_geometry::GeometryType::SDF_MESH)
{
setIcon(icons::getMeshIcon());
Expand Down
1 change: 1 addition & 0 deletions scene_graph/src/models/visual_standard_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ void VisualStandardItem::ctor()
}
case tesseract_geometry::GeometryType::CONVEX_MESH:
case tesseract_geometry::GeometryType::MESH:
case tesseract_geometry::GeometryType::POLYGON_MESH:
case tesseract_geometry::GeometryType::SDF_MESH:
{
geometry_item = new PolygonMeshStandardItem(
Expand Down

0 comments on commit 82c2a81

Please sign in to comment.