Skip to content

Bar Shape Placement Util

Class full path: StdReinfShapeBuilder.BarShapePlacementUtil.BarShapePlacementUtil

Implementation of the bar shape placement utilities

Functions

add_shape(shape_id, shape)

Add a shape to the shape list

shape_id ID of the shape

shape Shape

get_placement(reinf_def, param_dict, diameter, local_angles)

Calculate the local placement line inside the local X/Y coordinate system of the shapes

tuple of (local 2D placement line,

cover at the start of the line, cover at the end of the line)

reinf_def Reinforcement definition

param_dict Parameter dictionary local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placement_at_shape_side(shape_id, side_number, ref_pnt_fac, b_above_side, placement_diameter, local_angles)

Calculate the local placement line at a shape side inside the local X/Y coordinate system of the shapes

tuple of (local 2D placement line started by a reference point and left and right limited by

the next bending roller or side intersection, cover at the shape side, cover at the start of the line, cover at the end of the line)

shape_id ID of the shape

side_number Number of the shape side ref_pnt_fac Factor for the reference point calculation (-1 = at the side from left to right) b_above_side Cover above the side: True/False placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placement_at_shape_side_intersection(shape_id1, side_number1, shape_id2, side_number2, shape_id3, side_number3, b_above_side3, placement_diameter, local_angles)

Calculate exactly the ref_pnt_fac between line intersaction shape 1-3 and shape 2-3

Return: ref_pnt_fac

shape_id ID of the shape

side_number Number of the shape side b_above_side Cover above the side: True/False placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placement_from_bending_roller(shape_id, side_number, b_roller_start_point, placement_base_line, b_placment_start_point, placement_diameter, local_angles)

Get the placement cover from the bending roller of a defined side number

Return: Local placement cover to a placement base line

shape_id ID of the shape

side_number Number of the shape side b_roller_start_point True = roller at the start point / False = roller at the end point placement_base_line Base line of the placement b_placment_start_point True = placement start point / False = placement end point placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placement_from_side_intersection(shape_id1, side_number1, b_above_side1, shape_id2, side_number2, b_above_side2, placement_base_line, b_placment_start_point, placement_diameter, local_angles)

Get the placement cover from the side intersection of two defined side numbers.

Return: Local placement cover to a placement base line

shape_id1 ID of the first shape

side_number1 Number of the first shape side b_above_side1 Cover above the first side: True/False shape_id2 ID of the second shape side_number2 Number of the second shape side b_above_side2 Cover above the second side: True/False placement_base_line Base line of the placement b_placment_start_point True = placement start point / False = placement end point placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placement_in_corner(shape_id, corner_number, placement_diameter, local_angles)

Calculate the local placement point inside the local X/Y coordinate system of the shape corner

Return: local position of placement start

shape_id ID of the shape

corner_number Number of the shape corner placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placement_in_side_corners(shape_id, side_number, placement_diameter, local_angles)

Calculate the local placement line from the left to the right side corner inside the local X/Y coordinate system of the shapes

tuple of (local 2D placement line from the left bending roller bar position

to the right bending roller bar position, cover at the start of the line, cover at the end of the line)

shape_id ID of the shape

side_number Number of the shape side placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placement_in_side_intersection(shape_id1, side_number1, b_above_side1, shape_id2, side_number2, b_above_side2, placement_diameter, local_angles)

Get the placement point from the side intersection of two defined side numbers.

Return: Local placement cover to a placement base line

shape_id1 ID of the first shape

side_number1 Number of the first shape side b_above_side1 Cover above the first side: True/False shape_id2 ID of the second shape side_number2 Number of the second shape side b_above_side2 Cover above the second side: True/False placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation

get_placent_line_cover_from_side(shape_id, side_number, b_above_side)

Get the placement line cover from a shape side by side number

Return: 3D placement line and the cover

shape_id ID of the shape

side_number Number of the shape side b_above_side Cover above the side: True/False

get_side_length(shape_id, side_number)

Check for an existing shape by an shape_id

Return: Shape exist: True/False

shape_id ID of the shape

side_number Number of the side

is_shape_created(shape_id)

Check for an existing shape by an shape_id

Return: Shape exist: True/False

Parameter: shape_id ID of the shape