Main Page | Compound List | Compound Members

VUEMeshObject Class Reference


Your Ad Here


List of all members.

Public Member Functions

int CountMeshFaces ()
 Retrieves the number of faces in the mesh.
int CountMeshNormals ()
 Retrieves the number of normals used for smoothing of the mesh.
int CountMeshUVWCoordinates ()
 Retrieves the number of UVW coordinates in the mesh.
int CountMeshVertices ()
 Retrieves the number of vertices in the mesh.
list_of_ints MeshFaceMaterialIndices ()
 Retrieves the list of smoothed normal index triples used in each face of the mesh.
list_of_tuples_of_ints_n1_n2_n3 MeshFaceVertexIndices ()
 Retrieves the list of vertex index triples used in each face of the mesh.
list_of_tuples_of_floats_x_y_z MeshNormals ()
 Retrieves the list of normals used for smoothing of the mesh.
list_of_tuples_of_floats_x_y_z MeshUVWCoordinates ()
 Retrieves the list of UVW coordinates in the mesh.
list_of_tuples_of_floats_x_y_z MeshVertices ()
 Retrieves the list of vertices of the mesh.
None SetMeshFaceMaterialIndices (list_of_ints pListOfFaceMaterialIndices)
 Sets the material indices used on each face of the mesh.
None SetMeshFaceVertexIndices (list_of_tuples_of_ints_n1_n2_n3 pListOfFaceVertexIndices)
 Sets the vertex index triples used in each face of the mesh.
None SetMeshNormals (list_of_tuples_of_floats_x_y_z pListOfNormals)
 Sets the 3D coordinates of all the normals used for smoothing of the mesh.
None SetMeshUVWCoordinates (list_of_tuples_of_floats_x_y_z pListOfUVWCoordinates)
 Sets the UVW coordinates of the mesh.
None SetMeshVertices (list_of_tuples_of_floats_x_y_z vertices)
 Sets the 3D coordinates of all the vertices in the mesh.
None SetTriangleVertices (list_of_tuples_of_floats_x_y_z vertices, boolean smooth=true)
 Sets the geometry of the mesh (only vertices) vertices a list of vertices that are used to form numVertices/3 faces smooth a boolean indicating whether the object should be smoothed according to smoothing options.
None SetTriangleVerticesNormals (list_of_tuples_of_floats_x_y_z vertices, list_of_tuples_of_floats_x_y_z normals)
 Sets the geometry and smoothed normals of the mesh vertices a list of vertices that are used to form numVertices/3 faces normals a list containing the normals associated to the vertices of the mesh the two lists should have the same size.
None SetTriangleVerticesNormalsUVW (list_of_tuples_of_floats_x_y_z vertices, list_of_tuples_of_floats_x_y_z normals, list_of_tuples_of_floats_x_y_z uvw)
 Sets the geometry, smoothed normals and UVW mapping information of the mesh vertices a list of vertices that are used to form numVertices/3 faces normals a list containing the normals associated to the vertices of the mesh uvw a list containing the texture coordinates associated to the vertices of the mesh the three lists should have the same size.
None SetTriangleVerticesUVW (list_of_tuples_of_floats_x_y_z vertices, list_of_tuples_of_floats_x_y_z uvw, boolean smooth=true)
 Sets the geometry and UVW mapping information of the mesh vertices a list of vertices that are used to form numVertices/3 faces uvw a list containing the texture coordinates associated to the vertices of the mesh smooth a boolean indicating whether the object should be smoothed according to smoothing options the two lists should have the same size.
None Smooth (float fMaxSmoothingAngle=85)
 Smooths the mesh with the indicated smoothing angle.

Member Function Documentation

int CountMeshFaces  ) 
 

Retrieves the number of faces in the mesh.

Returns:
An integer indicating the number of faces in the mesh. (after converting all faces into faces3 if needed)
See also:
MeshFaces, SetMeshFaces.

int CountMeshNormals  ) 
 

Retrieves the number of normals used for smoothing of the mesh.

Returns:
An integer indicating the number of normals in the mesh.
Remarks:
If the mesh isn't smoothed, this function returns 0.
See also:
MeshNormals, SetMeshNormals, MeshFaceNormalIndices, SetMeshFaceNormalIndices, Smooth.

int CountMeshUVWCoordinates  ) 
 

Retrieves the number of UVW coordinates in the mesh.

