Skip to content

Future plans for opengl in octave #2

@alejandrogallo

Description

@alejandrogallo

While it's nice to have a POV backend, do you have any plans of using
the opengl capabilities in octave?

For instance for VASP, in order to plot the CHGCAR or PARCHG files one could
read these files (which are in the format of POSCAR + volumetric data)
and use the octave function sphere to render a sphere
where the atoms are and isosurface to render isosurfaces. This would be very useful
to many people.

A draw_sphere function could look simply something like this

function draw_sphere (r, x, y, z, n=20)
  [X, Y, Z] = sphere(n)
  surf(r*X + x, r*Y + y, r*Z + z)
endfunction

and one would read a vasp_volumetric file

X, Y, Z, V = read_vasp_chgcar("CHGCAR")
isosurface(X, Y, Z, V, 0.5)

and voilà, we have an electronic density plot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions