OCC.Display.WebGl.threejs_renderer module

class OCC.Display.WebGl.threejs_renderer.HTMLBody(background_color='#000000', vertex_shader=None, fragment_shader=None, uniforms=None)

Bases: object

get_str()
class OCC.Display.WebGl.threejs_renderer.HTMLHeader(background_color='#000000')

Bases: object

get_str()
class OCC.Display.WebGl.threejs_renderer.ThreejsRenderer(background_color='#123345', vertex_shader=None, fragment_shader=None, uniforms=None)
DisplayShape(shape)
GenerateHTMLFile()

Generate the HTML file to be rendered wy the web browser

set_fragment_shader(fragment_shader)

adds a fragment shader

set_vertex_shader(vertex_shader)

adds a vertex shader definition