openmc.model.cylinder_from_points

openmc.model.cylinder_from_points(p1, p2, r=1.0, **kwargs)

Return a cylinder given points that define the axis and a radius.

New in version 0.12.

Parameters:
  • p2 (p1,) – Points that pass through the plane, p1 will be used as (x0, y0, z0)
  • r (float, optional) – Radius of the cylinder. Defaults to 1.
  • kwargs (dict) – Keyword arguments passed to the Cylinder constructor
Returns:

Cylinder that has an axis through the points p1 and p2, and a radius r.

Return type:

Cylinder