Beispiel #1
0
        public IEnumerable <SwcNode> CreateSomaPartners()
        {
            var somaNode = this;

            System.Diagnostics.Debug.Assert(somaNode.Id == 1);
            double rs = somaNode.Radius;

            SwcNode[] partners = new SwcNode[2];
            partners[0] = new SwcNode(2, 1, somaNode.X, somaNode.Y - rs, somaNode.Z, rs, 1);
            partners[1] = new SwcNode(3, 1, somaNode.X, somaNode.Y + rs, somaNode.Z, rs, 1);
            return(partners);
        }
Beispiel #2
0
 public IEnumerable<SwcNode> CreateSomaPartners()
 {
     var somaNode = this;
     System.Diagnostics.Debug.Assert(somaNode.Id == 1);
     double rs = somaNode.Radius;
     SwcNode[] partners = new SwcNode[2];
     partners[0] = new SwcNode(2, 1, somaNode.X, somaNode.Y - rs, somaNode.Z, rs, 1);
     partners[1] = new SwcNode(3, 1, somaNode.X, somaNode.Y + rs, somaNode.Z, rs, 1);
     return partners;
 }
Beispiel #3
0
        // typeは無視
        public DendriteNode(SwcNode swcNode) : this(swcNode.Id, swcNode.X, swcNode.Y, swcNode.Z, swcNode.Radius, swcNode.ParentNodeId)
        {

        }