public class ISurfaceCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
IVec[][] |
pts |
IVec2[][] |
pts2 |
ISurfaceGeo |
surface |
int |
udeg |
int |
uresolution |
int |
vdeg |
int |
vresolution |
Constructor and Description |
---|
ISurfaceCache(ISurfaceGeo surf) |
ISurfaceCache(ISurfaceGeo surf,
int resolution) |
Modifier and Type | Method and Description |
---|---|
int[] |
closest(IVec pt) |
int[] |
closest(IVec2 pt) |
int[] |
getCloserTriangle(IVec2 pt,
int uidx,
int vidx) |
int[] |
getCloserTriangle(IVec pt,
int uidx,
int vidx)
center of a cell in pts grid
|
void |
init() |
void |
init2() |
IVec2 |
recursiveSearch(IVec2 pt,
double minU,
double minV,
double maxU,
double maxV,
IVec2[][] cornerPts,
int depthCount) |
IVec2 |
recursiveSearch(IVec pt,
double minU,
double minV,
double maxU,
double maxV,
IVec[][] cornerPts,
int depthCount) |
double |
u(int uindex) |
IVec2 |
uv(IVec pt)
approximate invert projection from 3D location to interanl parameter U (closest point on curve)
|
IVec2 |
uv(IVec2 pt)
approximate invert projection from 3D location to interanl parameter U (closest point on curve)
|
double |
v(int vindex) |
public ISurfaceGeo surface
public int uresolution
public int vresolution
public int udeg
public int vdeg
public IVec[][] pts
public IVec2[][] pts2
public ISurfaceCache(ISurfaceGeo surf, int resolution)
public ISurfaceCache(ISurfaceGeo surf)
public void init()
public void init2()
public double u(int uindex)
public double v(int vindex)
public int[] getCloserTriangle(IVec pt, int uidx, int vidx)
public int[] getCloserTriangle(IVec2 pt, int uidx, int vidx)
public IVec2 uv(IVec pt)
public IVec2 uv(IVec2 pt)
public IVec2 recursiveSearch(IVec pt, double minU, double minV, double maxU, double maxV, IVec[][] cornerPts, int depthCount)
public IVec2 recursiveSearch(IVec2 pt, double minU, double minV, double maxU, double maxV, IVec2[][] cornerPts, int depthCount)
public int[] closest(IVec pt)
public int[] closest(IVec2 pt)