Skip to content

Commit f0018ef

Browse files
committed
viewobject example
1 parent bda6f4c commit f0018ef

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed
1.17 MB
Loading

docs/examples/surface_view2.py renamed to docs/examples/surface_viewobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818

1919
view = App()
2020

21-
view.add(surface)
21+
view.add(surface, show_edges=True, show_points=True)
2222

2323
view.run()
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
********************************************************************************
2+
Surface Visualisation With View Object
3+
********************************************************************************
4+
5+
.. figure:: /_images/example_surface_viewobject.png
6+
:figclass: figure
7+
:class: figure-img img-fluid
8+
9+
.. literalinclude:: surface_viewobject.py
10+
:language: python

src/compas_occ/geometry/surfaces/nurbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def point_at(i, j):
419419
return Mesh.from_polygons(quads)
420420

421421
def to_triangles(self, nu: int = 100, nv: Optional[int] = None) -> List[Tuple[float, float, float]]:
422-
"""Convert the surface to a quad mesh."""
422+
"""Convert the surface to a list of triangles."""
423423
from itertools import product
424424
from functools import lru_cache
425425

0 commit comments

Comments
 (0)