On 09/09/2017 at 02:37, xxxxxxxx wrote:
the Sendmodeling Command()move the tow point in the same position but doesn't welded together!!
BaseSelect *Ps_Point = P_res->GetPointS();
cd.mode = MODELINGCOMMANDMODE_POINTSELECTION;
cd.op = res;
cd.bc = &seting;
seting.SetBool(MDATA_WELD_TOPOINT, true);
if (LA == min_a )
{
Ps_Point->Select(PointCount +n);
seting.SetVector(MDATA_WELD_POINT, va);
SendModelingCommand(ID_MODELING_WELD_TOOL, cd);
Ps_Point->DeselectAll();
}
if (LB == min_b )
{
Ps_Point->Select(PointCount +n);
seting.SetVector(MDATA_WELD_POINT, vb);
SendModelingCommand(ID_MODELING_WELD_TOOL, cd);
Ps_Point->DeselectAll();
}