private Segment addRelativeAxon(Segment parent, Point3f relPosition, float radius) { Point3f newPosition = (new Point3f(parent.getEndPointPosition())); newPosition.add(relPosition); String newName = "Axon_" + getOnlyAxonalSegments().size(); Segment tempAxon = addAxonalSegment(radius, newName, newPosition, parent, 1, newName + "_Sec"); return tempAxon; }
private Segment addRelativeDendrite(Segment parent, Point3f relPosition) { Point3f newPosition = (new Point3f(parent.getEndPointPosition())); newPosition.add(relPosition); float newRadius = parent.getRadius() * .6f; String newName = "Dend_" + getOnlyDendriticSegments().size(); Segment tempDend = addDendriticSegment(newRadius, newName, newPosition, parent, 1, newName + "_Sec", true); return tempDend; }