SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Re: duplicate triangles in trisurfs from isosurfaces


Chronological Thread 
  • From: martinzbornik@post.cz
  • To: Anastasia Mironova <mironova@sci.utah.edu>
  • Cc: scirun-users@sci.utah.edu
  • Subject: [SCIRUN-USERS] Re: duplicate triangles in trisurfs from isosurfaces
  • Date: Mon, 15 Jun 2009 08:28:51 +0200 (CEST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=post.cz; h=In-Reply-To:Received:Date:Cc:To:From:Subject:Mime-Version:Message-Id:Content-Transfer-Encoding:Content-Type:X-Abuse:X-Seznam-User:X-QM-Mark; b=iGWTmDaFPWvB/kOlOKEiQNX6iBGQR+pv7fejaEAr4T1ds6WIuttSZWOHxFWBdVUy3 iL8U44GtuimwpNArnB3nidsXooTL0DXSk6EvTAodDdRS5hjJIe1dYf6TiznfW4TW1In HNSBsXngYD2TaFfc2kVWIB6c+tlUIg2br2Jzj0o=

Hi Anastasia,

I don't know, how to do it directly in Scirun, we had this one problem too.

We used this procedure in Matlab, it maybe could help you:

face_output=[];
s=size(face_input);
face_input=[face_input sort(face_input')'];
face_input=sortrows(face_input,4:6);
face_output=face_input(1,1:3);
for i=2:s(1)
if not(sum(face_input(i,4:6) == face_input(i-1,4:6))==3)
 face_output=[face_vystup;face_input(i,1:3)];
end;
end;

We are now solving only, how to join it with Matlab interface between scirun 
and Matlab.

Best regards,

Martin

------------ Původní zpráva ------------
Od: Anastasia Mironova <mironova@sci.utah.edu>
Předmět: [SCIRUN-USERS] duplicate triangles in trisurfs from isosurfaces
Datum: 12.6.2009 19:00:07
----------------------------------------
Hello All,

My current workflow for generating isosurfaces in SCIRun
is this:

...
ExtractIsoSurface
JoinFields (removes duplicate vertices)
Decimate (removes triangles joining the same vertex, such
as 0 0 0 or 1 1 1)

Now the problem is that the resulting output .fac file
still has triangles like this:
1 7 0
0 7 1

Is there a way to get rid of those within SCIRun?

Thanks very much!
-Anastasia






Archive powered by MHonArc 2.6.16.

Top of page