original_docstring: Creates a wireframe for a collection of keypoint coordinates.
docstring: Creates a wireframe for a collection of keypoint coordinates.
docstring_tokens: Creates a wireframe for a collection of keypoint coordinates .
code: def _build_wireframe(point_by_type: _data.PointByType,
                       config: WireframeConfig) -> Wireframe:
    """Creates a wireframe for a collection of keypoint coordinates."""
    lines = []
    for e in config.edges:
      e = dataclasses.replace(e, width=e.width * config.line_width_factor)
      lines.extend(e.create_lines(point_by_type, config.point_colors))
    dots = []
    for point_type, point in point_by_type.items():
      border_color = OCCLUDED_COLOR if point.is_occluded else None
      occlusion_marker = '?' if point.is_occluded else ''
      dots.append(
          Dot(point.location,
              config.point_colors[point_type],
              config.point_sizes[point_type] * config.dot_size_factor,
              name=f'{point_name(point_type)}{occlusion_marker}',
              border_color=border_color))
    return Wireframe(lines=lines, dots=dots)
code_tokens: def _build_wireframe ( point_by_type : _data . PointByType , config : WireframeConfig ) -> Wireframe : lines = [ ] for e in config . edges : e = dataclasses . replace ( e , width = e . width * config . line_width_factor ) lines . extend ( e . create_lines ( point_by_type , config . point_colors ) ) dots = [ ] for point_type , point in point_by_type . items ( ) : border_color = OCCLUDED_COLOR if point . is_occluded else None occlusion_marker = '?' if point . is_occluded else '' dots . append ( Dot ( point . location , config . point_colors [ point_type ] , config . point_sizes [ point_type ] * config . dot_size_factor , name = f'{point_name(point_type)}{occlusion_marker}' , border_color = border_color ) ) return Wireframe ( lines = lines , dots = dots )
short_docstring: Creates a wireframe for a collection of keypoint coordinates.
short_docstring_tokens: Creates a wireframe for a collection of keypoint coordinates .
comment: """Creates a wireframe for a collection of keypoint coordinates."""