Home Forums FDTD About Drawing nanorods Reply To: About Drawing nanorods

#12274
Profile Photo
Damian Marek
Participant

Hi Zhong,

There is a bit of added complexity here with the multiple objects, but a simple trigonometric calculation can locate the center points for your spheres. In this case, the center offset could be calculated as (sin(30)*lengthCyl/2).

Since you are already using user variables you could automate this process, and automatically calculate the center points for multiple angles.

Regards,
Damian

Categories