Functions of the module Bar Placement Util
Module full path: StdReinfShapeBuilder.BarPlacementUtil
Implementation of the bar placement utilities
get_placement_start_from_bending_roller(shape, side_number, bending_roller, base_line, placement_diameter, local_angles)
Calculate the placement start point from the bending roller point at the start of a shape side. The point is local to the start of the base line
| | --------
S----x---------------- base line --->
Return: local position of placement start
shape Reinforcement shape
side_number Number of the shape side with the placement (starting from 1) bending_roller Bending roller base_line Geometry base line of the placement placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation
get_placement_end_from_bending_roller(shape, side_number, bending_roller, base_line, placement_diameter, local_angles)
Calculate the placement start point from the bending roller point at the end of a shape side. The point is local to the end of the base line
|
|
/
--------
----------------x----E base line <---
Return: local position of placement end from E to x
shape Reinforcement shape
side_number Number of the shape side with the placement (starting from 1) bending_roller Bending roller base_line Geometry base line of the placement placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation
get_placement_inside_bending_roller(shape, corner_number, bending_roller, placement_diameter, local_angles, global_point=False)
Calculate the position of a placement inside the bending roller
| | X --------
Return: local position of placement start as Point3D
shape Reinforcement shape
corner_number Number of the shape corner with the placement (starting from 1) bending_roller Bending roller placement_diameter Bar diameter of the placement local_angles Rotation angles to get the local x/y coordinate system for the calculation
get_placement_inside_side_intersection(shape1, side_number1, above_side1, shape2, side_number2, above_side2, placement_diameter, local_angles, global_point=False)
Calculate the position of a placement inside the intersection of two shape sides
Return: local placement point as Point2D
shape1 First reinforcement shape
side_number1 Number of the first shape side with the placement (starting from 1) above_side1, First placement direction above the side: True/False shape2 Second reinforcement shape side_number2 Number of the second shape side with the placement (starting from 1) above_side2, Second placement direction 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