api-issue-tracker
api-issue-tracker copied to clipboard
Implement a variant of SUEntitiesGetCurves that allows getting of curves that belong to faces
The GetEdges functions allow you to filter out edges that are standalone:
SU_RESULT SUEntitiesGetEdges(
SUEntitiesRef entities, bool standalone_only, size_t len, SUEdgeRef edges[], size_t* count);
But this is not the case for curves
SU_RESULT SUEntitiesGetCurves(
SUEntitiesRef entities, size_t len, SUCurveRef curves[], size_t* count);
As the function comments clearly state: "@brief Retrieves the curves in the entities object that are not associated with a face."
But there is no way to retrieve curves that are associated with faces without jumping through hoops. ie: fetching all edges and filtering through their curves.
I would suggest an override of the function:
SU_RESULT SUEntitiesGetCurves(
SUEntitiesRef entities, bool standalone_only, size_t len, SUCurveRef curves[], size_t* count);