]> Pileus Git - grits/blobdiff - src/roam.c
Lock the sphere when working with volatile triangles
[grits] / src / roam.c
index 7a1d6d3a86d961ae5c5a7771a026c122108bec88..ef9eeb8d41ae311bc3f3b11d714a5cbff5103dd2 100644 (file)
@@ -650,6 +650,9 @@ static GList *_roam_sphere_get_intersect_rec(RoamTriangle *tri, GList *list,
                return g_list_prepend(list, tri);
        }
 }
+/* Warning: This grabs pointers to triangles which can be changed by other
+ * calls, e.g. split_merge. If you use this, you need to do some locking to
+ * prevent the returned list from becomming stale. */
 GList *roam_sphere_get_intersect(RoamSphere *self, gboolean all,
                gdouble n, gdouble s, gdouble e, gdouble w)
 {