[GRASS5] v.extrude -- first version

Hallo,
simple but usable. I hope, I did not too much mistakes in the code -- C
is not my language no. 1.

Plans: support for DEMs, support for height stored in attribute table

Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
LDF MZLU v Brnì
Zemìdìlská 3
613 00 Brno
e-mail: xcepicky@node.mendelu.cz
URL: http://mapserver.mendelu.cz
Tel.: +420 545 134 514

(attachments)

v.extrude.tgz (1.94 KB)

On Wed, Nov 23, 2005 at 08:09:42AM +0100, Jachym Cepicky wrote:

Hallo,
simple but usable. I hope, I did not too much mistakes in the code -- C
is not my language no. 1.

Plans: support for DEMs, support for height stored in attribute table

Ciao Jachym,

great job! I just tried, it's nice...

Congrats

Markus

thanks, nice to hear, that something works :slight_smile:

there is at least one small problem: when the "building" is concave,
e.g.

    +-----+ +-----+
    | | | |
    | | | |
    | +-----+ |
    | |
    | |
    +-----------------+

The "roof" is going to be somehow wrong. Walls are made correctly. In
the program, roof is made just so, that the "z" coord. (objheight) is
added for each point:

for (k = 0; k < Points->n_points; k++) {
                Vect_append_point(NewPoints,
                Points->x[k],
                Points->y[k],
                Points->z[k]+objheight);
            }

did some one the same experience?

screenshot on http://les-ejk.cz/tmp/vextrude.png

right side: d.vect building3d (made with v.extrude in=building
            out=building3d height=10)

left side: nviz of the same vector

jachym

On Wed, Nov 23, 2005 at 06:51:18PM +0100, Markus Neteler wrote:

On Wed, Nov 23, 2005 at 08:09:42AM +0100, Jachym Cepicky wrote:
> Hallo,
> simple but usable. I hope, I did not too much mistakes in the code -- C
> is not my language no. 1.
>
> Plans: support for DEMs, support for height stored in attribute table

Ciao Jachym,

great job! I just tried, it's nice...

Congrats

Markus

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
LDF MZLU v Brnì
Zemìdìlská 3
613 00 Brno
e-mail: xcepicky@node.mendelu.cz
URL: http://mapserver.mendelu.cz
Tel.: +420 545 134 514