Skip to content

Commit ce4ac0c

Browse files
committed
Remove restriction that prevents logging spherocylinders
1 parent 8831d73 commit ce4ac0c

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)