Previous topic

xsect.calc.CrossSection.from_aisc

Next topic

xsect.calc.rotate2

This Page

xsect.calc.CrossSection.from_points

classmethod CrossSection.from_points(name, add, subtract=[], is_round=False, include_meta=True, **kwargs)[source]

Initializes a cross section from boundary points.

Parameters:
add : list

A list of arrays of (x, y) coordinates for shapes composing the cross section.

subtract : list

A list of arrays of (x, y) coordinates for shapes subtracting from the cross section.

is_round : bool

If True, the member represents a round cross section, such as a round or pipe.

include_meta : bool

If True, secondary properties will be written to the object meta dictionary. Otherwise, no values will be written to the meta dictionary. This saves memory if data from the meta dictionary is not needed.

Examples

>>> from xsect import cruciform_points
>>> add = cruciform_points(8, 8, 1.125)
>>> CrossSection.from_points('4L8x8x1.125', add)
CrossSection(name='4L8x8x1.125', ...)