s373.marchingcubes
Class MarchingCubes
java.lang.Object
s373.marchingcubes.MarchingCubes
public class MarchingCubes
- extends Object
Method Summary |
void |
addCube(float val,
XYZ ptpos,
XYZ ptdim)
|
void |
addData(float[] d)
|
void |
addIsoPoint(float val,
XYZ ptpos)
|
void |
checkMinMax()
|
void |
datainvert()
|
void |
datasubs(float v)
|
void |
draw()
|
void |
drawGL()
|
void |
drawnormals(float s)
|
void |
drawnormalsGL(float s)
|
void |
drawnormalssize(float siz,
float s)
|
void |
drawsize(float s)
|
XYZ |
getCenter()
|
float[] |
getData()
|
int |
getIndex(XYZ ptpos)
|
String |
getinfo()
|
void |
initResolution(int x,
int y,
int z)
|
boolean |
isEmpty()
|
void |
multData(float v)
|
void |
normalizeDataTo(float v)
|
void |
polygoniseData()
|
void |
post()
|
void |
readStl(String filestr)
|
void |
setData(float[] d)
|
void |
setRndData(float mx)
|
void |
setRndData(float mn,
float mx)
|
void |
setWorldDim(float x,
float y,
float z)
|
String |
version()
return the version of the library. |
void |
writeStl(String filestr)
|
void |
writeStl(String path,
String filestr)
|
void |
zeroData()
|
applet
public PApplet applet
grid
public GRIDCELL grid
isolevel
public float isolevel
triangles
public TRIANGLE[] triangles
gx
public int gx
gy
public int gy
gz
public int gz
numxyz
public int numxyz
gxgy
public int gxgy
data
public float[] data
themin
public float themin
themax
public float themax
trilist
public ArrayList<TRIANGLE> trilist
ntri
public int ntri
invertnormals
public boolean invertnormals
closesides
public boolean closesides
worlddim
public XYZ worlddim
worldstride
public XYZ worldstride
worldcenter
public XYZ worldcenter
datastride
public XYZ datastride
info
public String info
filename
public String filename
file
public File file
header
public byte[] header
byte4
public byte[] byte4
buf
public ByteBuffer buf
MarchingCubes
public MarchingCubes(PApplet pa,
float sx,
float sy,
float sz,
int x,
int y,
int z)
setWorldDim
public void setWorldDim(float x,
float y,
float z)
initResolution
public void initResolution(int x,
int y,
int z)
getinfo
public String getinfo()
getCenter
public XYZ getCenter()
getIndex
public final int getIndex(XYZ ptpos)
addIsoPoint
public void addIsoPoint(float val,
XYZ ptpos)
addCube
public void addCube(float val,
XYZ ptpos,
XYZ ptdim)
zeroData
public void zeroData()
setRndData
public void setRndData(float mn,
float mx)
setRndData
public void setRndData(float mx)
setData
public void setData(float[] d)
addData
public void addData(float[] d)
getData
public float[] getData()
isEmpty
public boolean isEmpty()
multData
public void multData(float v)
normalizeDataTo
public void normalizeDataTo(float v)
checkMinMax
public void checkMinMax()
datainvert
public void datainvert()
datasubs
public void datasubs(float v)
post
public void post()
polygoniseData
public void polygoniseData()
draw
public void draw()
drawnormals
public void drawnormals(float s)
drawsize
public void drawsize(float s)
drawnormalssize
public void drawnormalssize(float siz,
float s)
drawGL
public void drawGL()
drawnormalsGL
public void drawnormalsGL(float s)
readStl
public void readStl(String filestr)
writeStl
public void writeStl(String filestr)
writeStl
public void writeStl(String path,
String filestr)
version
public String version()
- return the version of the library.
- Returns:
- String
Processing library marchingcubes by Andre Sier. (C) 2010-2