public CSGNode(IEnumerable<Plane> planes) { this.NodeType = CSGNodeType.Brush; Generator = new StaticBrushGenerator(planes.ToArray()); this.Translation = new Vector3(0, 0, 0); this.LocalTranslation = new Vector3(0, 0, 0); }
public CSGNode(BrushGenerator generator) { this.NodeType = CSGNodeType.Brush; Generator = generator; this.Translation = new Vector3(0, 0, 0); this.LocalTranslation = new Vector3(0, 0, 0); }
public CSGNode(CSGNodeType branchOperator) { this.NodeType = branchOperator; this.Left = null; this.Right = null; this.Translation = new Vector3(0, 0, 0); this.LocalTranslation = new Vector3(0, 0, 0); }
public CSGNode(CSGNodeType branchOperator) { this.NodeType = branchOperator; this.Left = null; this.Right = null; this.Translation = new Vector3(0, 0, 0); this.LocalTranslation = new Vector3(0, 0, 0); }
public static void ExpectInvalidTree(ref CSGTree tree) { CSGNodeType type = ((CSGTreeNode)tree).Type; Assert.IsFalse(tree.Valid); Assert.AreEqual(0, tree.UserID); Assert.AreEqual(CSGNodeType.None, type); }
public static void ExpectInvalidBranch(ref CSGTreeBranch operation) { CSGNodeType type = CSGTreeNode.Encapsulate(operation.NodeID).Type; Assert.AreEqual(false, operation.Valid); Assert.AreEqual(0, operation.UserID); Assert.AreEqual(CSGNodeType.None, type); }
public static void ExpectInvalidBrush(ref CSGTreeBrush brush) { CSGNodeType type = CSGTreeNode.Encapsulate(brush.NodeID).Type; Assert.AreEqual(false, brush.Valid); Assert.AreEqual(0, brush.UserID); Assert.AreEqual(CSGNodeType.None, type); }
public static void ExpectInvalidTree(ref CSGTree model) { CSGNodeType type = CSGTreeNode.Encapsulate(model.NodeID).Type; Assert.AreEqual(false, model.Valid); Assert.AreEqual(0, model.UserID); Assert.AreEqual(CSGNodeType.None, type); }
public static void ExpectValidTreeWithUserID(ref CSGTree tree, int userID) { CSGNodeType type = ((CSGTreeNode)tree).Type; Assert.IsTrue(tree.Valid); Assert.AreEqual(userID, tree.UserID); Assert.AreEqual(CSGNodeType.Tree, type); }
public static void ExpectInvalidBranch(ref CSGTreeBranch branch) { CSGNodeType type = ((CSGTreeNode)branch).Type; Assert.IsFalse(branch.Valid); Assert.AreEqual(0, branch.UserID); Assert.AreEqual(CSGNodeType.None, type); }
public static void ExpectValidBranchWithUserID(ref CSGTreeBranch branch, int userID) { CSGNodeType type = ((CSGTreeNode)branch).Type; Assert.IsTrue(branch.Valid); Assert.AreEqual(userID, branch.UserID); Assert.AreEqual(CSGNodeType.Branch, type); }
public static void ExpectValidBrushWithUserID(ref CSGTreeBrush brush, int userID) { CSGNodeType type = CSGTreeNode.Encapsulate(brush.NodeID).Type; Assert.AreEqual(true, brush.Valid); Assert.AreNotEqual(0, brush.NodeID); Assert.AreEqual(userID, brush.UserID); Assert.AreEqual(CSGNodeType.Brush, type); }
public static void ExpectValidBranchWithUserID(ref CSGTreeBranch operation, int userID) { CSGNodeType type = CSGTreeNode.Encapsulate(operation.NodeID).Type; Assert.AreEqual(true, operation.Valid); Assert.AreNotEqual(0, operation.NodeID); Assert.AreEqual(userID, operation.UserID); Assert.AreEqual(CSGNodeType.Branch, type); }
public static void ExpectValidTreeWithUserID(ref CSGTree model, int userID) { CSGNodeType type = CSGTreeNode.Encapsulate(model.NodeID).Type; Assert.AreEqual(true, model.Valid); Assert.AreNotEqual(0, model.NodeID); Assert.AreEqual(userID, model.UserID); Assert.AreEqual(CSGNodeType.Tree, type); }
public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right) { this.NodeType = branchOperator; this.Left = left; this.Right = right; this.Translation = new Vector3(0, 0, 0); this.LocalTranslation = new Vector3(0, 0, 0); left.Parent = this; right.Parent = this; }
public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right) { this.NodeType = branchOperator; this.Left = left; this.Right = right; this.Translation = new Vector3(0, 0, 0); this.LocalTranslation = new Vector3(0, 0, 0); left.Parent = this; right.Parent = this; }
public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right) { NodeType = branchOperator; Left = left; Right = right; }
public XmlBranch(CSGNodeType branchOperator) { Operator = branchOperator; }
public CSGNode(CSGNodeType branchOperator) { NodeType = branchOperator; Left = null; Right = null; }
public XmlBranch(CSGNodeType branchOperator) { Operator = branchOperator; }
public CSGNode(IEnumerable<Plane> planes) { this.NodeType = CSGNodeType.Brush; Planes = planes.ToArray(); }
public CSGNode(string id, CSGNodeType branchOperator, CSGNode left, CSGNode right) { this.NodeType = branchOperator; this.Left = left; this.Right = right; }
public CSGNode(string id, CSGNodeType branchOperator, CSGNode left, CSGNode right) { this.NodeType = branchOperator; this.Left = left; this.Right = right; }
public CSGNode(string id, CSGNodeType branchOperator) { this.NodeType = branchOperator; this.Left = null; this.Right = null; }
public CSGNode(IEnumerable <Plane> planes) { this.NodeType = CSGNodeType.Brush; Planes = planes.ToArray(); }
public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right) { NodeType = branchOperator; Left = left; Right = right; }
public CSGNode(CSGNodeType branchOperator) { NodeType = branchOperator; Left = null; Right = null; }
public CSGNode(string id, CSGNodeType branchOperator) { this.NodeType = branchOperator; this.Left = null; this.Right = null; }