barbis
3rd February 2012, 13:57
Hello!
i have made a module, which reads a set of point coordinates like this:
for (int j=0; j<nPoints; j++)
{
McVec3f p;
p[0] = field->evalReg(j+2,0,0);
p[1] = field->evalReg(j+2,1,0);
p[2] = field->evalReg(j+2,2,0);
surface->points[j] = p;
}
What i am trying to do is to create a surface from these points but i don't
have any information about the triangles, which seems to be obligatory in the "Readtrimesh" example in mypackage.
How would it be possible to create a surface just of a set of points?
Should i read them as hxcluster or vertexset instead?
Thanks!
toni
i have made a module, which reads a set of point coordinates like this:
for (int j=0; j<nPoints; j++)
{
McVec3f p;
p[0] = field->evalReg(j+2,0,0);
p[1] = field->evalReg(j+2,1,0);
p[2] = field->evalReg(j+2,2,0);
surface->points[j] = p;
}
What i am trying to do is to create a surface from these points but i don't
have any information about the triangles, which seems to be obligatory in the "Readtrimesh" example in mypackage.
How would it be possible to create a surface just of a set of points?
Should i read them as hxcluster or vertexset instead?
Thanks!
toni