|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
net.sourceforge.arbaro.mesh.MeshSection
public class MeshSection
Field Summary | |
---|---|
double |
mapV
|
MeshSection |
next
|
MeshSection |
previous
|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
MeshSection(int ptcnt,
double v)
|
Method Summary | |
---|---|
void |
addPoint(Vector pt,
double mapU)
Adds a point to the mesh section |
java.util.Enumeration |
allFaces(int startIndex,
boolean UVFaces,
boolean useQuads)
|
java.util.Enumeration |
allVertices(boolean UVVertices)
|
Vector |
down(int i)
Returns the point below the point number i (from the previous section). |
int |
faceCount(boolean useQuads)
Returns the number of faces between this section and the next one. |
Vector |
here(int i)
Returns the point number i. |
boolean |
isFirst()
|
boolean |
isLast()
|
Vector |
left(int i)
Returns the point to the left of the point number i |
Vector |
normal(Vector a,
Vector b,
Vector c)
Returns the normal of the plane built by the vectors a-b and c-b |
Vector |
normalAt(int i)
Returns the normal of the vertex i. |
Vector |
pointAt(int i)
Returns the location point of the vertex i. |
Vector |
right(int i)
Returns the point to the right of the point number i |
void |
setNormalsDown()
Sets all normals to the average of the two left and right lower triangles |
void |
setNormalsToVector(Vector vec)
Sets all normals to the vector vec |
void |
setNormalsUp()
Sets all normals to the average of the two left and right upper triangles |
void |
setNormalsUpDown()
Sets all normals to the average of the four left and right upper and lower triangles |
Vector |
up(int i)
Returns the point on top of the point number i (from the next section). |
UVVector |
uvAt(int i)
Returns the texture's uv-coordinates of the point. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Field Detail |
---|
public MeshSection previous
public MeshSection next
public double mapV
Constructor Detail |
---|
public MeshSection(int ptcnt, double v)
Method Detail |
---|
public void addPoint(Vector pt, double mapU)
pt
- mapU
- public Vector pointAt(int i)
i
-
public java.util.Enumeration allVertices(boolean UVVertices)
public java.util.Enumeration allFaces(int startIndex, boolean UVFaces, boolean useQuads)
public UVVector uvAt(int i)
i
-
public boolean isFirst()
public boolean isLast()
public int faceCount(boolean useQuads)
useQuads
-
public Vector normalAt(int i) throws java.lang.Exception
i
-
java.lang.Exception
public Vector here(int i)
i
-
public Vector left(int i)
i
-
public Vector right(int i)
i
-
public Vector up(int i)
i
-
public Vector down(int i)
i
-
public Vector normal(Vector a, Vector b, Vector c)
a
- b
- c
-
public void setNormalsToVector(Vector vec)
vec
- public void setNormalsUp()
public void setNormalsDown()
public void setNormalsUpDown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |