Hi Mohammed,

I'm guessing most of the community like me are rather perplexed by
what specifically you are expecting/looking for.  The "heights of a
polygon" are simply it's z dimenion when you have a coordinate system
with Z up like the OSG defaults.  So setting it randomly would just
entail setting the z value, but as your code show you already setting
the xyz values then one would have to guess that this isn't what you
mean at all.  This leaves us rather stuck trying to guess what you
actually mean.  Mentioning extrusion doesn't help either as this
rather tangential topic, or perhaps in your current view it's not.
Alas we can't jump in your head and know what you are meaning.

The only thing I can say with certainly is to say that the OSG doesn't
have an extrusion tool.  The OSG is primarily a scene graph, not a
scene building tool.

Robert.

On 25 February 2013 15:37, Mohammed Rashad
<[email protected]> wrote:
>
> 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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to