could we have somewhere where people can share their SalaScripts? once
Decio has implemented Stephen's measure I can imagine a number of
people would be interested in using it...
Alan
On 27 Jan 2009, at 09:22, Alasdair Turner wrote:
> Dear Decio,
>
> You will need to use SalaScript to achieve this sort of functionality.
>
> First calculate the global integration as normal, and then write a
> script:
>
> Note that SalaScript works axial line by axial line.
>
> For example, to get every axial line connected to the current line,
> use "this.connections()".
>
> It does get quite complex, but there is a manual for SalaScript here:
>
> http://www.vr.ucl.ac.uk/depthmap/scripting/manual.html
>
> You will need to loop through everything connected to the current
> axial line, then everything connected to that and so on.
>
> As a starter, working just for radius 1:
>
> global_integ = value("Integration [HH]")
> radius1_global_integ = 0.0
> count = 0.0
> for i in this.connections():
> count = count + 1.0
> radius1_global_integ = radius1_global_integ + i.value("Integration
> [HH]")
> return global_integ / (radius1_global_integ / count)
>
> More advanced samples here show how to go out to more than simply
> radius 1:
>
> http://www.vr.ucl.ac.uk/depthmap/scripting/samples.html
>
> Alasdair
>
> On Mon, Jan 26, 2009 at 4:12 PM, Decio Rigatti
> <[log in to unmask]> wrote:
>> Dear all
>>
>> We've being trying to obtain the integration gradient map,
>> according to
>> Read's concept:
>> "It is proposed therefore that a possible indicator of supergrid
>> spaces is
>> the integration
>> gradient which is defined as being the ratio of the global
>> integration value
>> of that
>> space with the mean of the global integration values of all the
>> other spaces
>> that
>> connect with it. This concept can be extended by considering the
>> connecting
>> spaces
>> to a radius of 1, 2, or 3 (respectively, those spaces that connect
>> directly
>> to the space
>> being considered, all those spaces within 2 changes of direction of
>> the
>> space being
>> considered, and all those spaces within 3 changes of direction of
>> the space
>> being
>> considered). Integration gradients are calculated by dividing the
>> global
>> integration
>> value of the space in question by the average of the global
>> integration
>> values of the
>> spaces connected to it, so that spaces with an integration gradient
>> over 1
>> will be the
>> locally 'shallower' spaces that people may tend to move towards and
>> spaces
>> with an
>> integration gradient less than 1 will be the locally 'deeper'
>> spaces that
>> people may
>> tend to move away from."
>> Is it possible to use DepthMap in order to highlight the lines
>> belonging to
>> the so called integration gradient map? How can we pick up
>> connecting spaces
>> to radius 1, 2 and 3 (or other radius?) using DepthMap? We would
>> appreciate
>> very much your help.
>> Best wishes
>>
>> Decio Rigatti
>>
>> ________________________________
>> Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 -
>> Celebridades - Música - Esportes
>
>
>
> --
> Lecturer in Urban and Architectural Computing
> Course Director MSc Adaptive Architecture and Computation
> Academic Director EngD Virtual Environments and Image Visualisation
>
> UCL Bartlett School of Graduate Studies
> Univeristy College London, Gower Street
> London WC1E 6BT
>
> (t) +44 20 7679 1806 (e) [log in to unmask]
> (w) http://www.vr.ucl.ac.uk/people/alasdair
>
|