본문으로 건너뛰기

Update

Overloads

NameDescription
Update(ClashTest item)간섭검사 조건 변경

Update(ClashTest item)

public bool Update(ClashTest item)

간섭검사 조건 변경

Parameters

NameTypeDescription
itemClashTest간섭검사 항목

Returns

TypeDescription
bool조건 변경 결과

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
VIZCore3D.NET.Data.ClashTest clash = new VIZCore3D.NET.Data.ClashTest();

clash.Name = "CLASH TEST #1";
clash.TestKind = VIZCore3D.NET.Data.ClashTest.ClashTestKind.GROUP_VS_GROUP;

clash.UseRangeValue = false;
clash.RangeValue = 2.0f;
clash.UsePenetrationTolerance = true;
clash.PenetrationTolerance = 1.0f;

clash.VisibleOnly = false;
clash.BottomLevel = 2;

List<VIZCore3D.NET.Data.Node> groupA =
vizcore3d.Object3D.Find.QuickSearch(
new List<string>() { "EQUIPMENT" }
, false
, true
, false
, false
, true
, false
);

clash.GroupA = groupA;

List<VIZCore3D.NET.Data.Node> groupB =
vizcore3d.Object3D.Find.QuickSearch(
new List<string>() { "HULL" }
, false
, true
, false
, false
, true
, false
);

clash.GroupB = groupB;

if (clash.ID == -1)
{
bool result = vizcore3d.Clash.Add(clash);

MessageBox.Show(string.Format("ClashTest : {0} / {1}", result == true ? "OK" : "NG", clash.ID), "VIZCore3D.NET.ClashTest", MessageBoxButtons.OK, result == true ? MessageBoxIcon.Information : MessageBoxIcon.Error);
}
else
{
vizcore3d.Clash.Update(clash);
}
}