Public Member Functions | |
| FDatasmithMesh (const FDatasmithMesh &Other) | |
| FDatasmithMesh (FDatasmithMesh &&Other) | |
| FDatasmithMesh & | operator= (const FDatasmithMesh &Other) |
| FDatasmithMesh & | operator= (FDatasmithMesh &&Other) |
| void | SetName (const TCHAR *InName) |
| const TCHAR * | GetName () const |
| void | SetFacesCount (int32 NumFaces) |
| Setting the amount of faces is mandatory before filling the array. More... | |
| int32 | GetFacesCount () const |
| Retrieves the amount of faces. More... | |
| void | SetFace (int32 Index, int32 Vertex1, int32 Vertex2, int32 Vertex3, int32 MaterialId=0) |
| Sets the geometry of the face. More... | |
| void | GetFace (int32 Index, int32 &Vertex1, int32 &Vertex2, int32 &Vertex3, int32 &MaterialId) const |
| void | SetFaceSmoothingMask (int32 Index, uint32 SmoothingMask) |
| Sets the smoothing mask of the face. More... | |
| uint32 | GetFaceSmoothingMask (int32 Index) const |
| Gets the smoothing mask of a face. More... | |
| int32 | GetMaterialsCount () const |
| bool | IsMaterialIdUsed (int32 MaterialId) const |
| void | SetVerticesCount (int32 NumVerts) |
| Setting the amount of geometric vertices is mandatory before filling the array. More... | |
| int32 | GetVerticesCount () const |
| Retrieves the amount of geometric vertices. More... | |
| void | SetVertex (int32 Index, float X, float Y, float Z) |
| Sets the 3d position of the vertex. More... | |
| FVector | GetVertex (int32 Index) const |
| void | SetNormal (int32 Index, float X, float Y, float Z) |
| Sets the 3d normal. More... | |
| FVector | GetNormal (int32 Index) const |
| void | SetUVChannelsCount (int32 ChannelCount) |
| Sets the amount of UV channels on this mesh. More... | |
| void | AddUVChannel () |
| Add a UV channel at the end. More... | |
| void | RemoveUVChannel () |
| Remove the last UV channel. More... | |
| int32 | GetUVChannelsCount () const |
| Gets the amount of UV channels on this mesh. More... | |
| void | SetUVCount (int32 Channel, int32 NumVerts) |
| Setting the amount of UV coordinates on the channel is mandatory before filling the array. More... | |
| int32 | GetUVCount (int32 Channel) const |
| Retrieves the amount of UV coordinates on the channel. More... | |
| void | SetUV (int32 Channel, int32 Index, double U, double V) |
| Sets the 2d position of the UV vertex for the first uv mapping. More... | |
| uint32 | GetHashForUVChannel (int32 Channel) const |
| Get the hash for a uv channel. More... | |
| FVector2D | GetUV (int32 Channel, int32 Index) const |
| Gets the UV coordinates for a channel. More... | |
| void | SetFaceUV (int32 Index, int32 Channel, int32 Vertex1, int32 Vertex2, int32 Vertex3) |
| Sets the channel UV coordinates of the face. More... | |
| void | GetFaceUV (int32 Index, int32 Channel, int32 &Vertex1, int32 &Vertex2, int32 &Vertex3) const |
| Gets the UV coordinates of the vertices of a face. More... | |
| int32 | GetVertexColorCount () const |
| Get the number of vertex color. More... | |
| void | SetVertexColor (int32 Index, const FColor &Color) |
| Set a vertex color. More... | |
| FColor | GetVertexColor (int32 Index) const |
| Get the color for a vertex. More... | |
| void | SetLightmapSourceUVChannel (int32 Channel) |
| Sets the UV channel that will be used as the source UVs for lightmap UVs generation at import, defaults to channel 0. More... | |
| int32 | GetLightmapSourceUVChannel () const |
| Gets the UV channel that will be used for lightmap UVs generation at import. More... | |
| void | AddLOD (const FDatasmithMesh &InLODMesh) |
| Adds a LOD mesh to this base LOD mesh. More... | |
| void | AddLOD (FDatasmithMesh &&InLODMesh) |
| int32 | GetLODsCount () const |
| FDatasmithMesh & | GetLOD (int32 Index) |
| const FDatasmithMesh & | GetLOD (int32 Index) const |
| float | ComputeArea () const |
| Returns the total surface area. More... | |
| FBox | GetExtents () const |
| Returns the bounding box containing all vertices of this mesh. More... | |
| void FDatasmithMesh::AddLOD | ( | const FDatasmithMesh & | InLODMesh | ) |
Adds a LOD mesh to this base LOD mesh.
| void FDatasmithMesh::AddUVChannel | ( | ) |
Add a UV channel at the end.
| float FDatasmithMesh::ComputeArea | ( | ) | const |
Returns the total surface area.
| FBox FDatasmithMesh::GetExtents | ( | ) | const |
Returns the bounding box containing all vertices of this mesh.
| int32 FDatasmithMesh::GetFacesCount | ( | ) | const |
Retrieves the amount of faces.
| uint32 FDatasmithMesh::GetFaceSmoothingMask | ( | int32 | Index | ) | const |
Gets the smoothing mask of a face.
| Index | Index of the face to retrieve the smoothing mask from |
| void FDatasmithMesh::GetFaceUV | ( | int32 | Index, |
| int32 | Channel, | ||
| int32 & | Vertex1, | ||
| int32 & | Vertex2, | ||
| int32 & | Vertex3 | ||
| ) | const |
Gets the UV coordinates of the vertices of a face.
| Index | Index of the face to retrieve the UVs from |
| Channel | UV channel, starting at 0 |
| Vertex1 | Index of the first uv vertex that defines this face |
| Vertex2 | Index of the second uv vertex that defines this face |
| Vertex3 | Index of the third uv vertex that defines this face |
| uint32 FDatasmithMesh::GetHashForUVChannel | ( | int32 | Channel | ) | const |
Get the hash for a uv channel.
| int32 FDatasmithMesh::GetLightmapSourceUVChannel | ( | ) | const |
Gets the UV channel that will be used for lightmap UVs generation at import.
| FVector2D FDatasmithMesh::GetUV | ( | int32 | Channel, |
| int32 | Index | ||
| ) | const |
Gets the UV coordinates for a channel.
| Channel | The channel we want to retrieve the UVs from |
| Index | The UV coordinates to retrieve |
| int32 FDatasmithMesh::GetUVChannelsCount | ( | ) | const |
Gets the amount of UV channels on this mesh.
| int32 FDatasmithMesh::GetUVCount | ( | int32 | Channel | ) | const |
Retrieves the amount of UV coordinates on the channel.
The validity of the vertex data is not guaranteed
| FColor FDatasmithMesh::GetVertexColor | ( | int32 | Index | ) | const |
Get the color for a vertex.
| Index | Index of the vertex color to retrieve |
| int32 FDatasmithMesh::GetVertexColorCount | ( | ) | const |
Get the number of vertex color.
| int32 FDatasmithMesh::GetVerticesCount | ( | ) | const |
Retrieves the amount of geometric vertices.
The validity of the vertex data is not guaranteed
| void FDatasmithMesh::RemoveUVChannel | ( | ) |
Remove the last UV channel.
| void FDatasmithMesh::SetFace | ( | int32 | Index, |
| int32 | Vertex1, | ||
| int32 | Vertex2, | ||
| int32 | Vertex3, | ||
| int32 | MaterialId = 0 |
||
| ) |
Sets the geometry of the face.
| Index | value to choose the face that will be affected |
| Vertex1 | Index of the first geometric vertex that defines this face |
| Vertex2 | Index of the second geometric vertex that defines this face |
| Vertex3 | Index of the third geometric vertex that defines this face |
| void FDatasmithMesh::SetFacesCount | ( | int32 | NumFaces | ) |
Setting the amount of faces is mandatory before filling the array.
| void FDatasmithMesh::SetFaceSmoothingMask | ( | int32 | Index, |
| uint32 | SmoothingMask | ||
| ) |
Sets the smoothing mask of the face.
| Index | Index of the face that will be affected |
| SmoothingMask | 32 bits mask, 0 means no smoothing |
| void FDatasmithMesh::SetFaceUV | ( | int32 | Index, |
| int32 | Channel, | ||
| int32 | Vertex1, | ||
| int32 | Vertex2, | ||
| int32 | Vertex3 | ||
| ) |
Sets the channel UV coordinates of the face.
| Index | Index of the face that will be affected |
| Channel | UV channel, starting at 0 |
| Vertex1 | Index of the first uv vertex that defines this face |
| Vertex2 | Index of the second uv vertex that defines this face |
| Vertex3 | Index of the third uv vertex that defines this face |
| void FDatasmithMesh::SetLightmapSourceUVChannel | ( | int32 | Channel | ) |
Sets the UV channel that will be used as the source UVs for lightmap UVs generation at import, defaults to channel 0.
Will be overwritten during Mesh export if we choose to generate the lightmap source UVs.
| void FDatasmithMesh::SetNormal | ( | int32 | Index, |
| float | X, | ||
| float | Y, | ||
| float | Z | ||
| ) |
Sets the 3d normal.
| Index | value to choose the normal that will be affected @x direction on the x axis @y direction on the y axis @z direction on the z axis |
| void FDatasmithMesh::SetUV | ( | int32 | Channel, |
| int32 | Index, | ||
| double | U, | ||
| double | V | ||
| ) |
Sets the 2d position of the UV vertex for the first uv mapping.
| Index | Value to choose the vertex that will be affected |
| U | Horizontal coordinate |
| V | Vertical coordinate |
| void FDatasmithMesh::SetUVChannelsCount | ( | int32 | ChannelCount | ) |
Sets the amount of UV channels on this mesh.
| ChannelCount | The number of UV channels |
| void FDatasmithMesh::SetUVCount | ( | int32 | Channel, |
| int32 | NumVerts | ||
| ) |
Setting the amount of UV coordinates on the channel is mandatory before filling the array.
| Channel | The channel to set the numbers of UVs |
| NumVerts | The number of UVs in the channel |
| void FDatasmithMesh::SetVertex | ( | int32 | Index, |
| float | X, | ||
| float | Y, | ||
| float | Z | ||
| ) |
Sets the 3d position of the vertex.
| Index | value to choose the vertex that will be affected @x position on the x axis @y position on the y axis @z position on the z axis |
| void FDatasmithMesh::SetVertexColor | ( | int32 | Index, |
| const FColor & | Color | ||
| ) |
Set a vertex color.
| Index | Index of the vertex color that will be affected |
| Color | The color for the vertex |
| void FDatasmithMesh::SetVerticesCount | ( | int32 | NumVerts | ) |
Setting the amount of geometric vertices is mandatory before filling the array.