Returns:
An integer indicating the number of UVW coordinates in the mesh.
Remarks:
If the mesh has no UVW coordinates, this function returns 0.

Currently, only UV coordinates are used. The W coordinate is provided for future compatibility, and will currently be ignored.

See also:
MeshUVWCoordinates, SetMeshUVWCoordinates, MeshFaceUVWIndices, SetMeshFaceUVWIndices.

int CountMeshVertices  ) 
 

Retrieves the number of vertices in the mesh.

Returns:
An integer indicating the number of vertices in the mesh.
See also:
MeshVertices, SetMeshVertices.

list_of_ints MeshFaceMaterialIndices  ) 
 

Retrieves the list of smoothed normal index triples used in each face of the mesh.

Returns:
A list of integer triples indicating the 3 normals used on each vertex of the face, or None if the function fails. The list contains CountMeshFaces() values. Normal indices are zero-based.
Remarks:
You cannot retrieve this information if exporting the mesh is forbidden.
See also:
CountMeshNormals, CountMeshFaces, SetMeshFaceVertexIndices, SetMeshFaceNormalIndices, SetMeshFaceMaterialIndices, CountMeshNormals, MeshNormals, SetMeshNormals, Smooth.

list_of_tuples_of_ints_n1_n2_n3 MeshFaceVertexIndices  ) 
 

Retrieves the list of vertex index triples used in each face of the mesh.

Returns:
A list of integer triples indicating the 3 vertices that form the face, or None if the function fails. The list contains CountMeshFaces() values. Vertex indices are zero-based.
Remarks:
You cannot retrieve this information if exporting the mesh is forbidden.
See also:
CountMeshFaces, SetMeshFaceVertexIndices, SetMeshFaceNormalIndices.

list_of_tuples_of_floats_x_y_z MeshNormals  ) 
 

Retrieves the list of normals used for smoothing of the mesh.

Returns:
A list of vector (tuples of 3 floats x, y and z) representing the 3D coordinates of each normal, or None if the function fails. The list contains CountMeshVertices() values.
Remarks:
You cannot retrieve this information if exporting the mesh is forbidden.
Warning:
You shouldn't call this function if CountMeshNormals() returns 0 (i.e. the mesh isn't smoothed).
See also:
CountMeshNormals, SetMeshNormals, MeshFaceNormalIndices, SetMeshFaceNormalIndices, Smooth.

list_of_tuples_of_floats_x_y_z MeshUVWCoordinates  ) 
 

Retrieves the list of UVW coordinates in the mesh.

Returns:
A list of vector (tuples of 3 floats u, v and w) representing the set of UVW coordinates, or None if the function fails. The list contains CountMeshUVWCoordinate() values.
Remarks:
You cannot retrieve this information if exporting the mesh is forbidden.

Currently, only UV coordinates are used. The W coordinate is provided for future compatibility, and will currently always be 0.

Warning:
You shouldn't call this function if CountMeshUVWCoordinate() returns 0 (i.e. the mesh has no UVW coordinates).
See also:
CountMeshUVWCoordinates, SetMeshUVWCoordinates, MeshFaceUVWIndices, SetMeshFaceUVWIndices.

list_of_tuples_of_floats_x_y_z MeshVertices  ) 
 

Retrieves the list of vertices of the mesh.

Returns:
A list of vector (tuples of 3 floats x, y and z) representing the 3D coordinates of each vertex, or None if the function fails. The list contains CountMeshVertices() values.
Remarks:
You cannot retrieve this information if exporting the mesh is forbidden.
See also:
CountMeshVertices, SetMeshVertices.

None SetMeshFaceMaterialIndices list_of_ints  pListOfFaceMaterialIndices  ) 
 

Sets the material indices used on each face of the mesh.

Parameters:
pListOfFaceMaterialIndices the list of new material indices that will be used for each face. The list must contain CountMeshFaces() integers. Materials indices are zero-based.
Remarks:
Material indices must be in the range of 0 through CountMaterials()-1.

The faces are stored internally in such a way that all the faces using the same material are stored contiguously. Therefore, calling this function may reorder the faces.

See also:
CountMeshFaces, CountMaterials, MeshFaceMaterialIndices, MeshFaceVertexIndices, MeshFaceNormalIndices, CountMeshNormals, MeshNormals, SetMeshNormals, Smooth.

None SetMeshFaceVertexIndices list_of_tuples_of_ints_n1_n2_n3  pListOfFaceVertexIndices  ) 
 

Sets the vertex index triples used in each face of the mesh.

