Home > vbmeg > external > iso2mesh > surfreorient.m

surfreorient

PURPOSE ^

SYNOPSIS ^

function [newnode,newface]=surfreorient(node,face)

DESCRIPTION ^

 [newnode,newface]=surfreorient(node,elem)

 reorder nodes in a single closed surface to ensure the norms of all
 triangles are pointing outward

 author: Qianqian Fang, <q.fang at neu.edu>
 date: 2012/07/06

 input:
    node: list of nodes
    face: list of surface triangles (each row are indices of nodes of each triangle)

 output:
    newnode: the output node list, in most cases it equals node
    newface: the face list with consistent ordering

 -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [newnode,newface]=surfreorient(node,face)
0002 %
0003 % [newnode,newface]=surfreorient(node,elem)
0004 %
0005 % reorder nodes in a single closed surface to ensure the norms of all
0006 % triangles are pointing outward
0007 %
0008 % author: Qianqian Fang, <q.fang at neu.edu>
0009 % date: 2012/07/06
0010 %
0011 % input:
0012 %    node: list of nodes
0013 %    face: list of surface triangles (each row are indices of nodes of each triangle)
0014 %
0015 % output:
0016 %    newnode: the output node list, in most cases it equals node
0017 %    newface: the face list with consistent ordering
0018 %
0019 % -- this function is part of iso2mesh toolbox (http://iso2mesh.sf.net)
0020 %
0021 
0022 [newnode,newface]=meshcheckrepair(node(:,1:3),face(:,1:3),'deep');

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005