I want to assign a Name to a new surface I create using a SurfaceInterpolation function I wrote. I create more than one surface so I store the new surfaces in a ON_SurfaceArray. Later on in the program I loop through those surfaces and Append them to the model.
I don’t see any way to assign a name to an ON_NurbsSurface directly. It looks like I have to assign the new surface to an object and then assign a name to it, such as:
ON_NurbsSurface* new_srf = new ON_NurbsSurface;
SurfaceInterpolation(parameters); ONX_Model_Object* obj = new ONX_Model_Object();
obj->m_object = new_srf;
obj->m_attributes.m_name = “Top Surface”;
Is that correct? If this is correct that means I can’t store my newly created surfaces in a ON_SurfaceArray to loop through later and append to model because now they are objects.
How would you suggest I do this? I guess I could create an array of objects and loop through later array but I don’t see an ON_ObjectArray class.
Help would be appreciated.