On 24/04/2016 at 12:35, xxxxxxxx wrote:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;
I have a HairObject with 10 guides that generates 1000 splines (based on the guides).
I use the following code to retrieve information about the guides:
HairObject* hair_object = static_cast<HairObject*>(object);
HairGuides* guides = hair_object->GetGuides();
How can I get information about the actual hair ?
What I need is a data structure that contains 1000 splines, so I can parse every point of each spline.
Is there any example on how to do that ?
Thank you very much.
On 25/04/2016 at 02:11, xxxxxxxx wrote:
to access the points that define the hairs stored in a Hair object you have to call GenerateHair(). Please notice that you have to call this inside a pair of Lock() and Unlock().
You find an example how to use this in this thread: