Hi Alex,
can you try this:
beginEditCP(m_oGeometryCore, Geometry::PositionsFieldMask);
beginEditCP(m_oGeoVertices, GeoPositions3f::GeoPropDataFieldMask);
{
MFPnt3f *poPositionField = m_oGeoVertices->getFieldPtr();
poPositionField->setValue(newCoords,
myIndex);
...skipping next 2 vertices..
}
endEditCP (m_oGeoVertices, GeoPositions3f::GeoPropDataFieldMask);
endEditCP(m_oGeometryCore, Geometry::PositionsFieldMask);
Andreas
Hi,
I'm using a geomtry core to hold a bunch of triangles (GL_TRIANGLES).
After the initialization everything works fine until I try to modify
the coordinates of the vertices
// init coordinates
m_oGeoVertices = GeoPositions3f::create();
beginEditCP(m_oGeoVertices, GeoPositions3f::GeoPropDataFieldMask);
{
m_oGeoVertices->addValue(Pnt3f(0.0, 1.0, 0.0));
...
}
endEditCP (m_oGeoVertices, GeoPositions3f::GeoPropDataFieldMask);
..skipping initialization of geo core & indices stuff ...
m_oGeometryCore->setPositions(m_oGeoVertices);
<works find so far>
... later :
MFPnt3f *poPositionField = m_oGeoVertices->getFieldPtr();
Pnt3f newCoords; // input parameter
beginEditCP(m_oGeoVertices, GeoPositions3f::GeoPropDataFieldMask);
{
MFPnt3f *poPositionField = m_oGeoVertices->getFieldPtr();
poPositionField->setValue(newCoords,
myIndex);
...skipping next 2 vertices..
}
endEditCP (m_oGeoVertices, GeoPositions3f::GeoPropDataFieldMask);
But in my window the triangles don't change :(
The same with edges works fine... so it could be a problem with my
application-code (as usual), but since I basically use the same code
fragments for the triangles there shouldn't be a problem.
Any suggestions ?
thx
alex
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users