Stream: brlcad

Topic: brep


view this post on Zulip Daniel Rossberg (Aug 06 2023 at 13:39):

rt_brep_ifree() does not free the OpenNURBS objects. Does anybody remember why?

view this post on Zulip Sean (Aug 06 2023 at 14:49):

Not offhand. Only thought that comes to mind would be ownership -- ON_Brep* is passed to the mk_brep() from a calling context so that code typically owns the object and may be doing something else with it would be my immediate thought. But then it would seem wrong if the ON_Brep* that are created on import aren't released. On thought our memory footprint was clean there last I checked though.. Is it free'd somewhere else?

view this post on Zulip Daniel Rossberg (Aug 06 2023 at 15:05):

Sean said:

Is it free'd somewhere else?

Yeah, in rt_brep_free(struct soltab *stp).


Last updated: Oct 09 2024 at 00:44 UTC