mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 21:48:34 +00:00
33 lines
810 B
C#
33 lines
810 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OSCADSharp
|
|
{
|
|
/// <summary>
|
|
/// Subtracts the 2nd (and all further) child nodes from the first one (logical and not).
|
|
/// </summary>
|
|
internal class Difference : MultiStatementObject
|
|
{
|
|
/// <summary>
|
|
/// Creates a subtraction of child nodes
|
|
/// </summary>
|
|
/// <param name="children"></param>
|
|
public Difference(IEnumerable<OSCADObject> children) : base("difference()", children)
|
|
{
|
|
}
|
|
|
|
public override Vector3 Position()
|
|
{
|
|
return m_children[0].Position();
|
|
}
|
|
|
|
public override Bounds Bounds()
|
|
{
|
|
return m_children[0].Bounds();
|
|
}
|
|
}
|
|
}
|