# OCC.Display.WebGl.x3dom_renderer module

`ExportEdgeToILS`(edge_point_set)

class `HTMLBody`(x3d_shapes)

  Bases: `object`

  x3d_shapes is a list that contains uid for each shape

  `get_str`()

class `HTMLHeader`(bg_gradient_color1=’#ced7de’, bg_gradient_color2=’#808080’)

  Bases: `object`

  `get_str`()

class `X3DExporter`(shape, vertex_shader, fragment_shader, export_edges, color, specular_color, shininess, transparency, line_color, line_width, mesh_quality)

  Bases: `object`

  A class for exporting a TopoDS_Shape to an x3d file

  `compute`()
  `to_x3dfile_string`()
  `write_to_file`(filename)

class `X3DomRenderer`(path=None)

  Bases: `object`

  `DisplayShape`(shape, vertex_shader=None, fragment_shader=None, export_edges=False, color=(0.65, 0.65, 0.65), specular_color=(1, 1, 1), shininess=0.9, transparency=0.0, line_color=(0, 0.0, 0.0), line_width=2.0, mesh_quality=1.0)

    Adds a shape to the rendering buffer. This class computes the x3d file

  `GenerateHTMLFile`()

    Generate the HTML file to be rendered wy the web browser

  `render`(server_port=8080)

    Call the render() method to display the X3D scene.