Skip to content

Commit aed8bf1

Browse files
committed
Convert mesh's UV, Colors and Alphas to smart pointers
1 parent 478aa29 commit aed8bf1

25 files changed

Lines changed: 977 additions & 773 deletions

include/luxcore/luxcore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ CPP_EXPORT class CPP_API Scene {
10041004
* \param data to use for the AOV.
10051005
*/
10061006
virtual void SetMeshVertexAOV(const std::string &meshName,
1007-
const unsigned int index, float *data) = 0;
1007+
const unsigned int index, float *data, size_t size) = 0;
10081008
/*!
10091009
* \brief Set a mesh geometry triangle AOV (i.e. generic data associated to
10101010
* triangles and used by textures and more).
@@ -1017,7 +1017,7 @@ CPP_EXPORT class CPP_API Scene {
10171017
* \param data to use for the AOV.
10181018
*/
10191019
virtual void SetMeshTriangleAOV(const std::string &meshName,
1020-
const unsigned int index, float *data) = 0;
1020+
const unsigned int index, float *data, size_t size) = 0;
10211021
/*!
10221022
* \brief Save a previously defined mesh to file system in PLY or BPY format.
10231023
*

include/luxcore/luxcoreimpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ class SceneImpl : public luxcore::Scene {
348348
std::array<float *, LC_MESH_MAX_DATA_COUNT> *cols,
349349
std::array<float *, LC_MESH_MAX_DATA_COUNT> *alphas);
350350
void SetMeshVertexAOV(const std::string &meshName,
351-
const unsigned int index, float *data);
351+
const unsigned int index, float *data, size_t size) override;
352352
void SetMeshTriangleAOV(const std::string &meshName,
353-
const unsigned int index, float *data);
353+
const unsigned int index, float *data, size_t size) override;
354354

355355
void SaveMesh(const std::string &meshName, const std::string &fileName);
356356
void DefineStrands(

0 commit comments

Comments
 (0)