Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to convert c++vectors in AiArrays?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Jake41198
187 Views, 1 Reply

Is it possible to convert c++vectors in AiArrays?

I'm actually assuming that you cannot use standard c++ vectors to populate a polymesh node with data, I'm really new to the API, so probably I'm missing something.

If there's no way to do the conversion, what would be the best approach to fill the AiArray?

Tags (1)
Labels (1)
  • ass
1 REPLY 1
Message 2 of 2
Jake41198
in reply to: Jake41198

Nevermind, I've just found the way in the api reference on the AtArray page

https://trac.solidangle.com/arnoldpedia/chrome/site/Arnold-4.0.14.0/doc/api/group__ai__array.html#ga...

Basically you use AiArray() to create small containers on the fly. For greater containers use AiArrayAllocate() or AiArrayConvert()

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report