[Fluxus] Re vertnumber list

Luis navarro del angel luisn30 at hotmail.com
Fri Oct 1 13:14:08 PDT 2010


Hi Gabor, 

What I am wondering is if i can know which is the number of a vert that is for example on the fron of a shape.
For example I wrote this code and it shows where is located the verts 12, 13, 14, 15, but in order to discover which was the number of these four verts located at the front face of this cube I had to try with many verts of the cube. So I was thinking if maybe there's another way to know were is each vert and the number of it, specially for more complex shapes?

(clear)
(hint-wire)
(hint-points)
(point-width 10)
(backfacecull 0)
(hint-origin)

(define cubo (build-cube))
(with-primitive cubo
    (scale 4)
    (display "original vert position") (newline)
    (display (pdata-ref "p" 12)) (newline)
    (display (pdata-ref "p" 13)) (newline)
    (display (pdata-ref "p" 14)) (newline)
    (display (pdata-ref "p" 15)) (newline)
    
    (pdata-set "p" 12 (vadd (pdata-ref "p" 12) (vector -1 0 0)))
    (pdata-set "p" 13 (vadd (pdata-ref "p" 13) (vector -1 0 0)))
    (pdata-set "p" 14 (vadd (pdata-ref "p" 14) (vector -1 0 0)))
    (pdata-set "p" 15 (vadd (pdata-ref "p" 15) (vector -1 0 0)))

    (display "new position") (newline)
    (display (pdata-ref "p" 12)) (newline)
    (display (pdata-ref "p" 13)) (newline)
    (display (pdata-ref "p" 14)) (newline)
    (display (pdata-ref "p" 15)) (newline))

Thanks a lot, 

Luis

> From: fluxus-request at lists.pawfal.org
> Subject: Fluxus Digest, Vol 66, Issue 1
> To: fluxus at lists.pawfal.org
> Date: Fri, 1 Oct 2010 13:03:36 -0700
> 
> Send Fluxus mailing list submissions to
> 	fluxus at lists.pawfal.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org
> or, via email, send a message with subject or body 'help' to
> 	fluxus-request at lists.pawfal.org
> 
> You can reach the person managing the list at
> 	fluxus-owner at lists.pawfal.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Fluxus digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: vertnumber list (gabor papp)
>    2. games (Kassen)
>    3. commits: midi-out (gabor papp)
>    4. Re: commits: midi-out (Kassen)
>    5. Re: commits: midi-out (gabor papp)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 01 Oct 2010 00:12:12 +0200
> From: gabor papp <gabor.lists at mndl.hu>
> To: fluxus at lists.pawfal.org
> Subject: Re: [Fluxus] vertnumber list
> Message-ID: <4CA50B3C.8000702 at mndl.hu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> hi Luis,
> 
> > How can I know the extact number and position of a vert, in order to deform them using pdata-set!?
> you can use (pdata-size) to get the size of the pdata arrays. using 
> (pdata-ref) you can get the position of a given vertex index. using 
> (pdata-index-map!) you can get the index and the position of all the 
> vertices that you can change in a loop.
> 
> best,
> gabor
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 1 Oct 2010 05:58:08 +0200
> From: Kassen <signal.automatique at gmail.com>
> To: Fluxus <fluxus at lists.pawfal.org>
> Subject: [Fluxus] games
> Message-ID:
> 	<AANLkTikB9wH8C-F41tSUgYN2aNos_1pGVEdWCaQzDVAg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> http://bottomfeeder.ca/top/?p=140
> 
> My notes on my first try at creating a game in Fluxus. With pictures and a
> modest amount of code.
> 
> Yours,
> Kas.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20101001/f589e90a/attachment.html>
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 01 Oct 2010 18:23:29 +0200
> From: gabor papp <gabor.lists at mndl.hu>
> To: Fluxus <fluxus at lists.pawfal.org>
> Subject: [Fluxus] commits: midi-out
> Message-ID: <4CA60B01.6010904 at mndl.hu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> hi all,
> 
> initial midi-out support is added to git. it breaks old midi code.
> (midi-info) now returns outport ports also.
> (midi-init) is replaced by (midiin-open) and (midiout-open). 
> (midi-close) is replaced by (midiin-close) and (midiout-close).
> 
> the command that sends midi messages is (midi-send), which expects 1 to 
> 3 integers.
> 
> i haven't got any midi output device, so i only tested it briefly with 
> virtual midi piano keyboard (http://vmpk.sourceforge.net/)
> 
> (require fluxus-017/fluxus-midi)
> 
> (displayln (midi-info))
> 
> (midiout-open 0)
> (midi-send 144 64 90)
> (sleep 1)
> (midi-send 128 64 10)
> (midiout-close)
> 
> best,
> gabor
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Fri, 1 Oct 2010 21:02:34 +0200
> From: Kassen <signal.automatique at gmail.com>
> To: gabor papp <gabor.lists at mndl.hu>
> Cc: Fluxus <fluxus at lists.pawfal.org>
> Subject: Re: [Fluxus] commits: midi-out
> Message-ID:
> 	<AANLkTim40v0gxDriVT1+4TLt4FX4rFT7f-XXdoo3sFNT at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hey Gabor,
> 
> 
> > initial midi-out support is added to git. it breaks old midi code.
> >
> 
> This makes sense. It's unfortunate but it makes sense.
> 
> 
> > (midi-info) now returns outport ports also.
> > (midi-init) is replaced by (midiin-open) and (midiout-open). (midi-close)
> > is replaced by (midiin-close) and (midiout-close).
> >
> > Better than my proposal.
> 
> 
> 
> > the command that sends midi messages is (midi-send), which expects 1 to 3
> > integers.
> >
> > i haven't got any midi output device, so i only tested it briefly with
> > virtual midi piano keyboard (http://vmpk.sourceforge.net/)
> >
> >
> Ok, then I'll test it with a external device tonight and probably write some
> utility stuff for notes and CC's for everyone to share.
> 
> Tanks for taking the time to do this. I hope the single byte messages work
> out; systems like ChucK and PD (and maybe SC?) won't send clock out because
> single byte messages somehow get filtered.
> 
> You're the best!
> Kas.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20101001/c89a1a11/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 5
> Date: Fri, 01 Oct 2010 21:35:59 +0200
> From: gabor papp <gabor.lists at mndl.hu>
> To: Kassen <signal.automatique at gmail.com>
> Cc: Fluxus <fluxus at lists.pawfal.org>
> Subject: Re: [Fluxus] commits: midi-out
> Message-ID: <4CA6381F.1050604 at mndl.hu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> hi Kassen,
> 
> > Ok, then I'll test it with a external device tonight and probably write some
> > utility stuff for notes and CC's for everyone to share.
> great, thanks. let me know if there are any problems.
> 
> > I hope the single byte messages work out;
> it should work if rtmidi sends them through.
> 
> best,
> gabor
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Fluxus mailing list
> Fluxus at lists.pawfal.org
> http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org
> 
> 
> End of Fluxus Digest, Vol 66, Issue 1
> *************************************
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20101001/28380305/attachment-0002.htm>


More information about the Fluxus mailing list