39 const std::string &shapeName) {
40 if (shapeName ==
"hmx") {
41 std::shared_ptr<hmxShape> assignShape(
new hmxShape());
43 }
else if (shapeName ==
"petn") {
44 std::shared_ptr<petnShape> assignShape(
new petnShape());
46 }
else if (shapeName ==
"icosidodecahedron") {
47 std::shared_ptr<icosidodecahedronShape> assignShape(
51 std::cerr <<
"The " << shapeName <<
" shape is not supported yet!" This class wraps around abstract class rocPackShape.
This class wraps around abstract class rocPackShape.
static std::shared_ptr< rocPackShape > getShape(const std::string &shapeName)
Creates shape object for requsted shape.
This class wraps around abstract class rocPackShape.