Hi ? Could you sign with your first name so we know how to address you, thanks.

If the binding of the normals is BIND_PER_PRIMITIVE then you will get
a faceted appearance, and is obviously indented by the original data
unless the export/import is broken.  Do you see the same results in
SolidWorks as in the OSG when you don't invoke any smoothing.

If you do wish to override the BIND_PER_PRIMITIVE and have the OSG
compute per vertex normals for you then the osgUtil::SmoothingVisitor
is the tool for the job.  The modification that Wang Rui made was to
address a crash when the normal BIND_PER_PERIMITIVE and should have
allowed you to run the visitor on the data set.

Beyond this I can't really add much.  In theory it should work, but
without the dataset to test against myself or any screen shots of what
is wrong, and without details of what settings you are using I can't
really say whether anything is wrong or whether it's just your
settings and expectations of the results that is amiss.   You'll need
to provide more details to allow others to make some suggestions.

Cheers,
Robert.

On Sat, Dec 25, 2010 at 3:18 AM, Knife darksnow <[email protected]> wrote:
> Hi
> Er, Firstly, I have to say that my English is poor(not a good student in
> university...now I regret very much)and I learn OSG and C++ for a short
> time, but I like them very much. Yesterday I used the osg-user for the first
> time, Mr Wang Rui told me that I can ask for some help here, so I am here
> now. :)
> The way it is, I modeled in SolidWorks and then I derived model as STL
> format(SolidWorks can only export STL and VRML, and I perfer to use STL, STL
> is more current). When I use OSG to show the model,  I found that the model
> is very angular, every surface shines...This is not what I want, I hope it
> looks more smooth, so I use the SmoothVisitor, but the old smoothvisitor
> smooth too much ,the model looks a little terrible ,OSG v 2.9.10 have new
> function which can set the creaseAngle, Firstly  some error happened, Wang
> Rui change some code to make sure the SmoothVisitor  is compatible with
>  BIND_PER_PRIMITIVE, but after this the model looks as same as before, I
> changed the STL model, the creaseAngle, they don't work. Then I read the
> source code...read and read...near a week...finaly I found that I can't
> understand how it works. Now I am helpless, How can I smooth the STL model?
>
> _______________________________________________
> 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