CPGeomConcrete#
- class concreteproperties.pre.CPGeomConcrete(geom: Polygon, material: Concrete)[source]#
Bases:
CPGeom
A
concreteproperties
Geometry object for concrete geometries.Methods
Calculates the area of the geometry.
Calculates the centroid of the geometry.
Calculates the extents of the geometry.
Generates a list of facets given a list of points and a facet offset.
Creates a
shapely
line.Creates a list of points and facets from a shapely polygon.
Plots the geometry.
Rounds the coordinates in
geometry
to tolerancetol
.Sorts polygons that are above and below the line.
Splits the geometry about a line.
Converts self to a sectionproperties geometry object.
- calculate_extents() tuple[float, float, float, float] #
Calculates the extents of the geometry.
Calculates the minimum and maximum
x
andy
values among the points describing the geometry.
- create_facets(points_list: list[tuple[float, float]], offset: int = 0) list[tuple[int, int]] #
Generates a list of facets given a list of points and a facet offset.
- create_line_segment(point: tuple[float, float], vector: tuple[float, float], bounds: tuple[float, float, float, float]) LineString #
Creates a
shapely
line.Creates a
shapely
line string defined by apoint
andvector
and bounded bybounds
.
- create_points_and_facets(geometry: Polygon) tuple[list[tuple[float, float]], list[tuple[int, int]]] #
Creates a list of points and facets from a shapely polygon.
- plot_geometry(title: str = 'Cross-Section Geometry', **kwargs) matplotlib.axes.Axes #
Plots the geometry.
- Parameters:
title (str) – Plot title
kwargs – Passed to
plot_geometry()
- Returns:
Matplotlib axes object
- Return type:
- round_geometry(geometry: Polygon, tol: int) Polygon #
Rounds the coordinates in
geometry
to tolerancetol
.
- sort_polys(polys: list[Polygon], point: tuple[float, float], vector: tuple[float, float]) tuple[list[Polygon], list[Polygon]] #
Sorts polygons that are above and below the line.