Skip to content

Commit

Permalink
[WIP]Adds rebar combinations in Slab reinforcement
Browse files Browse the repository at this point in the history
- adds different combinataion of Straight, U-Shaped, L-Shaped,
  BentShaped rebars for parallel and cross rebars in Slab
  Reinforcement.
- format Rebarfunc.py using black.
  • Loading branch information
ShivCharanSharma committed Jun 20, 2021
1 parent 5357f6d commit 33c3e5c
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 190 deletions.
6 changes: 3 additions & 3 deletions Rebarfunc.py
Expand Up @@ -38,7 +38,7 @@


def getEdgesAngle(edge1, edge2):
""" getEdgesAngle(edge1, edge2): returns a angle between two edges."""
"""getEdgesAngle(edge1, edge2): returns a angle between two edges."""
vec1 = vec(edge1)
vec2 = vec(edge2)
angle = vec1.getAngle(vec2)
Expand Down Expand Up @@ -73,7 +73,7 @@ def getBaseStructuralObject(obj):


def getBaseObject(obj):
""" getBaseObject(obj): This function will return last base object."""
"""getBaseObject(obj): This function will return last base object."""
if hasattr(obj, "Base"):
return getBaseObject(obj.Base)
else:
Expand Down Expand Up @@ -860,7 +860,7 @@ def translate(context, text, disambig=None):


def print_in_freecad_console(*msg):
""" Print given arguments on FreeCAD console."""
"""Print given arguments on FreeCAD console."""
s = ""
for m in msg:
s += str(m) + ", "
Expand Down

0 comments on commit 33c3e5c

Please sign in to comment.