[osg-users] how to draw a half line?
Robert Osfield
robert.osfield at gmail.com
Mon Mar 23 13:05:17 PDT 2009
Hi Cory,
I have never tried it but you might be able to experiment with a Vec4Array
for coordinates and set the w value to 0, and the xyz to the direction
vector.
Robert.
On Mon, Mar 23, 2009 at 7:06 PM, Cory Riddell <cory at codeware.com> wrote:
> Right now I'm drawing some line segments like this:
> osg::Geometry* geo = ...;
> // define some vertices
> ...
> // draw lines
> geo->setVertexArray(vertices);
> geo->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINES, 0,
> qty));
>
> Is there a way to draw a line that goes off to infinity in one direction?
>
> Cory Riddell
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090323/fbf97994/attachment-0003.htm>
More information about the osg-users
mailing list