本文整理汇总了C#中Engine3D.Object3d.Add方法的典型用法代码示例。如果您正苦于以下问题:C# Object3d.Add方法的具体用法?C# Object3d.Add怎么用?C# Object3d.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine3D.Object3d
的用法示例。
在下文中一共展示了Object3d.Add方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CalcScene
/// <summary>
/// I want to get rid of this function, need to replace the
/// Slic3r model and the supportgenerator model
/// </summary>
public void CalcScene()
{
m_sceneobject = new Object3d();
int idx = 0;
foreach(Object3d obj in m_engine3d.m_objects)
{
m_sceneobject.Add(obj);
if (idx == 0) // if this is the first object
{
if (m_engine3d.m_objects.Count > 1)// if there is more than one object in the scene, generate a unique name
{
string scenename = obj.m_fullname;
scenename = Path.GetDirectoryName(obj.m_fullname) + m_pathsep + Path.GetFileNameWithoutExtension(obj.m_fullname) + "_scene.stl";
m_sceneobject.m_fullname = scenename;
}
else
{
m_sceneobject.m_fullname = obj.m_fullname;
}
}
idx++;
}
}
示例2: CalcScene
public void CalcScene()
{
m_sceneobject = new Object3d();
foreach(Object3d obj in m_engine3d.m_objects)
{
m_sceneobject.Add(obj);
}
}