goptical
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Goptical] non flat curve for Sys::Stop
From
:
Viktor Malyarchuk
Subject
:
[Goptical] non flat curve for Sys::Stop
Date
:
Mon, 8 Oct 2012 05:42:52 -0500
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
reply via email to
[Prev in Thread]
Current Thread
[Next in Thread]
[Goptical] non flat curve for Sys::Stop
,
Viktor Malyarchuk
<=
Prev by Date:
Re: [Goptical] getting numerical data
Next by Date:
Re: [Goptical] non flat curve for Sys::Stop
Previous by thread:
[Goptical] getting numerical data
Next by thread:
Re: [Goptical] non flat curve for Sys::Stop
Index(es):
Date
Thread