File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 4545u = 0.2
4646curve .insert_knot (u )
4747
48+ # Draw the control point polygon and the evaluated curve after knot insertion
49+ if render_curve :
50+ curve .render ()
51+
4852# Save control points and evaluated curve points after knot insertion
4953curve .save_curvepts_to_csv ("curvepts01_knotins.csv" )
5054curve .save_ctrlpts_to_csv ("ctrlpts01_knotins.csv" )
Original file line number Diff line number Diff line change 3131# Evaluate curve
3232curve .evaluate ()
3333
34+ # Draw the control point polygon and the evaluated curve
3435if render_curve :
3536 vis_comp = VisMPL .VisCurve3D ()
3637 curve .vis = vis_comp
3738 curve .render ()
3839
40+ # Save control points and evaluated curve points
41+ curve .save_curvepts_to_csv ("curvepts3d01_orig.csv" )
42+ curve .save_ctrlpts_to_csv ("ctrlpts3d01_orig.csv" )
43+
3944# Insert a knot
4045u = 0.2
4146curve .insert_knot (u )
4247
48+ # Draw the control point polygon and the evaluated curve after knot insertion
49+ if render_curve :
50+ curve .render ()
51+
4352# Save control points and evaluated curve points after knot insertion
44- curve .save_curvepts_to_csv ("curvepts01_knotins .csv" )
45- curve .save_ctrlpts_to_csv ("ctrlpts01_knotins .csv" )
53+ curve .save_curvepts_to_csv ("curvepts3d01_knotins .csv" )
54+ curve .save_ctrlpts_to_csv ("ctrlpts3d01_knotins .csv" )
4655
4756# Good to have something here to put a breakpoint
4857pass
You can’t perform that action at this time.
0 commit comments