Submesh utility functions.
More...
#include <SubmeshUtils.hpp>
|
static C3D_API void | computeFacesFromPolygonVertex (castor::Point3fArray &texcoords, TriFaceMapping const &triFace) |
| Creates faces from the points.
|
|
static C3D_API void | computeNormals (castor::Point3fArray const &positions, castor::Point3fArray &normals, FaceArray const &triFace, bool reverted=false) |
| Generates normals.
|
|
static C3D_API void | computeTangentsFromNormals (castor::Point3fArray const &positions, castor::Point3fArray const &texcoords, castor::Point3fArray const &normals, castor::Point4fArray &tangents, FaceArray const &faces) |
| Computes tangent for each vertex of the submesh.
|
|
Submesh utility functions.
◆ computeFacesFromPolygonVertex()
static C3D_API void castor3d::SubmeshUtils::computeFacesFromPolygonVertex |
( |
castor::Point3fArray & | texcoords, |
|
|
TriFaceMapping const & | triFace ) |
|
static |
Creates faces from the points.
- Parameters
-
[in,out] | texcoords | The texture coordinates. |
[in,out] | triFace | The component that will receive the computed triangles. |
◆ computeNormals()
static C3D_API void castor3d::SubmeshUtils::computeNormals |
( |
castor::Point3fArray const & | positions, |
|
|
castor::Point3fArray & | normals, |
|
|
FaceArray const & | triFace, |
|
|
bool | reverted = false ) |
|
static |
Generates normals.
- Parameters
-
[in] | positions | The vertices positions. |
[out] | normals | The vertices normals. |
[in] | triFace | The triangles. |
[in] | reverted | Tells if the normals must be inverted. |
◆ computeTangentsFromNormals()
static C3D_API void castor3d::SubmeshUtils::computeTangentsFromNormals |
( |
castor::Point3fArray const & | positions, |
|
|
castor::Point3fArray const & | texcoords, |
|
|
castor::Point3fArray const & | normals, |
|
|
castor::Point4fArray & | tangents, |
|
|
FaceArray const & | faces ) |
|
static |
Computes tangent for each vertex of the submesh.
- Parameters
-
[in] | positions | The vertices positions. |
[in] | texcoords | The vertices texture coordinates. |
[in] | normals | The vertices normals. |
[out] | tangents | The vertices tangents. |
[in] | faces | The triangles. |
The documentation for this class was generated from the following file: