Skip to content

How can i get the list of geometry of a shape #1212

Answered by robertosfield
Daoudou asked this question in Q&A
Discussion options

You must be logged in to vote

The osg::Shape implementations don't have a osg::Geometry so you can "get" one from it. The osg::Shape are just primitive shape definitions that don't have any additional functionality built-in.

In order to be render a shape you need to use a osg::ShapeDrawable, but this isn't what you asked, perhaps what you meant. Look at the osgshape example.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by robertosfield
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants