Skip to content

Commit 2d9d4df

Browse files
authored
Merge pull request #1898 from glotzerlab/allow-spherocylinder
Remove restriction that prevents logging spherocylinder shape
2 parents c715dd1 + ce4ac0c commit 2d9d4df

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

hoomd/hpmc/ShapeSpheropolyhedron.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ template<> inline std::string getShapeSpec(const ShapeSpheropolyhedron& spoly)
189189
{
190190
shapedef << "{\"type\": \"Sphere\", " << "\"diameter\": " << verts.diameter << "}";
191191
}
192-
else if (nverts == 2)
193-
{
194-
throw std::runtime_error("Shape definition not supported for 2-vertex spheropolyhedra");
195-
}
196192
else
197193
{
198194
shapedef << "{\"type\": \"ConvexPolyhedron\", \"rounding_radius\": " << verts.sweep_radius

0 commit comments

Comments
 (0)