list<point> pts <- lits_of_3Dpoints collect {each.x,each.y};
Cheers,
Patrick
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.
list<geometry>station_voronoi <- voronoi(list_of_points_power_station);
list<geometry>station_voronoi <- voronoi([list_of_points_power_station]);
--
list<point> pts <- lits_of_3Dpoints collect {each.x,each.y};
It did not work for me, from the same model of mine yesterday, i still get xyz. I just added ( I added pts in the global section as list<point>:
pts <- list_of_points_power_station collect {each.x,each.y};
write pts;
The write statement with pts still gives me all three coordinates. Anything I missed ?
regards,
Srirama
global {
init {
create points number: 10;
list<point> lpts3D <- points collect (each.location);
list<geometry> vorn <- voronoi(lpts3D);
loop geom over: vorn {
create voronShape {
shape <- geom;
}
}
}
}
species points {
aspect b {draw circle(2) color: #red;}
}
species voronShape{}
experiment testPoints3D type: gui {
output {
display agentst {
species voronShape;
species points aspect: b;
}
}
}
-----------
On your example, it becomes:
global {
file kv5_file <- file("../includes/kv10.shp");
geometry shape <- envelope(kv5_file);
init {
create points from: kv5_file;
list<point> lpts3D <- points collect (each.location);
list<geometry> vorn <- voronoi(lpts3D);
loop geom over: vorn {
create voronShape {
shape <- geom;
}
}
}
}
--------------
Cheers
Benoit
--
--