This class wraps around abstract class rocPackShape.
More...
This particular shape is called "PETN", which is a shape of "Pentaerythritol
tetranitrate" crystal. Ref -> https://en.wikipedia.org/wiki/Pentaerythritol_tetranitrate
Definition at line 46 of file petnShape.H.
Inherits NEM::GEO::rocPackShape.
◆ petnShape()
NEM::GEO::petnShape::petnShape |
( |
| ) |
|
◆ ~petnShape()
NEM::GEO::petnShape::~petnShape |
( |
| ) |
|
◆ getFaces()
std::vector< std::vector< int > > NEM::GEO::petnShape::getFaces |
( |
| ) |
|
|
overridevirtual |
◆ getShape()
std::shared_ptr< rocPackShape > NEM::GEO::rocPackShape::getShape |
( |
const std::string & |
shapeName | ) |
|
|
staticinherited |
- Parameters
-
shapeName | Name of shape requested Shape pointer |
Definition at line 38 of file rocPackShape.C.
Referenced by NEM::GEO::rocPack::rocParser().
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(
48 new icosidodecahedronShape());
51 std::cerr <<
"The " << shapeName <<
" shape is not supported yet!"
◆ getVertices()
std::vector< std::vector< double > > NEM::GEO::petnShape::getVertices |
( |
| ) |
|
|
overridevirtual |
Implements NEM::GEO::rocPackShape.
Definition at line 54 of file petnShape.C.
57 std::vector<std::vector<double>> verts;
113 verts[10][2] = -0.20;
123 verts[12][2] = -0.20;
136 verts[15][0] = -0.20;
141 verts[16][0] = -0.20;
146 verts[17][0] = -0.20;
148 verts[17][2] = -0.20;
The documentation for this class was generated from the following files: