Re: outlines in voiv examples

New Message Reply Date view Thread view Subject view Author view

From: Werner Wohlfahrter (wwohlfah@crcg.edu)
Date: 04/11/2000 05:39:43


Hi Remus,

there is a drawUtility function call in voivGeometry.cxx which has a
voDecorationFlagsScope as an argument. You anly have to change this Flag.

      voGeometryActions::drawUtility(
                    tmpTetraSet,
                    interleavedArrayFormat,
                    aVolume,
                    aCache,
                    voSamplingSpaceScope::OBJECT,
                    samplingPeriod,
                    voDecorationFlagsScope::BRICKS);

                    // NONE => draw no outlines
                    // BRICKS => draw brick outlines
                    // TETRAS => draw tetra outlines
                    // ALL => draw tetra and brick outlines

hope it helps.
   ww :)

> Hi,
>
> Is there a way to remove the yellow, blue, and white lines rendered in the
> voiv examples? I have tried to remove few statements in the following function
> in the voivGeometry.cxx file. The lines still show in the result.
>
> void voivGeometry::GLRender(SoGLRenderAction *action) {
> ......
> ......
> // draw tetra outlines
> glColor4f(1.0, 1.0, 0.0, 1.0);
> glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
> voGeometryActions::draw(aTetraSet, interleavedArrayFormat);
> glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
>
> .....
>
> }
>
> Thanks a lot for the help.
>
> Remus
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1

--
                                                         \|/
                                                         @ @
======================================================oOO(_)OOo=====
      Werner Wohlfahrter
      Fraunhofer CRCG, Inc.
      321 South Main St.
      Providence, RI 02903, USA

phone : (+1) 401 453-6363 x110 email : wwohlfah@crcg.edu, ww@cg.tuwien.ac.at url : http://www.crcg.edu/ww icq : 9611406 =====================================================================


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Apr 19 2000 - 11:32:42 PDT