original_docstring: 
          Notes
          -----
          Vertices cannot be cut (otherwise it will mess the application of the
          boundary conditions).
          
docstring: Notes
  Vertices cannot be cut (otherwise it will mess the application of the
  boundary conditions).
docstring_tokens: Notes Vertices cannot be cut ( otherwise it will mess the application of the boundary conditions ) .
code: def _draw_partial_arc(self, sketch):
          '''
          Notes
          -----
          Vertices cannot be cut (otherwise it will mess the application of the
          boundary conditions).
          '''
  
          # get intersection points
          inter_pts = self._get_intersection_pts()
  
          # find right points order
          if inter_pts[0][0] == self.bounds[0][0] or inter_pts[0][1] == self.bounds[1][1]:
              inter_pts[0], inter_pts[1] = inter_pts[1], inter_pts[0]
  
          # draw circle
          arc = sketch.ArcByCenterEnds(center=self.center, point1=inter_pts[0],
                                       point2=inter_pts[1],
                                       direction=COUNTERCLOCKWISE)
  
          # create breakpoints
          for pt in inter_pts:
  
              # find line (findAt sometimes finds ARC)
              geom = [g for g in sketch.geometry.values() if g.curveType == LINE]
              for g in geom:
                  vertices = g.getVertices()
                  v1, v2 = vertices[0].coords, vertices[1].coords
                  index = 1 if v1[0] == v2[0] else 0
                  cpl_index = 0 if v1[0] == v2[0] else 1
                  lv, rv = min(v1[index], v2[index]), max(v1[index], v2[index])
                  if pt[cpl_index] == v1[cpl_index] and lv <= pt[index] <= rv:
                      line = g
                      break
  
              # break line
              sketch.breakCurve(curve1=line, curve2=arc, point1=pt, point2=pt)
  
          # delete curves
          geom = [g for g in sketch.geometry.values() if g.curveType == LINE]
          for g in geom:
              v1, v2 = g.getVertices()
              if v1.coords in inter_pts and v2.coords in inter_pts:
                  sketch.delete((g,))
                  break
code_tokens: def _draw_partial_arc ( self , sketch ) : inter_pts = self . _get_intersection_pts ( ) if inter_pts [ 0 ] [ 0 ] == self . bounds [ 0 ] [ 0 ] or inter_pts [ 0 ] [ 1 ] == self . bounds [ 1 ] [ 1 ] : inter_pts [ 0 ] , inter_pts [ 1 ] = inter_pts [ 1 ] , inter_pts [ 0 ] arc = sketch . ArcByCenterEnds ( center = self . center , point1 = inter_pts [ 0 ] , point2 = inter_pts [ 1 ] , direction = COUNTERCLOCKWISE ) for pt in inter_pts : geom = [ g for g in sketch . geometry . values ( ) if g . curveType == LINE ] for g in geom : vertices = g . getVertices ( ) v1 , v2 = vertices [ 0 ] . coords , vertices [ 1 ] . coords index = 1 if v1 [ 0 ] == v2 [ 0 ] else 0 cpl_index = 0 if v1 [ 0 ] == v2 [ 0 ] else 1 lv , rv = min ( v1 [ index ] , v2 [ index ] ) , max ( v1 [ index ] , v2 [ index ] ) if pt [ cpl_index ] == v1 [ cpl_index ] and lv <= pt [ index ] <= rv : line = g break sketch . breakCurve ( curve1 = line , curve2 = arc , point1 = pt , point2 = pt ) geom = [ g for g in sketch . geometry . values ( ) if g . curveType == LINE ] for g in geom : v1 , v2 = g . getVertices ( ) if v1 . coords in inter_pts and v2 . coords in inter_pts : sketch . delete ( ( g , ) ) break
short_docstring: Notes
  Vertices cannot be cut (otherwise it will mess the application of the
  boundary conditions).
short_docstring_tokens: Notes Vertices cannot be cut ( otherwise it will mess the application of the boundary conditions ) .
comment: '''
          Notes
          -----
          Vertices cannot be cut (otherwise it will mess the application of the
          boundary conditions).
          '''$SEP$# get intersection points$SEP$# find right points order$SEP$# draw circle$SEP$# create breakpoints$SEP$# find line (findAt sometimes finds ARC)$SEP$# break line$SEP$# delete curves