csharp
public sealed class BooleanCommandMaking an entity a boolean of its operands, or collapsing one, undoably.
Remarks
⚠ Records the node and not the geometry. The result is a function of the operands, so putting the node back is putting the mesh back — and the operands are entities, which the create and reparent commands already know how to restore. What this holds is one enum and one integer either side of the change.
Fields and properties (1)
public string NameWhat this is called in the undo history, as a person would say it.
Methods (4)
public BooleanCommand(SceneDocument document, Entity entity, CsgNode? after, string name = "Boolean")Describes giving an entity a boolean, or taking one away.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
public bool TryMergeWith(IEditorCommand previous, out IEditorCommand? merged)
Used by (2)
- BlockoutBooleanVixen.Editor.Blockout
- MeshEditVixen.Editor.SceneView