Skip to content

Commit 3bfa183

Browse files
committed
update examples
1 parent d793c05 commit 3bfa183

9 files changed

+12
-12
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from compas.geometry import Point, Polyline
2-
from compas_occ.geometry import NurbsCurve
2+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
33

44
from compas_view2.app import App
55

@@ -8,7 +8,7 @@
88

99
projection_point = Point(2, -1, 0)
1010

11-
closest_point, t = curve.closest_point(projection_point, parameter=True)
11+
closest_point, t = curve.closest_point(projection_point, parameter=True)
1212

1313
print(curve.point_at(t) == closest_point)
1414

@@ -19,7 +19,7 @@
1919
view = App()
2020

2121
view.add(Polyline(curve.locus()), linewidth=3)
22-
view.add(projection_point, pointcolor = (0, 0, 1))
23-
view.add(closest_point, pointcolor = (1, 0, 0))
22+
view.add(projection_point, pointcolor=(0, 0, 1))
23+
view.add(closest_point, pointcolor=(1, 0, 0))
2424

2525
view.run()

docs/examples/curve_comparison1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from compas.geometry import Point, Polyline
22
from compas.geometry import Bezier
3-
from compas_occ.geometry import NurbsCurve
3+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
44

55
from compas_view2.app import App
66

docs/examples/curve_comparison2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from compas.geometry import Point, Polyline
22
from compas.geometry import Bezier
3-
from compas_occ.geometry import NurbsCurve
3+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
44

55
from compas_view2.app import App
66

docs/examples/curve_from_circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from compas.geometry import Vector, Point, Polyline, Circle, Plane
2-
from compas_occ.geometry import NurbsCurve
2+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
33

44
from compas_view2.app import App
55

docs/examples/curve_from_ellipse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from compas.geometry import Vector, Point, Line, Polyline, Ellipse, Plane
22
from compas.utilities import pairwise
3-
from compas_occ.geometry import NurbsCurve
3+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
44

55
from compas_view2.app import App
66
from compas_view2.objects import Collection

docs/examples/curve_from_interpolation.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, Polyline, Bezier
2-
from compas_occ.geometry import NurbsCurve
2+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
33

44
from compas_view2.app import App
55
from compas_view2.objects import Collection

docs/examples/curve_from_line.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, Line, Polyline
2-
from compas_occ.geometry import NurbsCurve
2+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
33

44
from compas_view2.app import App
55
from compas_view2.objects import Collection

docs/examples/curve_from_parameters.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, Polyline
2-
from compas_occ.geometry import NurbsCurve
2+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
33

44
from compas_view2.app import App
55

docs/examples/curve_from_points.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, Polyline
2-
from compas_occ.geometry import NurbsCurve
2+
from compas_occ.geometry import OCCNurbsCurve as NurbsCurve
33

44
from compas_view2.app import App
55

0 commit comments

Comments
 (0)