Skip to content

Commit 9a80177

Browse files
committed
FIX: added numpy to module
1 parent 3e258ca commit 9a80177

File tree

5 files changed

+218
-203
lines changed

5 files changed

+218
-203
lines changed

src/gh/components/DF_xml_exporter/code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#! python3
22
# r: diffCheck==0.0.8
3+
# r: numpy
34

45
import System
56
import typing

src/gh/diffCheck/diffCheck/df_geometries.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def from_brep(cls, brep):
195195
for data in data_faces:
196196
face = DFFace.from_brep(data[0], data[1])
197197
faces.append(face)
198+
print("TEEEEEEEEST")
198199
beam = cls("Beam", faces)
199200
return beam
200201

src/gh/diffCheck/diffCheck/df_transformations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def _get_lowest_brep_vertex(brep) -> Rhino.Geometry.Point3d:
8585
return
8686
plane_src = biggest_face.TryGetPlane()[1]
8787
plane_tgt = Rhino.Geometry.Plane.WorldXY
88-
print("Found plane for longest edge: " + str(plane_src))
8988

9089
# plane to plane transformation
9190
x_form_pln2pln = Rhino.Geometry.Transform.PlaneToPlane(plane_src, plane_tgt)
@@ -109,9 +108,10 @@ def _get_lowest_brep_vertex(brep) -> Rhino.Geometry.Point3d:
109108
x_form_transl_B = None
110109
x_form_rot90z = None
111110
if x_val_sum > y_val_sum:
112-
print("Bounding box is alligned to x axis. No rotation needed.")
111+
# AABB is alligned to x axis. No rotation needed
112+
pass
113113
else:
114-
print("Bounding box is not alligned to y axis. A 90 deg rotation is needed.")
114+
# AABB is not alligned to y axis. A 90 deg rotation is needed.
115115
x_form_rot90z = Rhino.Geometry.Transform.Rotation(
116116
math.radians(90), rg.Vector3d.ZAxis, rg.Point3d.Origin
117117
)

src/gh/diffCheck/diffCheck/diffCheck_app.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77
import typing
88

99
import diffCheck
10-
import diffCheck.df_util
11-
from diffCheck.df_geometries import DFVertex, DFFace, DFBeam, DFAssembly
10+
import diffCheck.df_geometries
1211

13-
import diffCheck.df_joint_detector
12+
13+
import sys
14+
import importlib
15+
for key in list(sys.modules.keys()):
16+
if "diffCheck" in key:
17+
importlib.reload(sys.modules[key])
1418

1519
if __name__ == "__main__":
1620
"""
@@ -22,12 +26,11 @@
2226
# beams
2327
beams = []
2428
for brep in i_breps:
25-
beam = DFBeam.from_brep(brep)
26-
print(beam)
29+
beam = diffCheck.df_geometries.DFBeam.from_brep(brep)
2730
beams.append(beam)
2831

2932
# assembly
30-
assembly1 = DFAssembly(beams, i_assembly_name)
33+
assembly1 = diffCheck.df_geometries.DFAssembly(beams, i_assembly_name)
3134

3235
# dump the xml
3336
xml: str = assembly1.to_xml()

0 commit comments

Comments
 (0)