igeo
Class ITrimCache
java.lang.Object
igeo.ITrimCache
public class ITrimCache
- extends java.lang.Object
Point cache of a surface trim curves, for checking a point is inside the trim or not
- Author:
- Satoru Sugihara
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
surface
public ISurfaceGeo surface
resolution
public int resolution
udeg
public int udeg
vdeg
public int vdeg
outTrims
public IPolyline2D[] outTrims
inTrims
public IPolyline2D[] inTrims
ITrimCache
public ITrimCache(ISurfaceGeo surf,
int resolution)
ITrimCache
public ITrimCache(ISurfaceGeo surf)
init
public void init()
isInside
public boolean isInside(IVec2I v)
isInside
public boolean isInside(double u,
double v)
isInside
public boolean isInside(IVec2 v)
- check a 2d point is inside the trim curves. the condition where out-trim loop is inside in-trim loop is ignored and it'd be false.