def split_bezier_intersecting_with_closedpath(bezier,<EOL>inside_closedpath, <EOL>tolerence=<NUM_LIT>):
bz = BezierSegment(bezier)<EOL>bezier_point_at_t = bz.point_at_t<EOL>t0, t1 = find_bezier_t_intersecting_with_closedpath(bezier_point_at_t,<EOL>inside_closedpath, <EOL>tolerence=tolerence)<EOL>_left, _right = split_de_casteljau(bezier, (t0+t1)/<NUM_LIT>)<EOL>return _left, _right<EOL>
bezier : control points of the bezier segment
inside_closedpath : a function which returns true if the point is inside the path