Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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;
 }
Пример #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;
 }
Пример #17
0
 public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     NodeType = branchOperator;
     Left     = left;
     Right    = right;
 }
Пример #18
0
 public XmlBranch(CSGNodeType branchOperator)
 {
     Operator = branchOperator;
 }
Пример #19
0
 public CSGNode(CSGNodeType branchOperator)
 {
     NodeType = branchOperator;
     Left = null;
     Right = null;
 }
Пример #20
0
 public XmlBranch(CSGNodeType branchOperator)
 {
     Operator = branchOperator;
 }
Пример #21
0
 public CSGNode(IEnumerable<Plane> planes)
 {
     this.NodeType = CSGNodeType.Brush;
     Planes = planes.ToArray();
 }
Пример #22
0
 public CSGNode(string id, CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     this.NodeType = branchOperator; this.Left = left; this.Right = right;
 }
Пример #23
0
 public CSGNode(string id, CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     this.NodeType = branchOperator; this.Left = left; this.Right = right;
 }
Пример #24
0
 public CSGNode(string id, CSGNodeType branchOperator)
 {
     this.NodeType = branchOperator; this.Left = null; this.Right = null;
 }
Пример #25
0
 public CSGNode(IEnumerable <Plane> planes)
 {
     this.NodeType = CSGNodeType.Brush;
     Planes        = planes.ToArray();
 }
Пример #26
0
 public CSGNode(CSGNodeType branchOperator, CSGNode left, CSGNode right)
 {
     NodeType = branchOperator;
     Left = left;
     Right = right;
 }
Пример #27
0
 public CSGNode(CSGNodeType branchOperator)
 {
     NodeType = branchOperator;
     Left     = null;
     Right    = null;
 }
Пример #28
0
 public CSGNode(string id, CSGNodeType branchOperator)
 {
     this.NodeType = branchOperator; this.Left = null; this.Right = null;
 }