CPGeomConcrete¶
- class concreteproperties.pre.CPGeomConcrete(geom: Polygon, material: Concrete)[source]¶
Bases:
CPGeomA
concretepropertiesGeometry 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
shapelyline.Creates a list of points and facets from a shapely polygon.
Plots the geometry.
Rounds the coordinates in
geometryto 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
xandyvalues 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
shapelyline.Creates a
shapelyline string defined by apointandvectorand 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
geometryto tolerancetol.
- sort_polys(polys: list[Polygon] | GeometrySequence, point: tuple[float, float], vector: tuple[float, float]) tuple[list[Polygon], list[Polygon]]¶
Sorts polygons that are above and below the line.