Skip to content

Commit

Permalink
update refs to compas.brep
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Nov 2, 2023
1 parent 189ec87 commit a462ca4
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/compas/geometry/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def to_brep(self):
A boundary representation of the polygon.
"""
from compas.geometry import Brep
from compas.brep import Brep

return Brep.from_polygons([self])

Expand Down
2 changes: 1 addition & 1 deletion src/compas_ghpython/artists/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from compas.geometry import Surface
from compas.geometry import Torus
from compas.geometry import Vector
from compas.geometry import Brep
from compas.brep import Brep

from compas.datastructures import Mesh
from compas.datastructures import Network
Expand Down
2 changes: 1 addition & 1 deletion src/compas_rhino/artists/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from compas.geometry import Curve
from compas.geometry import Surface
from compas.geometry import Brep
from compas.brep import Brep

from compas.datastructures import Mesh
from compas.datastructures import Network
Expand Down
8 changes: 4 additions & 4 deletions src/compas_rhino/geometry/brep/brep.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Rhino

from compas.geometry import Frame
from compas.geometry import Brep
from compas.geometry import BrepTrimmingError
from compas.brep import Brep
from compas.brep import BrepTrimmingError
from compas.geometry import Plane

from compas_rhino.conversions import box_to_rhino
Expand All @@ -10,8 +12,6 @@
from compas_rhino.conversions import sphere_to_rhino
from compas_rhino.conversions import mesh_to_rhino

import Rhino

from .builder import _RhinoBrepBuilder
from .face import RhinoBrepFace
from .edge import RhinoBrepEdge
Expand Down
6 changes: 1 addition & 5 deletions src/compas_rhino/geometry/brep/builder.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import Rhino

from compas.geometry import BrepInvalidError
from compas.brep import BrepInvalidError
from compas_rhino.conversions import point_to_rhino

__all__ = [
"_RhinoBrepBuilder",
]

TOLERANCE = 1e-6


Expand Down
13 changes: 7 additions & 6 deletions src/compas_rhino/geometry/brep/edge.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
from compas.geometry import BrepEdge
from Rhino.Geometry import ArcCurve
from Rhino.Geometry import NurbsCurve
from Rhino.Geometry import LineCurve
from Rhino.Geometry import Interval

from compas.brep import BrepEdge
from compas.geometry import Line
from compas.geometry import Circle
from compas.geometry import Ellipse
from compas.geometry import Frame
from compas.geometry import Arc

from compas_rhino.geometry import RhinoNurbsCurve
from compas_rhino.conversions import curve_to_compas_line
from compas_rhino.conversions import plane_to_compas_frame
Expand All @@ -16,11 +22,6 @@
from compas_rhino.conversions import arc_to_compas
from compas_rhino.conversions import arc_to_rhino

from Rhino.Geometry import ArcCurve
from Rhino.Geometry import NurbsCurve
from Rhino.Geometry import LineCurve
from Rhino.Geometry import Interval

from .vertex import RhinoBrepVertex


Expand Down
11 changes: 6 additions & 5 deletions src/compas_rhino/geometry/brep/face.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from compas.geometry import BrepFace
import Rhino
from Rhino.Geometry import Interval
from Rhino.Geometry import RevSurface

from compas.brep import BrepFace
from compas.geometry import Sphere
from compas.geometry import Cylinder
from compas.geometry import Frame

from compas_rhino.geometry import RhinoNurbsSurface
from compas_rhino.geometry.surfaces import RhinoSurface
from compas_rhino.conversions import plane_to_compas_frame
Expand All @@ -11,10 +16,6 @@
from compas_rhino.conversions import sphere_to_rhino
from compas_rhino.conversions import frame_to_rhino_plane

import Rhino
from Rhino.Geometry import Interval
from Rhino.Geometry import RevSurface

from .loop import RhinoBrepLoop


Expand Down
4 changes: 2 additions & 2 deletions src/compas_rhino/geometry/brep/loop.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from compas.geometry import BrepLoop

import Rhino

from compas.brep import BrepLoop

from .trim import RhinoBrepTrim


Expand Down
8 changes: 3 additions & 5 deletions src/compas_rhino/geometry/brep/trim.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from compas.geometry import BrepTrim
from compas_rhino.geometry import RhinoNurbsCurve


import Rhino

from compas.brep import BrepTrim
from compas_rhino.geometry import RhinoNurbsCurve


class RhinoBrepTrim(BrepTrim):
"""An interface for a Brep Trim
Expand All @@ -20,7 +19,6 @@ class RhinoBrepTrim(BrepTrim):
"""

def __init__(self, rhino_trim=None, builder=None):

super(RhinoBrepTrim, self).__init__()
self._builder = builder
self._trim = None
Expand Down
2 changes: 1 addition & 1 deletion src/compas_rhino/geometry/brep/vertex.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from compas.geometry import Point
from compas.geometry import BrepVertex
from compas.brep import BrepVertex
from compas_rhino.conversions import point_to_compas


Expand Down

0 comments on commit a462ca4

Please sign in to comment.