igeo.gui
Class ISurfaceMesh

java.lang.Object
  extended by igeo.gui.ISurfaceMesh

public class ISurfaceMesh
extends java.lang.Object

Class to generate drawable polygon mesh of NURBS surface with or without trim curves. This class is used by ISurfaceGraphicFillGL.

Author:
Satoru Sugihara
See Also:
ISurfaceGraphicFillGL, ISubsurfaceMesh

Nested Class Summary
static class ISurfaceMesh.SubsurfaceIndex
           
static class ISurfaceMesh.SubsurfaceIndexGroup
           
 
Constructor Summary
ISurfaceMesh()
           
 
Method Summary
static IVec2 getCenter(IVec2[] triangle)
           
static IVec2[][] getTriangles(IVec2[][] surfPts, IVec2[][] outerLoops, IVec2[][] innerLoops)
           
static IVec2[][] getTriangles(IVec2[] surfPts, IVec2[][] outerLoops, IVec2[][] innerLoops)
           
static IVec2[] insertPoint(IVec2[] pts, int i, IVec2 pt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISurfaceMesh

public ISurfaceMesh()
Method Detail

getTriangles

public static IVec2[][] getTriangles(IVec2[][] surfPts,
                                     IVec2[][] outerLoops,
                                     IVec2[][] innerLoops)

getTriangles

public static IVec2[][] getTriangles(IVec2[] surfPts,
                                     IVec2[][] outerLoops,
                                     IVec2[][] innerLoops)

insertPoint

public static IVec2[] insertPoint(IVec2[] pts,
                                  int i,
                                  IVec2 pt)

getCenter

public static IVec2 getCenter(IVec2[] triangle)