Any update on this?
----- Forwarded Message -----
From: "Mohammed Rashad" <[email protected]>
To: [email protected]
Sent: Wednesday, February 13, 2013 12:13:24 PM
Subject: [osg-users] setting a polygon height
How to set the height of a polygon in OSG 3.0?
I have created some polygon which are 2D. I want to assing random heights for
the polygon. How this can be done?
osg::Geometry* polyGeom = new osg::Geometry();
and i then feed the vertices like:
osg::Vec3 myCoords[] =
{
osg::Vec3(-1.0464, 1.0f, -0.193626),
osg::Vec3(-1.0258, 1.0f, -0.26778),
osg::Vec3(-0.807461, 1.0f, -0.181267),
osg::Vec3(-0.766264, 1.0f, -0.0576758),
osg::Vec3(-0.980488, 1.0f, -0.094753)
};
Is there anything like ExtrudeGeometry in OSG?
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org