本文整理汇总了C#中Engine3D.Object3d.AddSupport方法的典型用法代码示例。如果您正苦于以下问题:C# Object3d.AddSupport方法的具体用法?C# Object3d.AddSupport怎么用?C# Object3d.AddSupport使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine3D.Object3d
的用法示例。
在下文中一共展示了Object3d.AddSupport方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddNewSupport
Support AddNewSupport(float x, float y, float lz, Object3d parent)
{
Support s = new Support();
Configs.SupportConfig sc = UVDLPApp.Instance().m_supportconfig;
//s.Create(sc,parent, (float)sc.fbrad, (float)sc.ftrad, (float)sc.hbrad, (float)sc.htrad, lz * .2f, lz * .6f, lz * .2f, 11);
s.Create(sc, parent, lz * .2f, lz * .6f, lz * .2f);
s.Translate(x, y, 0);
s.SetColor(Color.Yellow);
if (parent != null)
parent.AddSupport(s);
UVDLPApp.Instance().m_engine3d.AddObject(s);
UVDLPApp.Instance().SelectedObject = s;
//RaiseSupportEvent(UV_DLP_3D_Printer.SupportEvent.eSupportGenerated, s.Name, s);
UVDLPApp.Instance().RaiseAppEvent(eAppEvent.eModelAdded, "");
return s;
}
示例2: AddNewSupport
void AddNewSupport(float x, float y, float lz, int scnt, Object3d parent, List<Object3d> lstsupports)
{
Support s = new Support();
s.Create(parent, (float)m_sc.fbrad, (float)m_sc.ftrad, (float)m_sc.hbrad, (float)m_sc.htrad, lz * .2f, lz * .6f, lz * .2f, 11);
s.Translate(x, y, 0);
s.Name = "Support " + scnt;
s.SetColor(Color.Yellow);
lstsupports.Add(s);
if (parent != null)
parent.AddSupport(s);
RaiseSupportEvent(UV_DLP_3D_Printer.SupportEvent.eSupportGenerated, s.Name, s);
}