Skip to content

Commit a462ca4

Browse files
committed
update refs to compas.brep
1 parent 189ec87 commit a462ca4

File tree

10 files changed

+27
-31
lines changed

10 files changed

+27
-31
lines changed

src/compas/geometry/polygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def to_brep(self):
330330
A boundary representation of the polygon.
331331
332332
"""
333-
from compas.geometry import Brep
333+
from compas.brep import Brep
334334

335335
return Brep.from_polygons([self])
336336

src/compas_ghpython/artists/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from compas.geometry import Surface
2121
from compas.geometry import Torus
2222
from compas.geometry import Vector
23-
from compas.geometry import Brep
23+
from compas.brep import Brep
2424

2525
from compas.datastructures import Mesh
2626
from compas.datastructures import Network

src/compas_rhino/artists/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from compas.geometry import Curve
2525
from compas.geometry import Surface
26-
from compas.geometry import Brep
26+
from compas.brep import Brep
2727

2828
from compas.datastructures import Mesh
2929
from compas.datastructures import Network

src/compas_rhino/geometry/brep/brep.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import Rhino
2+
13
from compas.geometry import Frame
2-
from compas.geometry import Brep
3-
from compas.geometry import BrepTrimmingError
4+
from compas.brep import Brep
5+
from compas.brep import BrepTrimmingError
46
from compas.geometry import Plane
57

68
from compas_rhino.conversions import box_to_rhino
@@ -10,8 +12,6 @@
1012
from compas_rhino.conversions import sphere_to_rhino
1113
from compas_rhino.conversions import mesh_to_rhino
1214

13-
import Rhino
14-
1515
from .builder import _RhinoBrepBuilder
1616
from .face import RhinoBrepFace
1717
from .edge import RhinoBrepEdge

src/compas_rhino/geometry/brep/builder.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import Rhino
22

3-
from compas.geometry import BrepInvalidError
3+
from compas.brep import BrepInvalidError
44
from compas_rhino.conversions import point_to_rhino
55

6-
__all__ = [
7-
"_RhinoBrepBuilder",
8-
]
9-
106
TOLERANCE = 1e-6
117

128

src/compas_rhino/geometry/brep/edge.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
from compas.geometry import BrepEdge
1+
from Rhino.Geometry import ArcCurve
2+
from Rhino.Geometry import NurbsCurve
3+
from Rhino.Geometry import LineCurve
4+
from Rhino.Geometry import Interval
5+
6+
from compas.brep import BrepEdge
27
from compas.geometry import Line
38
from compas.geometry import Circle
49
from compas.geometry import Ellipse
510
from compas.geometry import Frame
611
from compas.geometry import Arc
12+
713
from compas_rhino.geometry import RhinoNurbsCurve
814
from compas_rhino.conversions import curve_to_compas_line
915
from compas_rhino.conversions import plane_to_compas_frame
@@ -16,11 +22,6 @@
1622
from compas_rhino.conversions import arc_to_compas
1723
from compas_rhino.conversions import arc_to_rhino
1824

19-
from Rhino.Geometry import ArcCurve
20-
from Rhino.Geometry import NurbsCurve
21-
from Rhino.Geometry import LineCurve
22-
from Rhino.Geometry import Interval
23-
2425
from .vertex import RhinoBrepVertex
2526

2627

src/compas_rhino/geometry/brep/face.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
from compas.geometry import BrepFace
1+
import Rhino
2+
from Rhino.Geometry import Interval
3+
from Rhino.Geometry import RevSurface
4+
5+
from compas.brep import BrepFace
26
from compas.geometry import Sphere
37
from compas.geometry import Cylinder
48
from compas.geometry import Frame
9+
510
from compas_rhino.geometry import RhinoNurbsSurface
611
from compas_rhino.geometry.surfaces import RhinoSurface
712
from compas_rhino.conversions import plane_to_compas_frame
@@ -11,10 +16,6 @@
1116
from compas_rhino.conversions import sphere_to_rhino
1217
from compas_rhino.conversions import frame_to_rhino_plane
1318

14-
import Rhino
15-
from Rhino.Geometry import Interval
16-
from Rhino.Geometry import RevSurface
17-
1819
from .loop import RhinoBrepLoop
1920

2021

src/compas_rhino/geometry/brep/loop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from compas.geometry import BrepLoop
2-
31
import Rhino
42

3+
from compas.brep import BrepLoop
4+
55
from .trim import RhinoBrepTrim
66

77

src/compas_rhino/geometry/brep/trim.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from compas.geometry import BrepTrim
2-
from compas_rhino.geometry import RhinoNurbsCurve
3-
4-
51
import Rhino
62

3+
from compas.brep import BrepTrim
4+
from compas_rhino.geometry import RhinoNurbsCurve
5+
76

87
class RhinoBrepTrim(BrepTrim):
98
"""An interface for a Brep Trim
@@ -20,7 +19,6 @@ class RhinoBrepTrim(BrepTrim):
2019
"""
2120

2221
def __init__(self, rhino_trim=None, builder=None):
23-
2422
super(RhinoBrepTrim, self).__init__()
2523
self._builder = builder
2624
self._trim = None

src/compas_rhino/geometry/brep/vertex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from compas.geometry import Point
2-
from compas.geometry import BrepVertex
2+
from compas.brep import BrepVertex
33
from compas_rhino.conversions import point_to_compas
44

55

0 commit comments

Comments
 (0)