api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

Implement a variant of SUEntitiesGetCurves that allows getting of curves that belong to faces

Open noelwarren opened this issue 7 months ago • 0 comments

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);

noelwarren avatar Sep 08 '25 10:09 noelwarren