On Mon, Oct 8, 2012 at 5:33 AM, Viktor Malyarchuk
<address@hidden> wrote:
Hello,
Many thanks for making Goptical! It look really beautiful!
Is there a way to make non flat stop?
Here is few relevant lines from my attempt:
------------------------------------
Sys::Lens lens(Math::Vector3(0, 0, 0));
lens.add_stop(stop_radius, stop_thickness);
_Goptical::Sys::Element *stop_element = &sys.get_element(6);
Sys::Stop *stop = (Sys::Stop*)(stop_element); // downcast to Sys::Stop
stop->set_external_radius(external_radius); // increase stop's external radius
stop->set_curve(ref<Curve::Sphere>::create(sphere_radius));
------------------------------------
Last line "stop->set_curve()" seams do not do anything. Stop still look flat.
Best regards,
Viktor Malyarchuk