|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the state interface to access the internals of a thing mesh factory.
Method Summary | |
int |
addEmptyPolygon()
Add an empty polygon. |
int |
addInsideBox(csVector3 bmin,
csVector3 bmax)
Add a box that can be seen from the inside. |
int |
addOutsideBox(csVector3 bmin,
csVector3 bmax)
Add a box that can be seen from the outside. |
int |
addPolygon(csVector3[] vertices,
int num)
Add a general polygon. |
void |
addPolygonVertex(csPolygonRange range,
csVector3 vt)
Add a vertex to all polygons in the given range. |
void |
addPolygonVertex(csPolygonRange range,
int vt)
Add a vertex index to all polygons in the given range. |
int |
addQuad(csVector3 v1,
csVector3 v2,
csVector3 v3,
csVector3 v4)
Add a quad. |
int |
addTriangle(csVector3 v1,
csVector3 v2,
csVector3 v3)
Add a triangle. |
void |
compressVertices()
Compress the vertex table so that all nearly identical vertices are compressed. |
iPolygonHandle |
createPolygonHandle(int polygon_idx)
Create a polygon handle that can be used to refer to some polygon. |
int |
createVertex(csVector3 vt)
Create a vertex given his object-space coords and return his index. |
void |
deleteVertex(int idx)
Delete a vertex. |
void |
deleteVertices(int from,
int to)
Delete a range of vertices (inclusive);. |
int |
findPolygonByName(java.lang.String name)
Find a polygon index with a name. |
float |
getCosinusFactor()
Get cosinus factor. |
csFlags |
getFlags()
Set thing flags (see CS_THING_... values above);. |
csVector3[] |
getNormals()
Gets the normals. |
int |
getPolygonCount()
Query number of polygons in this thing. |
csFlags |
getPolygonFlags(int polygon_idx)
Get the flags of the specified polygon. |
iMaterialWrapper |
getPolygonMaterial(int polygon_idx)
Get the material for the specified polygon. |
java.lang.String |
getPolygonName(int polygon_idx)
Get the name of the specified polygon. |
csPlane3 |
getPolygonObjectPlane(int polygon_idx)
Get object space plane of the specified polygon. |
void |
getPolygonTextureMapping(int polygon_idx,
csMatrix3 m,
csVector3 v)
Get the texture space information for the specified polygon. |
csVector3 |
getPolygonVertex(int polygon_idx,
int vertex_idx)
Get a vertex from a polygon. |
int |
getPolygonVertexCount(int polygon_idx)
Get number of vertices for polygon. |
int[] |
getPolygonVertexIndices(int polygon_idx)
Get table with vertex indices from polygon. |
boolean |
getSmoothingFlag()
Gets the smoothing flag. |
csVector3 |
getVertex(int idx)
Get the given vertex coordinates in object space. |
int |
getVertexCount()
Query number of vertices in set. |
csVector3[] |
getVertices()
Get the vertex coordinates in object space. |
boolean |
isPolygonTextureMappingEnabled(int polygon_idx)
Check if texture mapping is enabled for the specified polygon. |
boolean |
isPolygonTransparent(int polygon_idx)
Return true if this polygon or the texture it uses is transparent. |
boolean |
pointOnPolygon(int polygon_idx,
csVector3 v)
Return true if an object space point is on (or very nearly on); the given polygon. |
void |
removePolygon(int idx)
Delete a polygon given an index. |
void |
removePolygons()
Delete all polygons. |
void |
resetPolygonFlags(csPolygonRange range,
int flags)
Reset the given flags to all polygons in the range. |
void |
setCosinusFactor(float cosfact)
Set cosinus factor. |
void |
setPolygonFlags(csPolygonRange range,
int flags)
Set the given flags to all polygons in the range. |
void |
setPolygonFlags(csPolygonRange range,
int mask,
int flags)
Set the given flags to all polygons in the range. |
void |
setPolygonMaterial(csPolygonRange range,
iMaterialWrapper material)
Set the material of all polygons in the given range. |
void |
setPolygonName(csPolygonRange range,
java.lang.String name)
Set the name of all polygons in the given range. |
void |
setPolygonTextureMapping(csPolygonRange range,
csMatrix3 m,
csVector3 v)
Set texture mapping of all polygons in the given range to use the transform. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector2 uv1,
csVector2 uv2,
csVector2 uv3)
Set texture mapping of all polygons in the given range to use the given uv coordinates for the first three vertices of every polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector3 p1,
csVector2 uv1,
csVector3 p2,
csVector2 uv2,
csVector3 p3,
csVector2 uv3)
Set texture mapping of all polygons in the given range to use the given uv coordinates for the specified three vertices of every polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector3 v_orig,
csVector3 v1,
float len1)
Set texture mapping of all polygons in the given range to use the texture mapping as specified by two vertices on the polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
csVector3 v_orig,
csVector3 v1,
float len1,
csVector3 v2,
float len2)
Set texture mapping of all polygons in the given range to use the texture mapping as specified by two vertices on the polygon. |
void |
setPolygonTextureMapping(csPolygonRange range,
float len1)
Set texture mapping of all polygons in the given range to use the texture mapping as specified by the two first vertices on the polygon. |
void |
setPolygonTextureMappingEnabled(csPolygonRange range,
boolean enabled)
Disable or enable texture mapping for the range of polygons. |
void |
setPolygonVertexIndices(csPolygonRange range,
int num,
int[] indices)
Set the given polygon index table for all polygons in the given range. |
void |
setSmoothingFlag(boolean smoothing)
Sets the smoothing flag. |
void |
setVertex(int idx,
csVector3 vt)
Set the object space vertices for a given vertex. |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public int addEmptyPolygon()
public int addInsideBox(csVector3 bmin, csVector3 bmax)
bmin
- bmax
-
public int addOutsideBox(csVector3 bmin, csVector3 bmax)
bmin
- bmax
-
public int addPolygon(csVector3[] vertices, int num)
vertices
- num
-
public void addPolygonVertex(csPolygonRange range, int vt)
range
- vt
- public void addPolygonVertex(csPolygonRange range, csVector3 vt)
range
- vt
- public int addQuad(csVector3 v1, csVector3 v2, csVector3 v3, csVector3 v4)
v1
- v2
- v3
- v4
-
public int addTriangle(csVector3 v1, csVector3 v2, csVector3 v3)
v1
- v2
- v3
-
public void compressVertices()
public iPolygonHandle createPolygonHandle(int polygon_idx)
polygon_idx
-
public int createVertex(csVector3 vt)
vt
-
public void deleteVertex(int idx)
idx
- public void deleteVertices(int from, int to)
from
- to
- public int findPolygonByName(java.lang.String name)
name
-
public float getCosinusFactor()
public csFlags getFlags()
public csVector3[] getNormals()
public int getPolygonCount()
public csFlags getPolygonFlags(int polygon_idx)
polygon_idx
-
public iMaterialWrapper getPolygonMaterial(int polygon_idx)
polygon_idx
-
public java.lang.String getPolygonName(int polygon_idx)
polygon_idx
-
public csPlane3 getPolygonObjectPlane(int polygon_idx)
polygon_idx
-
public void getPolygonTextureMapping(int polygon_idx, csMatrix3 m, csVector3 v)
polygon_idx
- m
- v
- public csVector3 getPolygonVertex(int polygon_idx, int vertex_idx)
polygon_idx
- vertex_idx
-
public int getPolygonVertexCount(int polygon_idx)
polygon_idx
-
public int[] getPolygonVertexIndices(int polygon_idx)
polygon_idx
-
public boolean getSmoothingFlag()
public csVector3 getVertex(int idx)
idx
-
public int getVertexCount()
public csVector3[] getVertices()
public boolean isPolygonTextureMappingEnabled(int polygon_idx)
polygon_idx
-
public boolean isPolygonTransparent(int polygon_idx)
polygon_idx
-
public boolean pointOnPolygon(int polygon_idx, csVector3 v)
polygon_idx
- v
-
public void removePolygon(int idx)
idx
- public void removePolygons()
public void resetPolygonFlags(csPolygonRange range, int flags)
range
- flags
- public void setCosinusFactor(float cosfact)
cosfact
- public void setPolygonFlags(csPolygonRange range, int mask, int flags)
range
- mask
- flags
- public void setPolygonFlags(csPolygonRange range, int flags)
range
- flags
- public void setPolygonMaterial(csPolygonRange range, iMaterialWrapper material)
range
- material
- public void setPolygonName(csPolygonRange range, java.lang.String name)
range
- name
- public void setPolygonTextureMapping(csPolygonRange range, float len1)
range
- len1
- public void setPolygonTextureMapping(csPolygonRange range, csVector3 v_orig, csVector3 v1, float len1, csVector3 v2, float len2)
range
- v_orig
- v1
- len1
- v2
- len2
- public void setPolygonTextureMapping(csPolygonRange range, csVector3 v_orig, csVector3 v1, float len1)
range
- v_orig
- v1
- len1
- public void setPolygonTextureMapping(csPolygonRange range, csVector3 p1, csVector2 uv1, csVector3 p2, csVector2 uv2, csVector3 p3, csVector2 uv3)
range
- p1
- uv1
- p2
- uv2
- p3
- uv3
- public void setPolygonTextureMapping(csPolygonRange range, csVector2 uv1, csVector2 uv2, csVector2 uv3)
range
- uv1
- uv2
- uv3
- public void setPolygonTextureMapping(csPolygonRange range, csMatrix3 m, csVector3 v)
range
- m
- v
- public void setPolygonTextureMappingEnabled(csPolygonRange range, boolean enabled)
range
- enabled
- public void setPolygonVertexIndices(csPolygonRange range, int num, int[] indices)
range
- num
- indices
- public void setSmoothingFlag(boolean smoothing)
smoothing
- public void setVertex(int idx, csVector3 vt)
idx
- vt
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |