Skip to content

Commit

Permalink
Remove commented code.
Browse files Browse the repository at this point in the history
  • Loading branch information
portnov committed Dec 29, 2022
1 parent 2589c75 commit 271c3ea
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions utils/curve/catmull_rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,6 @@ def get_bezier_control_points(self):
numer[:,3,2] = -dt30
numer[:,3,3] = 1.0

# U = np.zeros((n-3,4,4))
# U[:,0,0] = 1.0
# U[:,0,1] = t0
# U[:,0,2] = t0**2
# U[:,0,3] = t0**3
# U[:,1,1] = dt30
# U[:,1,2] = 2*t0*dt30
# U[:,1,3] = 3*t0**2*dt30
# U[:,2,2] = dt30**2
# U[:,2,3] = 3*t0*dt30**2
# U[:,3,3] = dt30**3

U = np.zeros((n-3,4,4))
U[:,0,0] = 1.0
U[:,0,1] = t1
Expand Down Expand Up @@ -196,10 +184,6 @@ def to_bezier_segments(self):
all_cpts = self.get_bezier_control_points()
for i, cpts in enumerate(all_cpts):
bezier = SvBezierCurve.from_control_points(cpts)
#ts = self.tknots[i:i+4]
#t1 = (ts[1] - ts[0]) / (ts[3] - ts[0])
#t2 = (ts[2] - ts[0]) / (ts[3] - ts[0])
#segment = bezier.cut_segment(t1, t2)
segments.append(bezier)
return segments

Expand Down

0 comments on commit 271c3ea

Please sign in to comment.