Parameters:
pListOfFaceVertexIndices the list of new vertex index triples that form each face. The list must contain CountMeshFaces() integer triples. Vertex indices are zero-based.
Remarks:
Vertex indices must be in the range of 0 through CountMeshVertices()-1.
See also:
CountMeshVertices, CountMeshFaces, MeshFaceVertexIndices, MeshFaceNormalIndices, MeshFaceMaterialIndices.

None SetMeshNormals list_of_tuples_of_floats_x_y_z  pListOfNormals  ) 
 

Sets the 3D coordinates of all the normals used for smoothing of the mesh.

Parameters:
pListOfNormals the list of new normal coordinates. The list must contain CountMeshNormals() entries.
Warning:
You shouldn't call this function if CountMeshNormals() returns 0 (i.e. the mesh isn't smoothed).
See also:
CountMeshNormals, MeshNormals, MeshFaceNormalIndices, SetMeshFaceNormalIndices, Smooth.

None SetMeshUVWCoordinates list_of_tuples_of_floats_x_y_z  pListOfUVWCoordinates  ) 
 

Sets the UVW coordinates of the mesh.

Parameters:
pListOfUVWCoordinates the list of new UVW coordinates. The list must contain CountMeshUVWCoordinate() entries.
Remarks:
Currently, only UV coordinates are used. The W coordinate is provided for future compatibility, and will currently be ignored.
Warning:
You shouldn't call this function if CountMeshUVWCoordinate() returns 0 (i.e. the mesh has no UVW coordinates).
See also:
CountMeshUVWCoordinates, MeshUVWCoordinates, MeshFaceUVWIndices, SetMeshFaceUVWIndices.

None SetMeshVertices list_of_tuples_of_floats_x_y_z  vertices  ) 
 

Sets the 3D coordinates of all the vertices in the mesh.

Parameters:
vertices the list of new vertex coordinates. The list must contain CountMeshVertices() entries.
See also:
CountMeshVertices, MeshVertices.

None SetTriangleVertices list_of_tuples_of_floats_x_y_z  vertices,
boolean  smooth = true
 

Sets the geometry of the mesh (only vertices) vertices a list of vertices that are used to form numVertices/3 faces smooth a boolean indicating whether the object should be smoothed according to smoothing options.

None SetTriangleVerticesNormals list_of_tuples_of_floats_x_y_z  vertices,
list_of_tuples_of_floats_x_y_z  normals
 

Sets the geometry and smoothed normals of the mesh vertices a list of vertices that are used to form numVertices/3 faces normals a list containing the normals associated to the vertices of the mesh the two lists should have the same size.

None SetTriangleVerticesNormalsUVW list_of_tuples_of_floats_x_y_z  vertices,
list_of_tuples_of_floats_x_y_z  normals,
list_of_tuples_of_floats_x_y_z  uvw
 

Sets the geometry, smoothed normals and UVW mapping information of the mesh vertices a list of vertices that are used to form numVertices/3 faces normals a list containing the normals associated to the vertices of the mesh uvw a list containing the texture coordinates associated to the vertices of the mesh the three lists should have the same size.

None SetTriangleVerticesUVW list_of_tuples_of_floats_x_y_z  vertices,
list_of_tuples_of_floats_x_y_z  uvw,
boolean  smooth = true
 

Sets the geometry and UVW mapping information of the mesh vertices a list of vertices that are used to form numVertices/3 faces uvw a list containing the texture coordinates associated to the vertices of the mesh smooth a boolean indicating whether the object should be smoothed according to smoothing options the two lists should have the same size.

None Smooth float  fMaxSmoothingAngle = 85  ) 
 

Smooths the mesh with the indicated smoothing angle.

Parameters:
fMaxSmoothingAngle the maximum angle in degrees between adjacent faces that are smoothed. Adjacent faces with a greater angle will not be smoothed.
Remarks:
Calling this function will overwrite any mesh normals set with SetMeshFaceNormalIndices(). The number of normals may also be modified. Call CountMeshNormals() again after using this function to get the updated number of normals.

If no value is given for the maximum smoothing angle, the default value of 85° will be used.

To remove all smoothing on the mesh, simply call this value with a smoothing angle of 0.

See also:
CountMeshNormals, MeshNormals.


Generated using doxygen on Wed Nov 29 17:50:20 2006.
©2003 e-on software, inc. All rights reserved.

Return to Vue Index


Your Ad Here