goptical
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Goptical] non flat curve for Sys::Stop


From: Viktor Malyarchuk
Subject: Re: [Goptical] non flat curve for Sys::Stop
Date: Tue, 9 Oct 2012 18:39:57 -0500

Hi Alexandre,

sweet :-) Commenting out "draw_*_e" functions and their declarations in goptical_core/src/Goptical/Sys/stop.hh did the trick.
Thank you very much!

I'm doing modeling on compound eye type device we made at John A. Rogers group.
http://rogers.matse.illinois.edu/

Few hundreds micro lenses on hemisphere. There is the thing layer of non transparent material that cover areas between micro lenses. It is hemispherical light stop. At the moment I do simulations by putting single micro lens at different places on hemisphere. Parameterizable model described in tutorial look very attractive for this case. Still, hemispherical stop with multitude of apertures will be needed to make it work. At the moment I have no idea how to implement it (?), so I'll stick for single lens model for now.

Is there a proper way to cite goptical? Something like:
http://ab-initio.mit.edu/wiki/index.php/Meep_License_and_Copyright#Referencing

Best!
Viktor

On Tue, Oct 9, 2012 at 8:13 AM, Alexandre Becoulet <address@hidden> wrote:
On Tuesday 09 October 2012 05:56:16 Viktor Malyarchuk wrote:

Hi,

> Actually, ray tracing wise "stop->set_curve()" is working fine. The issue
> is when I do
>
> Io::RendererSvg renderer("layout.svg", 800, 400);
> sys.draw_2d_fit(renderer);
> sys.draw_2d(renderer);
>
> stop is still drawn as a flat line, not as a sphere. Is there any way to
> correct this?

Have a look to goptical_core/src/sys_stop.cc

The "intersect" function is used for raytracing and the "draw_*_e" functions
are used for 2d and 3d rendering. You may want to comment out these drawing
functions so that those in the Sys::Surface class are used instead.

May I ask you why do you need a non flat stop?

Best,

--
Alexandre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]