THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/03/2005 at 10:32, xxxxxxxx wrote:
- You need to get the selection tag of the object.
First get the first tag.
Then get through all tags with GetNext() and check if it is a PointSelectionTag.
Sth like (pseudocode) :
var found = FALSE;
var tag = obj->GetFirstTag(); if(!tag) return;
while(tag!=NULL) //or tag!=DA_NIL
{
if(tag->GetType()==PointSelectionTag){
found = TRUE;
break;
}
tag = tag->GetNext();
}
if(!found) return;
if found is true, the tag is a pointselection tag. you can now get the selected points and go through the point array.
var sel = tag->GetSelection(); if(!sel) return;
var i;
for (i = 0; i < obj->GetPointCount(); i++)
{
if (select->IsSelected(i))
{
//This is the point position
var p = obj->GetPoint(i);
}
}
- the mirror axis is the position of the symmtry object.
Get it from the global matrix:
var m = obj->GetMg();
var m_axis = m->GetV0();
HTH
Katachi