Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
        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);
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 11
0
        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);
        }
Exemplo n.º 12
0
        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);
        }
Exemplo n.º 13
0
        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);
        }
Exemplo n.º 14
0
        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);
        }
Exemplo n.º 15
0
 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;
 }
Exemplo n.º 16
0
 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;
 }
Exemplo n.º 17
0
 public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     NodeType = branchOperator;
     Left     = left;
     Right    = right;
 }
Exemplo n.º 18
0
 public XmlBranch(CSGNodeType branchOperator)
 {
     Operator = branchOperator;
 }
Exemplo n.º 19
0
 public CSGNode(CSGNodeType branchOperator)
 {
     NodeType = branchOperator;
     Left = null;
     Right = null;
 }
Exemplo n.º 20
0
 public XmlBranch(CSGNodeType branchOperator)
 {
     Operator = branchOperator;
 }
Exemplo n.º 21
0
 public CSGNode(IEnumerable<Plane> planes)
 {
     this.NodeType = CSGNodeType.Brush;
     Planes = planes.ToArray();
 }
Exemplo n.º 22
0
 public CSGNode(string id, CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     this.NodeType = branchOperator; this.Left = left; this.Right = right;
 }
Exemplo n.º 23
0
 public CSGNode(string id, CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     this.NodeType = branchOperator; this.Left = left; this.Right = right;
 }
Exemplo n.º 24
0
 public CSGNode(string id, CSGNodeType branchOperator)
 {
     this.NodeType = branchOperator; this.Left = null; this.Right = null;
 }
Exemplo n.º 25
0
 public CSGNode(IEnumerable <Plane> planes)
 {
     this.NodeType = CSGNodeType.Brush;
     Planes        = planes.ToArray();
 }
Exemplo n.º 26
0
 public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     NodeType = branchOperator;
     Left = left;
     Right = right;
 }
Exemplo n.º 27
0
 public CSGNode(CSGNodeType branchOperator)
 {
     NodeType = branchOperator;
     Left     = null;
     Right    = null;
 }
Exemplo n.º 28
0
 public CSGNode(string id, CSGNodeType branchOperator)
 {
     this.NodeType = branchOperator; this.Left = null; this.Right = null;
 }