mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-22 10:48:27 +00:00
Renamed MultiBlockStatementObject to simply 'MultiStatementObject'
This commit is contained in:
parent
2976110f05
commit
763479985b
@ -11,7 +11,7 @@ namespace OSCADSharp.Booleans
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Subtracts the 2nd (and all further) child nodes from the first one (logical and not).
|
/// Subtracts the 2nd (and all further) child nodes from the first one (logical and not).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class Difference : MultiBlockStatementObject
|
internal class Difference : MultiStatementObject
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a subtraction of child nodes
|
/// Creates a subtraction of child nodes
|
||||||
|
|||||||
@ -11,7 +11,7 @@ namespace OSCADSharp.Booleans
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates the intersection of all child nodes
|
/// Creates the intersection of all child nodes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class Intersection : MultiBlockStatementObject
|
internal class Intersection : MultiStatementObject
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates the intersection of all child nodes
|
/// Creates the intersection of all child nodes
|
||||||
|
|||||||
@ -10,7 +10,7 @@ namespace OSCADSharp.Booleans
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// A union of child nodes. This is the sum of all children (logical or).
|
/// A union of child nodes. This is the sum of all children (logical or).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class Union : MultiBlockStatementObject
|
internal class Union : MultiStatementObject
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a union that is the combination of all children
|
/// Create a union that is the combination of all children
|
||||||
|
|||||||
@ -56,7 +56,7 @@
|
|||||||
<Compile Include="Transforms\HulledObject.cs" />
|
<Compile Include="Transforms\HulledObject.cs" />
|
||||||
<Compile Include="Transforms\LinearExtrudedObject.cs" />
|
<Compile Include="Transforms\LinearExtrudedObject.cs" />
|
||||||
<Compile Include="Scripting\SingleBlockFormatter.cs" />
|
<Compile Include="Scripting\SingleBlockFormatter.cs" />
|
||||||
<Compile Include="Scripting\MultiBlockStatementObject.cs" />
|
<Compile Include="Scripting\MultiStatementObject.cs" />
|
||||||
<Compile Include="Booleans\Difference.cs" />
|
<Compile Include="Booleans\Difference.cs" />
|
||||||
<Compile Include="Booleans\Intersection.cs" />
|
<Compile Include="Booleans\Intersection.cs" />
|
||||||
<Compile Include="Booleans\Union.cs" />
|
<Compile Include="Booleans\Union.cs" />
|
||||||
|
|||||||
@ -12,11 +12,11 @@ namespace OSCADSharp.Scripting
|
|||||||
/// A statement that has multiple child nodes, whose ToString output
|
/// A statement that has multiple child nodes, whose ToString output
|
||||||
/// is more or less just an aggregate of the children
|
/// is more or less just an aggregate of the children
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class MultiBlockStatementObject : OSCADObject
|
internal class MultiStatementObject : OSCADObject
|
||||||
{
|
{
|
||||||
private string outerStatement;
|
private string outerStatement;
|
||||||
|
|
||||||
internal MultiBlockStatementObject(string outerStatement, IEnumerable<OSCADObject> children)
|
internal MultiStatementObject(string outerStatement, IEnumerable<OSCADObject> children)
|
||||||
{
|
{
|
||||||
this.outerStatement = outerStatement;
|
this.outerStatement = outerStatement;
|
||||||
this.children = children.ToList();
|
this.children = children.ToList();
|
||||||
@ -46,7 +46,7 @@ namespace OSCADSharp.Scripting
|
|||||||
childClones.Add(child.Clone());
|
childClones.Add(child.Clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
return new MultiBlockStatementObject(this.outerStatement, childClones)
|
return new MultiStatementObject(this.outerStatement, childClones)
|
||||||
{
|
{
|
||||||
Name = this.Name
|
Name = this.Name
|
||||||
};
|
};
|
||||||
@ -10,7 +10,7 @@ namespace OSCADSharp.Transforms
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates an object that's the convex hull of child objects
|
/// Creates an object that's the convex hull of child objects
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class HulledObject : MultiBlockStatementObject
|
internal class HulledObject : MultiStatementObject
|
||||||
{
|
{
|
||||||
public HulledObject(IEnumerable<OSCADObject> children) : base("hull()", children)
|
public HulledObject(IEnumerable<OSCADObject> children) : base("hull()", children)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -11,7 +11,7 @@ namespace OSCADSharp.Transforms
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates an object that's the minkowski sum of child objects
|
/// Creates an object that's the minkowski sum of child objects
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class MinkowskiedObject : MultiBlockStatementObject
|
internal class MinkowskiedObject : MultiStatementObject
|
||||||
{
|
{
|
||||||
|
|
||||||
public MinkowskiedObject(IEnumerable<OSCADObject> children) : base("minkowski()", children)
|
public MinkowskiedObject(IEnumerable<OSCADObject> children) : base("minkowski()", children)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user