VSG Logo   Avizo Forum

Go Back   Avizo Forum > Avizo main forum

Avizo main forum This is where you can find all the general discussions about Avizo.

Reply
 
Thread Tools Display Modes
  #1  
Old 3rd February 2012, 13:57
barbis barbis is offline
Member
 
Join Date: Dec 2011
Location: Austria/Graz
Posts: 16
Default generate surface out of point set

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
Reply With Quote
  #2  
Old 13th February 2012, 15:41
forum_admin forum_admin is offline
Administrator
 
Join Date: Feb 2008
Posts: 86
Default Re: generate surface out of point set

Hi Toni,

To generate surface, you do need to load the data as vertexset or hxcluster.

Once the data is loaded, you can try a few modules under "Surface Transforms" to build your surface, such as Convex Hull, Delaunay Triangularization, or Point Wrap Triangularization, to build a surface out of the point cloud.

Let me know how it goes.

Best,
-Shawn
Reply With Quote
  #3  
Old 14th February 2012, 09:02
barbis barbis is offline
Member
 
Join Date: Dec 2011
Location: Austria/Graz
Posts: 16
Default Re: generate surface out of point set

Dear Shawn,

very much thanks for your answer. I did find in hxsurfacetools folder a header file called Triangulator, which i thought could do the job. But i was not able to make it work because i had no idea about the input variables:

Code:
  void triangulate(int x, int y, int nMat, int* label,
		     int* prob, int* prob2, int tableInv[8], McMutex *mutex=NULL);

    /** General triangulation method. Same as before, with additional 
        parameters for referencing a smooth material. */
    void triangulate(int x, int y, int nMat, int* label, int const *smoothMatLbl,
		     int* prob, int* prob2, int tableInv[8], 
             int const smoothMat, int const *pSmooth, int const *qSmooth,
             McMutex *mutex=NULL);
How does one proceed here? I don't know the meaning of any of those inputs... I got around this problem by doing the triangulation in matlab and but it would be nice to know how does one do this in amira!


thanks.

p.s. i did not find any info about point wrap triangulation... ??
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 23:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright VSG SAS, 2008.