Skip to content

Commit 10af953

Browse files
committed
improve docs
1 parent d83cf44 commit 10af953

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

examples/1_basics/2_beziers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ def main():
7070

7171
rt.set_data("curve", pos=xyz, r=r, c=c, geom="Beziers")
7272

73-
rt.show()
74-
7573
rt.setup_camera("cam1", # cam_type="DoF",
7674
eye=[-6, 4, 5], target=[0, -0.6, 0],
7775
glock=True
@@ -82,6 +80,8 @@ def main():
8280

8381
rt.set_param(max_accumulation_frames=256)
8482

83+
rt.show()
84+
8585
print("done")
8686

8787
if __name__ == '__main__':

plotoptix/enums.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ class Geometry(Enum):
302302
Beziers = 16
303303
"""Bezier curves with data points used as **control points** for each independent segment (OptiX native implementation).
304304
305-
Curve thickness and color can be provided for each data point (curve node).
305+
Curve thickness and color can be provided for each data point (bezier control point).
306+
Each segment is described with 4 control points: start, ctrl #1, ctrl #2, end. Multiple
307+
segments are described with an array of control point 3D positions (colors, radii) of
308+
successive segments, i.g. N segments will require an array ``(4*N,3)`` of positions,
309+
an array ``(4*N,3)`` of colors and an array ``(N,)`` of radii, see also ``2_beziers.py``
310+
in basic code examples.
306311
"""
307312

308313
Ribbon = 17

0 commit comments

Comments
 (0)