montepy.surfaces.surface_builder module#

Functions:

parse_surface(input)

Builds a Surface object for the type of Surface

surface_builder(input)

Alias for parse_surface().

montepy.surfaces.surface_builder.parse_surface(input: Input | str)#

Builds a Surface object for the type of Surface

Parameters:

input (Union[Input, str]) – The Input object representing the input

Returns:

A Surface object properly parsed. If supported a sub-class of Surface will be given.

Return type:

Surface

montepy.surfaces.surface_builder.surface_builder(input: Input | str)#

Alias for parse_surface().

Deprecated:

1.0.0 Renamed to be parse_surface() to be more pythonic.

Parameters:

input (Union[Input, str]) – The Input object representing the input

Returns:

A Surface object properly parsed. If supported a sub-class of Surface will be given.

Return type:

Surface