The functions in the geom/ group geom_
get_tags, geom_
uniqify_tag, and geom_u
pdate_tags that are found in the Version 1.8 pdf documentation do not seem to be present in the current release of FEATool. Or are they still present and I am simply unable to locate them?
Following explains why I ask:
I have found that if I add an object (Block, Sphere, Cylinder, etc.),
obj, to a geometry object,
mygeo, using;
geom_add_gobj( mygeo, obj );
and the tag field of obj is already present in gobj (as mygeo.tags{} or mygeoj.objects{}.tag - I am not yet sure whether or not the presence in mygeo.tags{} alone is sufficient for the condition), then
the obj is added to mygeo but with a different value in the obj.tag field so as to be unique.
I wondered if geom_add_gobj returned a value that was the tag actually added, but this does not seem to be the case.
In the particular instance, where I add an obj with a known tag, I need to know that I have given it a unique tag so that I may reference it by its tag in a subsequent function call.
Finding no existing method to determine uniqueness or the value of the tag actually added by geom_add_gobj, I have written:
is_tag_unique.mIt purports to determine if the tag I have chosen (obj.tag = 'TAG1') is being used or not in mygeo:
If (is_tag_unique(mygeo, 'TAG1'))
geom_add_gobj (mygeo, obj);
....
end
If there is no other way to determine or assure uniqueness, will this function (
is_tag_unique) reliably do what I need it to do?
Kind reagards,
Randal