15 #include "../utility/Vec.h"
77 const double defaultLength = 1e-6;
132 unsigned int myIndex,
133 double granularity, vector< VoxelJunction >& ret )
137 granularity, ret,
true,
true );
146 unsigned int myIndex,
147 double granularity, vector< VoxelJunction >& ret )
const
150 granularity, ret,
true,
false );
154 unsigned int myIndex,
155 double granularity, vector< VoxelJunction >& ret )
const
159 granularity, ret,
false,
true );
168 const ChemCompt* compt,
unsigned int myIndex,
169 double& area,
double& length )
const
190 vector< double > ret( 8, 0.0 );
210 ret[7] = sqrt( ret[3] * ret[3] + ret[4] * ret[4] + ret[5] * ret[5] );
219 double linscale = pow( volscale, 1.0 / 3.0 );
unsigned int parent_
head cylinder.
void matchCubeMeshEntriesToPSD(const ChemCompt *compt, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret) const
void setNumDivs(unsigned int v)
CylBase head_
Shaft cylinder.
Id shaftId_
Id of electrical compartment in which this diffusive compt lives.
unsigned int parent() const
Returns index of parent entry located on NeuroMesh.
double volume() const
Return volume of spine. Ignores shaft volume. Virtual func.
void matchCubeMeshEntries(const ChemCompt *other, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret)
double volume(const CylBase &parent) const
Returns vol of current node. Usually needs to refer to parent.
void mid(double &x, double &y, double &z) const
Return coords of centre of spine head.
CylBase shaft_
Anchor point on dendrite.
vector< double > psdCoords() const
void positionShaftBase(double x, double y, double z)
void matchCubeMeshEntries(const ChemCompt *other, const CylBase &parent, unsigned int startIndex, double granularity, vector< VoxelJunction > &ret, bool useCylinderCurve, bool useCylinderCap) const
void setParent(unsigned int parent)
Assigns index of parent entry located on NeuroMesh.
double diffusionLength() const
void setVolume(double volume)
unsigned int matchNeuroMeshEntriesToShaft(const ChemCompt *compt, unsigned int myIndex, double &area, double &length) const
void setIsCylinder(bool v)
void matchCubeMeshEntriesToHead(const ChemCompt *compt, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret) const
Returns Id of head electrical compartment.
static A get(const ObjId &dest, const string &field)
Id headId() const
Returns Id of shaft electrical compartment.