20 CylBase(
double x,
double y,
double z,
21 double dia,
double length,
unsigned int numDivs );
24 void setX(
double v );
26 void setY(
double v );
28 void setZ(
double v );
58 unsigned int entry )
const;
70 const CylBase& parent,
unsigned int index )
const;
74 const CylBase& parent,
unsigned int index )
const;
88 unsigned int startIndex,
90 vector< VoxelJunction >& ret,
91 bool useCylinderCurve,
bool useCylinderCap )
const;
93 double nearest(
double x,
double y,
double z,
95 double& linePos,
double& r )
const;
97 double nearest(
double x,
double y,
double z,
99 unsigned int& index )
const;
113 #endif // _CYL_BASE_H
double x_
end of the node. The start is given by parent coords.
void setNumDivs(unsigned int v)
double length_
Diameter of node end.
double voxelVolume(const CylBase &parent, unsigned int fid) const
bool isCylinder_
Number of subdivisions of cylinder.
double getDiffusionArea(const CylBase &parent, unsigned int index) const
double volume(const CylBase &parent) const
Returns vol of current node. Usually needs to refer to parent.
vector< double > getCoordinates(const CylBase &parent, unsigned int entry) const
double nearest(double x, double y, double z, const CylBase &parent, double &linePos, double &r) const
unsigned int numDivs_
Length of compartment.
void matchCubeMeshEntries(const ChemCompt *other, const CylBase &parent, unsigned int startIndex, double granularity, vector< VoxelJunction > &ret, bool useCylinderCurve, bool useCylinderCap) const
double getMiddleArea(const CylBase &parent, unsigned int index) const
Return cross-section area of middle of specified voxel.
bool getIsCylinder() const
void setIsCylinder(bool v)
unsigned int getNumDivs() const
double selectGridSize(double h, double dia1, double granularity) const
double getVoxelLength() const
Return length of voxel. All are equal.