When I read a QD3D file containing a custom attribute in a loose
set in a group then it is put somewhere where I cannot access it
either by using Q3Shape_GetSet, nor by iterating through the
group. e3read_3dmf_merge_element_set puts a pointer to my set
in the group's instanceData->set, but Q3Shape_GetSet expects an
attribute set which has an element of type kQ3ElementTypeSet, but
it does not have this, its got a set with my data in it instead, so it
returns a failure. Thus :
TQ3Status
E3Shape_GetSet(TQ3ShapeObject theShape, TQ3SetObject *theSet)
{
*theSet = NULL;
return E3Object_GetElement( theShape, kQ3ElementTypeSet,
theSet );
}
Does the fault lie in E3Shape_GetSet or in
e3read_3dmf_merge_element_set ?
Example model