Subject: RE: getting rid of useless cells
From: Christophe LE PAGE (christophe.le_page@cirad.fr)
Date: Mon Jun 14 2010 - 10:51:36 CEST
Salut Olivier,
There exists a method of CormasModel class (in case you don’t have it in
your image, the code is attached to this email).
Try:
self restrictToCellsVerifying: [:c | c altitude ~= 0].
Then to get the cells at the edge:
self theCells select: [:c | c edge]
Is it working?
Clp
De : owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr] De la
part de Barreteau Olivier
Envoyé : lundi 14 juin 2010 09:59
À : cormas@cirad.fr
Objet : getting rid of useless cells
Hi
I am importing a map of a watershed, which I load as an *.env file.
The contour of the whole basin is not square. Is it possible to set the map
(and thus the cells in the model) only with relevant cells (those for which
I have an altitude ~= 0.
I need to be able to identify cells which are on the edge of my "relevant"
contour.
All the best
Olivier