# 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
• p1 (3-tuples) – Points that pass through the plane, p1 will be used as (x0, y0, z0)

• p2 (3-tuples) – Points that pass through the plane, p1 will be used as (x0, y0, z0)

• r (float, optional) – Radius of the cylinder in [cm]. 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