We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c715dd1 + ce4ac0c commit 2d9d4dfCopy full SHA for 2d9d4df
hoomd/hpmc/ShapeSpheropolyhedron.h
@@ -189,10 +189,6 @@ template<> inline std::string getShapeSpec(const ShapeSpheropolyhedron& spoly)
189
{
190
shapedef << "{\"type\": \"Sphere\", " << "\"diameter\": " << verts.diameter << "}";
191
}
192
- else if (nverts == 2)
193
- {
194
- throw std::runtime_error("Shape definition not supported for 2-vertex spheropolyhedra");
195
- }
196
else
197
198
shapedef << "{\"type\": \"ConvexPolyhedron\", \"rounding_radius\": " << verts.sweep_radius
0 commit comments