Re: mpb : how to duplicate a geometry object

Julien Arlandis <[email protected]>
Newsgroups gmane.comp.science.photonic-bands
Message-ID <[email protected]>
ryanhao a ¨¦crit :
> Hello£¬
>  
>        obj is the object you have drawn, in your case, it is:
>       (make cylinder (center 0 0 0) (radius 0.2) (height 
> infinity) (material (make dielectric (epsilon 2))))
>                         (center 0 0 0) (radius 0.2) (height infinity)

Hello,

I write :

(define air (make dielectric (epsilon 12)))

(define whole1 (make cylinder (center -0.2 0 0) (radius 0.06) (height 
infinity) (material air) ))

(define whole2 (make cylinder (center 0.3 0 0) (radius 0.04) (height 
infinity) (material air) ))

(set! geometry (list whole1 whole2))

=> 2 wholes

If I add :

(geometric-object-duplicates (vector3 1 0 0) 1 10 whole1))

=> no change...

_______________________________________________
mpb-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.