Skip to content

Commit

Permalink
gh test
Browse files Browse the repository at this point in the history
  • Loading branch information
papachap committed Aug 7, 2024
1 parent 3098461 commit 5320993
Show file tree
Hide file tree
Showing 2 changed files with 4,624 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/compas_timber/_fabrication/step_joint_notch.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,14 +817,19 @@ def mortise_volume_from_params_and_beam(self, beam):
vector_angle = math.radians(180 - self.strut_inclination)
else:
vector_angle = math.radians(self.strut_inclination)
extr_vector = extr_vector * -1
rot_vect = Rotation.from_axis_and_angle(rot_axis, vector_angle)
extr_vector.transform(rot_vect)


mortise_polyline_extrusion = mortise_polyline.translated(extr_vector)
# extrude the polyline to create the mortise volume as a Brep
mortise_volume = Brep.from_extrusion(mortise_polyline, extr_vector, cap_ends=True)
# mortise_volume = Brep.from_extrusion(mortise_polyline, extr_vector, cap_ends=True)
# trim brep with step cutting planes
mortise_volume.trim(step_cutting_plane) # !: check if the trimming works correctly // add checks
# mortise_volume.trim(step_cutting_plane) # !: check if the trimming works correctly // add checks

return mortise_volume
# return mortise_volume
return mortise_polyline, mortise_polyline_extrusion


class StepJointNotchParams(BTLxProcessParams):
Expand Down
Loading

0 comments on commit 5320993

Please sign in to comment.