Hi Robert,
Is it possible to have a 2D square looks like a cube?
for example I have 2D polygon if I could add a height parameter so that its look like a cube but faces are polygons. I dont know what are the exact terms to use to get good response.
hope this image url helps
http://i.stack.imgur.com/OnRz3.png
----- Original Message -----
From: "Robert Osfield" <
robert....@gmail.com>
To: "OpenSceneGraph Users" <
osg-...@lists.openscenegraph.org>
Sent: Monday, February 25, 2013 9:26:16 PM
Subject: Re: [osg-users] Fwd: setting a polygon height
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
<
mohamme...@research.iiit.ac.in> wrote:
>
> Any update on this?
>
> ----- Forwarded Message -----
> From: "Mohammed Rashad" <
mohamme...@research.iiit.ac.in>
> To:
osg-...@lists.openscenegraph.org
> 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
>
osg-...@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> _______________________________________________
> osg-users mailing list
>
osg-...@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org