Hello Alex,

alex wrote:
> Bascially i want to do some 3D boolean operation and then want render input 
> and output. So basically i am using library which taking vertices and 
> indices list as input and returns same.
> 
> So when so input seems cleared now but how do create NodePtrRef from indices 
> and vertice from scratch ? I tried to do that but it doesnot showing 
> anything in render screen.
> 
> Here is the conversion code
> 
> NodeRefPtr ConverNodetoMesh(AMesh* mesh)
      ^^^^
NodeTransitPtr - functions that create objects should return them with a 
TransitPtr.

> {
> NodeTransitPtr root (NULL);
> GeometryUnrecPtr geo = NULL;
                          ^^^
        you can put the Geometry::create() here if you want
> GeoPnt3fPropertyUnrecPtr points = NULL;
> GeoUInt32PropertyUnrecPtr index = NULL;
> GeoUInt32PropertyUnrecPtr lens = NULL;
> GeoUInt8PropertyUnrecPtr type = NULL;
> SimpleMaterialUnrecPtr mat = NULL;
> 
> Pnt3f point;
> 
> root = Node ::create();
> geo = Geometry ::create();
> points = GeoPnt3fProperty ::create();
> index = GeoUInt32Property::create();
> lens = GeoUInt32Property::create();
> type = GeoUInt8Property ::create();

you never store anything in lens and type in the code below. From the 
rest of the code it looks like these should contain:

type->addValue(GL_TRIANGLES);
lens->addValue(verts.size());

        Cheers,
                Carsten

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to