FRAGMOTIONLib::IMesh

Methods Description
AddFace
AddVertex
AppendMesh Appends the contents of pmesh to the existing mesh. MESH_NO_VERTS or MESH_NO_TRIS can be passed in the flags parameter to prevent copying vertices or faces.
AssignMaterial
AssignToGroup
AssignToSmoothingGroup
AssignVertices
BevelEdges
Clone Creates and returns a copy of the current mesh.
CreateCube Creates a cube with the given dimensions.
CreateCylinder Creates a cylinder.
CreateGeoSphere Creates a geosphere.
CreateMesh Creates a new empty mesh that is independent of this mesh.
CreateMeshUndoUnit
CreateMeshUndoUnitEx
CreateNormalInfo Creates the list of unique normals that is returns by GetNormalsInfo. This info is created automatically by CreateVertexNormals.
CreateSphere Creates a sphere.
CreateVertexNormals Creates the vertex normals using the smoothing groups in pmodel. If pmodel is NULL one normal is created per vertex.
DeleteSelection Deletes all selected vertices and faces from the mesh.
DuplicateSelection Creates a copy of the selection and assigns the new faces to the given smoothing group.
FaceRemoveDuplicates Removes any faces that reference the same 3 vertices in the same order.
FaceReverseOrder Reverses the order in which the face references its vertices. The face will essentially become its backface.
FaceSubdivide3
FaceSubdivide4
FaceTurnEdge Turns the edge shared by 2 selected faces like turning a screwdriver.
FireChangeEvent Fires an IFragmotionEvents::meshChanged event.
GetAllocSize
GetBoundingBox Gets the bounding box of the mesh.
GetCenterOfMass
GetExportVertices
GetFaceCount Gets the number of faces in the mesh.
GetNormalInfo
GetRadius Gets the radius of the mesh.
GetSelFaceCount Gets the number of selected faces in the mesh.
GetSelVertexCount Gets the number of selected vertices in the mesh.
GetTriangleStrips Creates a list of triangle strips.
GetVertexCount Gets the number of vertices in the mesh.
GetVertexDiffuse
GetVertexSpecular
GetVertexUVCoords
Hide Depending on bAll, hides all vertices and faces or just the selection. MESH_NO_VERTS or MESH_NO_TRIS can be passed in the flags parameter to prevent hiding vertices or faces.
InvertSelection Selects all unselected vertices and faces and deselects all selected vertices and faces.
IsMeshEqual Compares the current mesh with pmesh and returns 0 if they are identical, 1 otherwise.
LockMesh Locks the mesh so other calls to IMesh cannot modify the data. This will also prevent other threads from modifying the data while the lock is held. UnlockMesh must be called once for every call to LockMesh.
ReallocData Reallocates the vertex and face arrays to the given sizes and optionally copies the existing data.
ReassignVertices
RelaxMesh
Reset Removes all faces and vertices from the mesh.
SelectAll Selects/Deselects all vertices and faces. MESH_NO_VERTS or MESH_NO_TRIS can be passed in the flags parameter to prevent selecting vertices or faces.
SelectAssigned
SelectByMaterial
SelectGroup Selects/Deselects all faces assigned to the specified smoothing group. If pgroup is NULL, all faces that aren't assigned to a smoothing group will be selected/deselected.
SelectSmoothingGroup
SelectUnassigned
SetData Sets the mesh data with an array of CFragVertex and CFragTriangle. The existing mesh will be destroyed.
SetFaceCount Sets the number of faces in the mesh.
SetMesh Destroys the current mesh and copies the data from pmesh. MESH_NO_VERTS or MESH_NO_TRIS can be passed in the flags parameter to prevent copying vertices or faces.
SetVertexCount Sets the number of vertices in the mesh.
ShowAll Shows all hidden vertices and faces. MESH_NO_VERTS or MESH_NO_TRIS can be passed in the flags parameter to prevent showing vertices or faces.
ShowGroup
ShowSmoothingGroup
SmoothMesh
TransformMesh Applies the given transform to the vertex array.
UnassignVertices
UnlockMesh Unlocks the mesh. This must be called once for every call to LockMesh.
VertexFlattenX
VertexFlattenY
VertexFlattenZ
VertexRemoveOrphans Removes any vertices that aren't referenced by a face.
VertexSnapTogether
VertexSplitEdge
VertexWeld Removes duplicated vertices from the mesh.

Properties Description
Name

Remarks

See Also

Copyright © 2004-2010 Fragmosoft