Drawing implicit surfaces

Hi people, surely some of you have saw me on the irc. I’m trying to draw
implicit surfaces (or iso-surfaces) with the avogadro API, my simple
question is:

Is there a chance to draw this kind of entities with libavogadro?

I know the API has the marching cubes algorithm and all the elements to
render iso-surfaces (Mesh, Cube …) but I’m lost and don’t know how to
achive it.

My first shot is:
http://paste.kde.org/5689/

Here I’ve loaded the plugin system and set the surface engine, also I’ve
generated the surface f(x,y,z)=0 (a simple plane) and then used the MC
algorithm … but I I don’t see nothing. All the plugins are ok becouse I’ve
tested render some atoms (with the bsdyengine) and works fine.

Please, May someone help me?

With best regards,
Percy

Is there a chance to draw this kind of entities with libavogadro?

Yes, of course.

I know the API has the marching cubes algorithm and all the elements to render iso-surfaces (Mesh, Cube …) but I’m lost and don’t know how to achive it.

Here I’ve loaded the plugin system and set the surface engine, also I’ve generated the surface f(x,y,z)=0 (a simple plane) and then used the MC algorithm … but I I don’t see nothing. All the plugins are ok becouse I’ve tested render some atoms (with the bsdyengine) and works fine.

My suggestion would be to separate your custom surface from the API calls. Why don’t you either hack the existing surface engine to create this type of cube, or save it as an OpenDX or Gaussian “cube” file.

I guess my point is that you should ensure that there is, in fact, an appropriate isosurface at that value inside the cube.

-Geoff